Repository navigation
Conversation
…held load average
--stress-popup N --load-target L runs only the opt-in stress_popup section:
busy processes of the script's own hold the 1-minute load average at L, and
every run of window.open('about:blank'); w.location = AWAY is judged on the
server (an AWAY GET /dest that arrived is an escape). Each run records the
load it started at. Opt-in sections never join the default run.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇
scripts/verify_cdp_guard_e2e.py에 opt-in 섹션stress_popup을 추가했다.--stress-popup N --load-target L: popup two-step(window.open('about:blank'); w.location = AWAY)을 N 회 돌린다. 이 섹션만 실행한다.int(L)+8개의 busy 프로세스로 유지한다. 모두 항상 runnable 이므로 1분 평균이 L 이상으로 유지된다. 1분 평균이 L 에 도달할 때까지 기다린 뒤에 시작하고, run 마다 시작 시점의 load 를 기록한다. 목표 아래에서 시작한 run 이 있으면 LIMIT 줄로 보고한다. busy 프로세스는 이름이 아니라 띄운 핸들로 종료한다.GET /dest가 서버에 도달하면 escape 다.왜
PR #11 구현 중 headful patchright 에서, load 약 55 일 때 10회 중 2회 AWAY 가 서버에 도달한 적이 있다. 이 누출을 재현하거나, 재현 불가임을 N≥200 으로 입증해야 했다. 지금은 native 가 기본 드라이버라 cdp 가드가 기본 경로다.
검증 (2026-11-15, vela, 각 칸 N=200, 1분 load ≥ 50)
합계 1200 run, escape 0, 모든 run 이 load ≥ 50 에서 시작했다. 앞선 생성기 버전으로 목표 아래 run 이 섞였던 칸(native headless, patchright headful, playwright 두 칸)은 최종 생성기로 다시 돌렸다. 커밋 사이의 차이는 부하 생성기뿐이고 가드 코드(
cdp_guard.py)는 같다. 측정 대상 코드는 origin/master(b107286) + 이 스크립트이며, #17 의 loss-window backstop 이 포함되어 있다. 이전 누출이 재현되지 않는 이유가 그 backstop 일 수 있다.cdp_guard.py는 바꾸지 않았다. 재현이 없었으므로 회귀 테스트도 추가하지 않았다.남은 것
Config.guard_backend기본값(Playwright 드라이버에서의 route→cdp)을 바꿀지는 별도 결정 이슈로 올려야 한다.