Skip to content

fix(ci): qualify oversized determinism files and warn before running - #4237

Merged
schlessera merged 6 commits into
mainfrom
fix/4156-oversized-determinism
Nov 17, 2026
Merged

schlessera merged 6 commits into
mainfrom
fix/4156-oversized-determinism

Conversation

@schlessera

@schlessera schlessera commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Closes #4156

What changed

The determinism job writes an oversized-file warning before starting repetitions, so its summary still names the unsplittable file, estimate, capacity and step limit if the step times out. Hosted measurements cover all four files identified by the issue, and a coverage test rejects a newly oversized reviewed file without recorded evidence.

Why this shape

The floor stays at two and no file is skipped. The decision record accounts for the #4155 weight refresh and #4191's factor-of-eight watchdog scaling. All four files passed. The longest report took 1,429.3 seconds and its full proof step took 1,433 seconds, leaving 967 seconds inside the existing 40-minute limit, so no step-limit change or file split is needed.

Proof

  • Failing first: the new real-command fixture failed toContain("Single file exceeds partition capacity"), receiving an empty summary during its first repetition.
  • Mutation: omitted the pre-launch summary write; the same named test failed on that same assertion. Restored code passes.
  • Coverage guard failed with the current oversized association-signout and parallel-sessions files missing from the measurement inventory. Mutation: temporarily assigned tests/test-determinism.test.ts a reviewed weight of 151 seconds; every reviewed file above the two-pass capacity has a hosted measurement inside the step limit failed NEW_OVERSIZED_FILES_NEED_HOSTED_MEASUREMENT_OR_A_RECORDED_REMEDY, naming that file. Restored the reviewed weights; the test passed.
  • bun run test ./tests/test-determinism.test.ts: 43 pass, 0 fail.
  • Hosted measurement: run 44161515414, attempt 1, four successful jobs, exactly two repetitions each under four burners on four CPUs with deadline factor 8. Reports and JUnit agree (49, 68, 15 and 36 distinct cases, each twice). All job checkout logs and receipts name 7e4008a99199f708b0f71ae01f4d19b615248312, parents 0aeb62a7acaef51deabe6a6bc84d3b7b1b72e286 and 33485434a248168db55d423199f3ff06cbe9fe89, tree 6eafef9615efcf86ef47ff7172d9105b0057cd58; immutable API and local Git agree. These measurements describe that tree. The throwaway #4232 is closed without merge and its branch is deleted.
  • Refreshed to main 51d0f6de637509a97bed014eb0a284a196199e80 (fix(ui-kit): a not-posted GitHub draft shows its whole body (#4197) #4199), current head 325df4bbc9e8e1688b1b623a44880943891256ec. The incoming five UI-kit/changeset paths do not overlap the issue paths. The merge is clean and all warning/test/decision/measurement blocks remain unique. The implementation patch is unchanged; no core package paths are in this PR diff.

Current candidate: head 325df4bbc9e8e1688b1b623a44880943891256ec, base 51d0f6de637509a97bed014eb0a284a196199e80. The exact-candidate lease is held while qualification finishes. Local preflight passed on this head/base; its exact receipt follows. The four-path diff remains fast-lane eligible and needs no independent review. Landing uses that permitted lane after all selected draft feedback passes; the squash receives full automatic main proof.

{"version":1,"kind":"brain-check-pr-receipt","head":"325df4bbc9e8e1688b1b623a44880943891256ec","base":"origin/main","mode":"focused","startedAt":"2026-11-17T22:18:22.877Z","finishedAt":"2026-11-17T22:20:23.708Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":17267.43496},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":175.13414900000134},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":130.5916099999995},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":22.68484499999977},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":103215.85893599999}]}
  • Earlier draft feedback on head 6a221a9a5db554a924e9591871602144038bee79, base 743f1547503e9ed5078ca7a533691aade0676618: run 44167838282, attempt 1, metadata job 134338560127 and determinism job 134338960217 passed. The changed tooling test file passed all five repetitions under four burners with factor 8 in 129.7 seconds (43 distinct cases, each five times). Both job checkout logs and proof-checkout.json name cd424a34cf7bc54b78706670b5182c88d2b26467, parents 743f1547503e9ed5078ca7a533691aade0676618 and 6a221a9a5db554a924e9591871602144038bee79, tree 2686bf8f421fb6a3324f38e02da659d45dad5653. API, local object and candidate tree agree. No selected job failed or was retried.

  • Earlier draft feedback on head 095bb96d920253a89710a1bdaf3b1a64617eca71, base d84fca3e08dfa7c5b65973f931ab08d740537d02: run 44172766588, attempt 1, metadata job 134355965917 and determinism job 134356568286 passed. All 43 cases ran five times under four burners with factor 8 in 123.9 seconds. Both job logs and the checkout receipt name fd154fcc0e6eb166f11dcfb3ecd63641ea432c34, parents d84fca3e08dfa7c5b65973f931ab08d740537d02 and 095bb96d920253a89710a1bdaf3b1a64617eca71, tree 2187775de1ddf9ecaa702ce74af841a8caa52516; API, local object and candidate tree agree.

  • Earlier draft feedback on head 250cf4bb355771e27de5b574648cb0b3d97b676c, base ade18f34fbfeb03f49a993268966974fd361cc69: run 44177942130, attempt 1, metadata job 134374216213 and determinism job 134374829936 passed. All 43 cases ran five times under four burners with factor 8 in 135.2 seconds. Both checkout logs and the receipt name 597491870c35ada9e74cb9d6e69d0d6246c4b06e, parents ade18f34fbfeb03f49a993268966974fd361cc69 and 250cf4bb355771e27de5b574648cb0b3d97b676c, tree b5e603131e4616d288e2f592beb0628cacdebcbb; API, local object and candidate tree agree. The complete draft run passed.

  • Exact-head draft feedback on head f30e32bf50f5b8937eb9f2b00931545948f3cc6b, base 29e3cb0dc89d880143205edab2ae01e4f12c52c7: run 44184661514, attempt 1 passed. Metadata job 134397840391 and determinism job 134398402134 checked out 6e622b4c5951ae7c14a54aa1851cf637183889b1, parents 29e3cb0dc89d880143205edab2ae01e4f12c52c7 and f30e32bf50f5b8937eb9f2b00931545948f3cc6b, tree 07011e032213b9be27b6761c01104f4509bed1d6. API, local object and candidate tree agree. JUnit and JSON confirm all 43 cases five times under four burners with factor 8, in 134.8 seconds.

  • Final reserved-head draft proof: run 44188769570, attempt 1 passed. Metadata job 134412243919 and determinism job 134412764797 checked out f96cc8a8b78ae36094266318dd8b2a3d49a685d8, parents 51d0f6de637509a97bed014eb0a284a196199e80 and 325df4bbc9e8e1688b1b623a44880943891256ec, tree dd1a3ed33991999684e69c263b2d3a939c8f8493. API, local object and candidate tree agree. All 43 cases ran five times under four burners with factor 8 in 138.0 seconds, confirmed by JUnit and JSON. Every selected draft job and the aggregate passed. The same exact head/base remains reserved for fast-lane landing.

Checklist

  • Focused local preflight and selected hosted proof passed; receipts and checkout identities recorded above.
  • Issue acceptance criteria are met.
  • No core package paths changed; independent review is not required.
  • Issue and PR target milestone 0.45.0.
  • CI tooling only: no changeset or integration contract change.
  • No personal data; leakage gate passes.
  • Decision record reflects the measurements and policy.
  • No product guard or provider-history change.

Anything left open

Nothing.

@schlessera schlessera added this to the 0.45.0 milestone Nov 17, 2026
@schlessera schlessera added type: chore Tooling, CI, release plumbing, dependencies. area: ci CI workflows, the gates they run, release scripts, packaging. labels Nov 17, 2026
@schlessera

Copy link
Copy Markdown
Owner Author

Collision receipt for head 6a221a9a5db554a924e9591871602144038bee79: bun scripts/collisions.ts --json --pr 4237 reports 14 closure collisions with #3054, #3056, #3059, #3069, #3581, #3622, #4151, #4179, #4196, #4198, #4199, #4234, #4235, #4236. Shared paths reported include docs/decisions/ci-utility.md (#4179, #4236), tests/test-determinism.test.ts and tests/hosted-proof.test.ts (#4236). The live PR diff has four paths outside the core packages (lane: fast); review-receipt.ts check 4237 reports independent review not required. The main refresh was clean, and warning/test/decision/measurement blocks were checked for duplication.

@schlessera

Copy link
Copy Markdown
Owner Author

Refreshed collision receipt for head 095bb96d920253a89710a1bdaf3b1a64617eca71, base d84fca3e08dfa7c5b65973f931ab08d740537d02: bun scripts/collisions.ts --json --pr 4237 reports 14 closure collisions with #3054, #3056, #3059, #3069, #3581, #3622, #4151, #4196, #4198, #4199, #4234, #4235, #4236, #4238. #4179 is now on main. The main merge was clean and all added blocks/records were verified unique. The live diff still touches only four tooling/documentation paths; independent review remains not required. Fresh exact-head hosted feedback is running.

@schlessera

Copy link
Copy Markdown
Owner Author

Collision receipt for head 250cf4bb355771e27de5b574648cb0b3d97b676c, base ade18f34fbfeb03f49a993268966974fd361cc69: 14 closure collisions with #3054, #3056, #3059, #3069, #3581, #3622, #4151, #4198, #4199, #4234, #4235, #4236, #4238, #4240. The #4196 main refresh does not overlap the issue paths. The resulting implementation diff matches the original patch, and the merge has no duplicate warning/test/decision/measurement blocks. Independent review is not required (four paths outside the core packages). The exact-head preflight passed; fresh hosted feedback is running.

@schlessera

Copy link
Copy Markdown
Owner Author

Collision receipt for head f30e32bf50f5b8937eb9f2b00931545948f3cc6b, base 29e3cb0dc89d880143205edab2ae01e4f12c52c7: 13 closure collisions with #3054, #3056, #3059, #3069, #3581, #3622, #4151, #4198, #4199, #4234, #4235, #4238, #4240. The #4236 merge was clean; no duplicate blocks or records, and the complete implementation diff still matches the original patch. The Bun deadline factor remains 8. Preflight passed on the refreshed head, and the live diff is still four paths outside the core packages, so independent review is not required. Hosted feedback is running on this exact head.

@schlessera

Copy link
Copy Markdown
Owner Author

Collision receipt for reserved head 325df4bbc9e8e1688b1b623a44880943891256ec, base 51d0f6de637509a97bed014eb0a284a196199e80: 12 closure collisions with #3054, #3056, #3059, #3069, #3581, #3622, #4151, #4198, #4234, #4235, #4238, #4240. The #4199 incoming paths are unrelated; the clean merge retains one copy of every added block and record. Preflight passed. The live diff is four tooling/documentation paths outside the core packages, so independent review is not required. The exact candidate is reserved while its hosted draft feedback finishes.

@schlessera
schlessera marked this pull request as ready for review November 17, 2026 22:29
@schlessera
schlessera merged commit cd896ac into main Nov 17, 2026
30 checks passed
@schlessera

Copy link
Copy Markdown
Owner Author

Delivered by PR #4237, squash cd896ac, in milestone 0.45.0.

Hosted measurement run 44161515414 (attempt 1) passed two repetitions of all four originally identified heavy files under four CPU burners, with #4191's deadline factor 8. The heaviest report took 1429.3 seconds; its full step took 1433 seconds, so the 40-minute limit stays. The decision record contains estimates, elapsed times, job links and actual checkout provenance. The job now writes an oversized-file warning before starting tests, and a mutation-proven coverage test rejects a newly oversized file without recorded evidence.

Focused preflight and the exact-head hosted repetition job passed; the PR body carries the receipts. Automatic squash main run https://github.com/schlessera/brain-kit/actions/runs/44190582369 is green, and actual checkout/parent/tree verification agrees with the inspected candidate. Issue and PR milestone 0.45.0 were read back after closure. Measurement PR #4232 is closed without merge and its local/remote branch is deleted.

Main proof receipt: automatic push run 44190582369, attempt 1, all 17 executed jobs passed and every actual checkout log names the squash SHA. determinism and browser_determinism intentionally do not repeat on main. The pre-existing runtime_host incident category passed in this run.

The ready-event run 44190576184 failed stale-candidate validation after the PR had already been squashed through the permitted fast lane. It was superseded by that merge, is not claimed as green, and was not rerun. Pre-merge qualification is draft run 44188769570 and the final check:pr receipt; full post-merge qualification is the squash main run above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, the gates they run, release scripts, packaging. type: chore Tooling, CI, release plumbing, dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: a single test file heavier than one determinism partition may not finish two repetitions inside the step limit

1 participant