Repository navigation
chore(ci): scale browser repetition watchdog deadlines - #4236
Conversation
|
No uploads on this PR yet This PR changes UI files (
Tips for agentsLabel each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one uploads put after.png --pr 4236 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 4236 --app ios --screen "Chat" --state afterNo CLI? With the Uploads MCP, call This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with Workspace admins can turn this comment off in Settings → GitHub · docs |
Independent reviewReviewed head dd94a2c against base d226c76. Reviewer: agent. No findings. {
"version": 1,
"kind": "brain-review-receipt",
"pr": 4236,
"head": "dd94a2c2c5d7e059c7c51a0b1ce0347cd4ead6ba",
"base": "d226c76700e837f22c5b79d207f0c2d1fbe20ef2",
"reviewer": "agent",
"outcome": "no-findings",
"findings": []
} |
…92-browser-deadline-factor
…92-browser-deadline-factor
|
Pre-confirmation collision check at head |
…92-browser-deadline-factor
|
Pre-confirmation collision check at |
|
Out-of-scope finding recorded as #4241: the reservation holder's unit partition failed browser-file discovery before tests ran, and that caller discards the child diagnostics. The receipt does not identify a timeout or product-test failure. No failed job was rerun and no source change was added here. This PR's latest-head draft run 44178043328 is successful; confirmation continues waiting for the shared reservation. |
Closes #4192
What changed
The browser repetition command multiplies each resolved Vitest project's default test and hook watchdogs by 3, owned by
BROWSER_DETERMINISM_PARTITIONS.deadlineFactor. Browser specs receiveBRAIN_TEST_DEADLINE_FACTORthroughtest.env, andwatchdogMsreads it in both browsers and Bun. The command, JSON report and job summary name the factor;--deadline-factor 1provides an unscaled diagnostic run.Why this shape
This implements the maintainer's 2026-11-17 watchdog ruling. Three is the smallest integer at least 15% above the browser job's measured slowdown of 1.8; the Bun job keeps its factor of eight. Verified against installed, lockfile-pinned Vitest 4.1.11: browser defaults are 15 s for tests and 30 s for hooks, becoming 45 s and 90 s. Explicit test/suite timeout options, explicit hook arguments,
expect.pollandvi.waitForlimits remain independent; watchdogs in those can opt in withwatchdogMs. Product assertions on controlled time never scale.The unchanged 20-minute step accommodates full capacity at the measured ratio, the larger scaled default hang, and measured setup:
300 * 1.8 + 30 * 3 + 135 = 765 < 1200seconds. Several hangs or exceptionally long explicit caps remain bounded by the step itself.The real hosted selection requires a changed spec in an existing browser project. The small witness is in
packages/ui-kit/tests/visual/deadline-scaling.visual.tsx; expanding the selector and Vitest project inventory solely to avoid that path would broaden this change. This PR therefore requires independent review. The negative fixtures live separately undertests/fixtures/browser-deadlines/and are never included by ordinary browser projects.Proof
deadlineFactor: 3was missing.project.config.testTimeout *= factorwith*= 1maderesolved Vitest projects scale their own default caps and expose the factor to browser watchdogsfail onPROJECT_DEFAULTS_AND_BROWSER_ENV_SCALE(15,000 instead of 45,000 and 1,700 instead of 5,100). Restored the source; all 51 focused tests passed, including the real pinned-container tests.expected 45000 to be 15000) caught an invalid browser environment read before the helper was corrected.bun run buildandbun run typecheckpassed (Node heap set to 8 GiB for the latter).bun run check:pr --base origin/main: receipt below. An initial planning attempt encountered rootless-container cache permissions; after restoring ownership, actual Vitest discovery completed and preflight was run again.Fixed-work and hang receipts use Bun 1.4.2, real Node 24, the pinned offline Playwright container, and CPU 15. The diagnostic loaded comparison intentionally uses three burners on that one CPU, a stronger load than the job's one per CPU; both compared runs use the identical fixture and load.
The automated container proof also runs a default hook past its written 700 ms cap under its scaled 2,100 ms cap, and verifies that an explicit 80 ms hook timeout still fails at 80 ms. Callers assert child exit codes and inspect the actual runner result.
Hosted acceptance passed in this PR's own CI run 44164773198, attempt 1, reviewed head
dd94a2c2c5d7e059c7c51a0b1ce0347cd4ead6ba. Job 134328341117, browser_determinism (1) completed successfully. Its actual log at 20:05:39 UTC says:All five repetitions of the changed
deadline-scaling.visual.tsxpassed. The Bundeterminism (1)job (134328341432) also passed: both changed harness files ran five times under load; the complete run anddraft gatessucceeded. This meets the hosted scaling acceptance criterion.{"version":1,"kind":"brain-check-pr-receipt","head":"c3360d7885ef9ede40bb6f6bec168778b34d13c0","base":"origin/main","mode":"focused","startedAt":"2026-11-17T21:12:44.136Z","finishedAt":"2026-11-17T21:14:33.614Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":14218.354619999998},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":171.7494080000033},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":156.69370200000048},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":24.24157600000035},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":94889.148712}]}Off-main qualification
PR-hosted replay: https://github.com/schlessera/brain-kit/actions/runs/44164773198, attempt 1, head
dd94a2c2c5d7e059c7c51a0b1ce0347cd4ead6ba(completed successfully). Its ownbrowser_determinism (1)selects the new visual witness and repeats it with scaling; itsdeterminism (1)repeats the changed harness tests. The successful browser factor log is recorded above; this is completed qualification. The local factor-one/factor-three comparison above supplies the unscaled control. This is the same PR-hosted repetition qualification used by #4193.The original successful PR run's synthetic merge is
8b187a9963feeb988b4de1378e02fbad2973aaeb, with based226c76700e837f22c5b79d207f0c2d1fbe20ef2. Main advanced by #4231 after the local checkout was prepared; it changes close-request behavior and its pointer spec, with no overlapping paths. Both repetition jobs actually checked out8b187a9963feeb988b4de1378e02fbad2973aaeb, whose immutable parents ared226c76700e837f22c5b79d207f0c2d1fbe20ef2anddd94a2c2c5d7e059c7c51a0b1ce0347cd4ead6ba, tree52b17120214591c6b075e0808b3ae6daed1994af. GitHub commit metadata and the fetched Git object agree.At head
dd94a2c2c5d7e059c7c51a0b1ce0347cd4ead6ba,collisions.ts --json --pr 4236reports closure collisions with #3054, #3056, #3059, #3069, #3581, #3622, #4151, #4179, #4196, #4198, #4199, #4232, #4233, #4234, #4235. There are no path or unknown collision reports. The closure with #4179 includes the shared CI decision record.Guard containment
A missing or malformed factor refuses only that repetition invocation before burners start. The diagnostic identifies the invalid factor in stderr/CI logs; there is no durable global latch. A corrected plan works on the next invocation without manual recovery. Unknown/partial runner results remain failed proof. The existing job step remains the outer hang bound.
Checklist
dd94a2c2c5d7e059c7c51a0b1ce0347cd4ead6ba; no findings, refusal null. The subsequent clean merge of main preserves its coverage.Anything left open
Landing is complete. The independent review remains clean and recorded. Optional draft heavy feedback was not required by the hybrid policy. The required PR-hosted browser repetition acceptance passed, and ordinary browser proof passed on the squash. The squash main run failed in runtime_host; the separate recovery is tracked in #4242 with the exact failure and parent timing comparison. This PR does not claim a green main run.
Refresh after review:
5f241dfa248d9a4ee6d867f1749e5b12b993902bis a clean two-parent merge of reviewed headdd94a2c2c5d7e059c7c51a0b1ce0347cd4ead6baand main743f1547503e9ed5078ca7a533691aade0676618, tree730592aa9834fa07c982765212963d13abd03661. The tree exactly matchesgit merge-tree --write-tree; no conflicts or additional edits were made. The scaled-default function, owner declaration and decision section each occur once. The newer main work is #4231 and #4233, with no overlapping paths in this PR.proof-system.ts classify --base dd94a2c2c5d7e059c7c51a0b1ce0347cd4ead6ba --head 5f241dfa248d9a4ee6d867f1749e5b12b993902breports no intervening proof-system change, so the successful qualification above remains applicable.Pre-confirmation collision check at refreshed head
5f241dfa248d9a4ee6d867f1749e5b12b993902b: closure reports with #3054, #3056, #3059, #3069, #3581, #3622, #4151, #4179, #4196, #4198, #4199, #4234, #4235. No new source changes follow the recorded review.Refreshed-head hosted scaling acceptance: run 44166808889, attempt 1, head
5f241dfa248d9a4ee6d867f1749e5b12b993902b; browser_determinism (1), job 134337045730 succeeded. Its log again showsDeadline factor 3: visual (chromium); testTimeout=45000 ms, hookTimeout=90000 ms; BRAIN_TEST_DEADLINE_FACTOR=3.All five repetitions passed. Its actual checkout is5cb86f652198e59e3d35eb42526be1b7e2ecd368, parents743f1547503e9ed5078ca7a533691aade0676618and5f241dfa248d9a4ee6d867f1749e5b12b993902b, tree730592aa9834fa07c982765212963d13abd03661, verified against immutable GitHub commit metadata and the fetched Git object.Second clean refresh after reservation holder #4179 landed: head
8567252f4e2410f808926a8fe199d26751e4af12merges previous head5f241dfa248d9a4ee6d867f1749e5b12b993902bwith maind84fca3e08dfa7c5b65973f931ab08d740537d02, treef3bfdab3ccd48037eb8bdcdaeb2d600ed7c811c4. Again the tree exactly matchesgit merge-tree --write-tree, with no conflicts or added edits, and each changed owner/function/decision block occurs once. Classification from the reviewed head through this head remains “not a proof-system change”; the successful ancestor qualification and independent review remain valid. The fresh preflight receipt above passed all 1,230 affected fast invariants.Latest-head draft proof: CI run 44172935365, attempt 1, head
8567252f4e2410f808926a8fe199d26751e4af12, completed successfully, including both repetition jobs and draft gates. Browser job 134357213207 logs factor 3,testTimeout=45000 ms,hookTimeout=90000 ms, andBRAIN_TEST_DEADLINE_FACTOR=3; all five repetitions passed. This is additional hosted scaling evidence on the latest cleanly refreshed head.Third clean refresh after #4196 landed:
c3360d7885ef9ede40bb6f6bec168778b34d13c0merges previous head8567252f4e2410f808926a8fe199d26751e4af12with mainade18f34fbfeb03f49a993268966974fd361cc69, tree950819c9292888d58c227f76c408fe0924638e8f. The computed merge tree matches exactly, without conflicts or extra edits; the changed owner/function/decision blocks each occur once. Classification from the reviewed head still reports no intervening proof-system change. Fresh preflight passed all 1,230 invariants. The new main work adds per-review line-comment counts and does not modify this PR's scaling implementation.Landing and post-merge receipt
Merged through
bun scripts/integrate.ts confirm 4236 --issues schlessera/brain-kit#4192: exit 2, parsed JSON merged:true. Final PR head isc3360d7885ef9ede40bb6f6bec168778b34d13c0. Only clean two-parent merges followed the reviewed implementation head;review-receipt.ts check 4236still reports zero findings andrefusal:null.Candidate run 44180834432, attempt 1, passed all selected jobs, including verify, pack, eight unit partitions and both repetition jobs. Its actual candidate checkout was
5562793d637df20c8974d4ce00bb47ee50590119, with parentsade18f34fbfeb03f49a993268966974fd361cc69andc3360d7885ef9ede40bb6f6bec168778b34d13c0, tree950819c9292888d58c227f76c408fe0924638e8f.On this final head, browser_determinism job 134385074579 passed both selected repetitions of the changed witness. Its log at 21:36:08 UTC reads:
The landed squash is
29e3cb0dc89d880143205edab2ae01e4f12c52c7, parentade18f34fbfeb03f49a993268966974fd361cc69, tree950819c9292888d58c227f76c408fe0924638e8f: exact equality with the proved candidate tree. It is an ancestor of remote main. The integration reservation was released. Issue #4192 is closed; both the issue and PR retain milestone 0.45.0, read back after closure.The squash's automatic main run 44184262171, attempt 1, is completed, failed. Verify, pack, all four unit partitions, all three browser partitions, both layout partitions, captures, endurance and runtime passed. Browser jobs checked out the actual squash. Browser (1), job 134397037996 ran the new witness at the ordinary factor of one: all five tests passed in 793 ms.
Runtime_host job 134397038181 reached the existing 15-minute proof-step timeout during native reference pool allocation. The two preceding commands exited zero after 548606 ms and 290398 ms; no failing top-level product assertion was printed before cutoff. The aggregate consequently failed. The two repetition jobs are intentionally skipped on main. This failed run was not rerun or represented as green. Canonical incident #4242 records the failure and parent comparison; its post-merge-only category does not invalidate the passing candidate confirmation or browser scaling acceptance.