Repository navigation
ci: each swizzle-proof leg runs under the Node legs' shard watchdog and checks its recorded time, and record books the slices from those legs - #11743
Conversation
…nd checks its recorded time, and record books the slices from those legs
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Before | After | Change | |
|---|---|---|---|
| Job-minutes per PR update | 173.3 | 173.3 | 0 |
| Runner pool, runner-minutes a day | 69,333 | 69,333 | 0 (0%) |
| Average concurrent jobs | 48.1 | 48.1 | 0 |
| Time to green (median → this run) | 22.3 min | 29.6 min | +7.3 min |
| Runs a day | 400 | 400 | 0 |
Changed jobs: swizzle-proof changed: standard
Not measured (the jobs that use these keep their recent minutes above): .github/scripts/ci-swizzle-proof.test.mjs.
Flags: time to green +7.3 min.
Assumptions: before is each job's average over the last 20 pull-request runs; after keeps that for unchanged jobs and uses this run's minutes for added or changed ones, weighted by how often each changed job ran in those runs; runs a day averages the seven whole days before today; time to green compares this run with the median of those runs that ran the same jobs.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet because the pull request is a draft, so mark it ready for review to run it.
Each swizzle-proof leg now carries the Node legs' watchdog lines exactly, the drift step mirrors test-node's, and record books only slice files from those legs; the changed tests fail against main and pass here. One thing to weigh later: a swizzle-proof leg measures a single file, so its drift check has no baseline and judges an edited slice against its record without factoring out a slow runner.
Claims and files checked
- Claim: since the proof moved into its own legs, a stuck slice reaches the 15-minute limit and the leg is cancelled with no file named. Verified: the base slice step ran with no watchdog under the 15-minute limit.
- Claim: the slices' recorded times stopped refreshing because
recordbooked only Node-leg lines. Verified for pull-request run logs, sincerecordDurationsskipped every other job and pull-request Node legs leave the slices out; Main's Node legs still run them. - Claim: the slice step uses the Node legs' limit, start-age count, reporters and times file. Verified:
ci.yml:1421-1428matches:1204and:1208-1211, and the new test asserts it. - Claim: a slow slice now fails before the limit and names its file. Verified: the watchdog reporter's stop path and its tests.
- Claim: the new drift step is the same check
test-noderuns. Verified:ci.yml:1432-1434against:1237-1239. - Claim:
recordbooks swizzle-proof leg lines for slice files only. Verified:vitest-shard-sequencer.mjs:92-96and the new test. - Claim:
mergeRecordalready keeps a slice's largest time. Verified:vitest-shard-sequencer.mjs:155-158. - Claim: the step does not set the setting that leaves the slices out. Verified: the step has no such variable, and
vitest.config.ts:272-273shows it would exclude them. - Claim: the named test files pass and the new cases fail on
main. Verified: all pass at this head; the two new cases and the rewritten one fail againstmain's workflow and sequencer. - Claim: on #11697's run the legs took 2 min 26 s to 3 min 57 s, so a slice at its 348 s record ends near 8 minutes. Verified from that run's job timings.
- Claim: the CI impact is one short step per leg on standard runners, with no job added or removed. Verified against the diff.
- Claim: #11712 changes a different part of the sequencer. Verified: its hunks choose the record file and leave
recordDurationsalone. - File:
.github/workflows/ci.yml: clear. - File:
scripts/vitest-shard-sequencer.mjs: clear. - File:
.github/scripts/ci-swizzle-proof.test.mjs: clear. - File:
scripts/vitest-shard-sequencer.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet because the pull request is a draft, so mark it ready for review to run it.
The merge of main leaves this change's own lines as they were: each swizzle-proof leg still carries the Node legs' watchdog lines exactly, the drift step mirrors test-node's, and record books only slice files from those legs; the changed tests fail against main and pass on this head. One thing to weigh later: a swizzle-proof leg measures a single file, so its drift check has no baseline and judges an edited slice against its record without factoring out a slow runner.
Claims and files checked
Review mode: incremental; reason: none
- Claim: since the proof moved into its own legs, a stuck slice reaches the 15-minute limit and the leg is cancelled with no file named. Verified: on
mainthe slice step runs with no watchdog under the 15-minute limit. - Claim: the slices' recorded times stopped refreshing because
recordbooked only Node-leg lines. Verified for pull-request run logs, the record's documented source, sincerecordDurationsskipped every other job and pull-request Node legs leave the slices out. - Claim: the slice step uses the Node legs' limit, start-age count, reporters and times file. Verified:
ci.yml:1518-1523matches:1300and:1304-1307, and the new test asserts it. - Claim: a slow slice now fails before the limit and names its file. Verified: the watchdog reporter's stop path and its tests.
- Claim: the new drift step is the same check
test-noderuns. Verified:ci.yml:1528-1530against:1333-1335. - Claim:
recordbooks swizzle-proof leg lines for slice files only. Verified:vitest-shard-sequencer.mjs:92-96and the new test. - Claim:
mergeRecordalready keeps a slice's largest time. Verified:vitest-shard-sequencer.mjs:155-158. - Claim: the step does not set the setting that leaves the slices out. Verified: the step has no such variable, and
vitest.config.ts:272-274shows it would exclude them. - Claim: the shape test checks the watchdog lines, times file, job limit, drift step and its guard, and never the excluding setting. Verified:
ci-swizzle-proof.test.mjs:32-75. - Claim: the sequencer test books slice files from swizzle-proof lines, plain and with spelled-out colour codes, and ignores other files there. Verified:
vitest-shard-sequencer.test.mjs:364-377. - Claim: the named test files pass and the new cases fail on
main. Verified: all pass on this head; the two new cases and the rewritten one fail againstmain's workflow and sequencer. - Claim: on #11697's run the legs took 2 min 26 s to 3 min 57 s, so a slice at its 348 s record ends near 8 minutes. Verified from that run's job timings.
- Claim: the CI impact is one short step per leg on standard runners, with no job added or removed. Verified against the diff.
- Claim: the listed overlapping pull requests change other parts. Verified: #11712 chooses the record file and leaves
recordDurationsalone; the later change to the swizzle-proof job's width has merged cleanly. - File:
.github/workflows/ci.yml: clear. - File:
scripts/vitest-shard-sequencer.mjs: clear. - File:
.github/scripts/ci-swizzle-proof.test.mjs: clear. - File:
scripts/vitest-shard-sequencer.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet because the pull request is a draft, so mark it ready for review to run it.
Each swizzle-proof leg now carries the Node legs' watchdog lines exactly, the drift step mirrors test-node's, and record books only slice files from those legs; the changed tests fail against main and pass on this head. One thing to weigh later: the four watchdog lines now live in two jobs, pinned together by ci-swizzle-proof.test.mjs, so a shared script would remove the copy.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
- Claim: since the proof moved into its own legs, a slow or stuck slice reaches the 15-minute limit and the leg ends cancelled with no file named. Verified: on
mainthe slice step runs a barepnpm test:nodewith no watchdog undertimeout-minutes: 15. - Claim: the slices' recorded times stopped refreshing because
recordbooked only Node-leg lines. Verified for pull-request run logs, the record's documented source:recordDurationsskipped every other job and pull-request Node legs leave the slices out; Main's Node legs still run them. - Claim: the slice step uses
test-node's limit, start-age count, reporters and times file. Verified:ci.yml:1571-1576matches:1343and:1347-1350, and the new test asserts it. - Claim: a slow slice now fails before the limit and names its file. Verified: the watchdog reporter's stop path (
vitest-shard-watchdog.mjs:87-106) and its tests. - Claim: the new drift step is the same check
test-noderuns. Verified:ci.yml:1581-1583against:1376-1378. - Claim:
recordbooks swizzle-proof leg lines for slice files only. Verified:vitest-shard-sequencer.mjs:80-84and the new test. - Claim:
mergeRecordalready keeps a slice's largest time. Verified:vitest-shard-sequencer.mjs:136-147. - Claim: the step does not set the setting that leaves the slices out. Verified: the step sets no such variable, and
vitest.config.ts:259-261shows it would exclude them. - Claim: the shape test checks the watchdog lines, times file, job limit, drift step and its guard, and never the excluding setting. Verified:
ci-swizzle-proof.test.mjs:32-75. - Claim: the sequencer test books slice files from swizzle-proof lines, plain and with spelled-out colour codes, and ignores other files there. Verified:
vitest-shard-sequencer.test.mjs:357-370. - Claim: 77 tests pass across the five named test files, and the three new cases fail on
main. Verified: all 77 pass on this head; the two new cases and the rewritten one fail againstmain's workflow and sequencer. - Claim: on the run that split the proof out, the legs took 2 min 26 s to 3 min 57 s, so a slice at its 348 s record ends near 8 minutes. Verified from that run's job timings, with each slice step starting 60 to 89 s into its job.
- Claim: the CI impact is one short step per leg on standard runners, with no job added or removed. Verified against the diff.
- Claim: the governing claims are the CI routing record's job budget and CI-impact requirements and the swizzle proof's before-merge requirement, whose scope and width this does not change. Verified: the scope script and the eight-leg matrix are unchanged.
- Claim: the listed overlapping pull requests change other parts. Verified: the open sequencer change edits the record choice and a different function, and moves the slice pattern into a shared module it imports back, so this change's reference keeps resolving.
- File:
.github/workflows/ci.yml: clear. - File:
scripts/vitest-shard-sequencer.mjs: clear. - File:
.github/scripts/ci-swizzle-proof.test.mjs: clear. - File:
scripts/vitest-shard-sequencer.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet because the pull request is a draft, so mark it ready for review to run it.
The merge of main leaves this change's own lines as they were: each swizzle-proof leg carries the Node legs' watchdog lines exactly, the drift step mirrors test-node's, and record books only slice files from those legs, now through the slice pattern main moved into scripts/lib/duration-split.mjs. The changed tests fail against main and pass on this head. One thing to weigh later: the four watchdog lines live in two jobs, pinned together by ci-swizzle-proof.test.mjs, so a shared script would remove the copy.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
- Claim: since the proof moved into its own legs, a slow or stuck slice reaches the 15-minute limit and the leg ends cancelled with no file named. Verified: on
mainthe slice step runs a barepnpm test:nodewith no watchdog undertimeout-minutes: 15. - Claim: the slices' recorded times stopped refreshing because
recordbooked only Node-leg lines. Verified for pull-request run logs, the record's documented source:recordDurationsskipped every other job and pull-request Node legs leave the slices out; Main's Node legs still run them. - Claim: the slice step uses
test-node's limit, start-age count, reporters and times file. Verified:ci.yml:1571-1576matches:1343and:1347-1350, and the new test asserts it. - Claim: a slow slice now fails before the limit and names its file. Verified: the watchdog reporter's stop path (
vitest-shard-watchdog.mjs:86-106) and its tests. - Claim: the new drift step is the same check
test-noderuns. Verified:ci.yml:1581-1583against:1376-1378. - Claim:
recordbooks swizzle-proof leg lines for slice files only. Verified:vitest-shard-sequencer.mjs:106-110and the new test. - Claim:
mergeRecordalready keeps a slice's largest time. Verified:scripts/lib/duration-split.mjs:162-169, which the sequencer'smergeRecordcalls. - Claim: the step does not set the setting that leaves the slices out. Verified: the step sets no such variable, and
vitest.config.ts:259-261shows it would exclude them. - Claim: the shape test checks the watchdog lines, times file, job limit, drift step and its guard, and never the excluding setting. Verified:
ci-swizzle-proof.test.mjs:32-75. - Claim: the sequencer test books slice files from swizzle-proof lines, plain and with spelled-out colour codes, and ignores other files there. Verified:
vitest-shard-sequencer.test.mjs:374-387. - Claim: 77 tests pass across the five named test files, and the three new cases fail on
main. Verified with a newer count: the merge ofmainadded one sequencer case, so all 78 pass on this head; the two new cases and the rewritten one fail againstmain's workflow and sequencer. - Claim: on the run that split the proof out, the legs took 2 min 26 s to 3 min 57 s, so a slice at its 348 s record ends near 8 minutes. Verified from that run's job timings (146 s to 237 s, each slice step starting 60 to 89 s into its job) and the record's largest slice entry.
- Claim: the CI impact is one short step per leg on standard runners, with no job added or removed. Verified against the diff.
- Claim: the governing claims are the CI routing record's job budget and CI-impact requirements and the swizzle proof's before-merge requirement, whose scope and width this does not change. Verified: the scope script and the eight-leg matrix are unchanged.
- Claim: the listed overlapping pull requests change other parts. Verified: the sequencer change, since merged, changed the record choice and moved the slice pattern into a shared module the sequencer imports, so this change's reference resolves; the two other workflow changes, since merged, touch other jobs; the drift-script change touches only that script and its test; the sample-component change touches only a proof sample.
- File:
.github/workflows/ci.yml: clear. - File:
scripts/vitest-shard-sequencer.mjs: clear. - File:
.github/scripts/ci-swizzle-proof.test.mjs: clear. - File:
scripts/vitest-shard-sequencer.test.mjs: clear.
Who this helps
Maintainers waiting on a pull request's swizzle proof. Since #11697 moved the proof's eight slices into their own
swizzle-proof (n/8)legs (thanks to that change for the split), a slow or stuck slice runs into the leg's 15-minute limit and the leg ends cancelled: no failure, and no line saying which file was still running. The record of each slice's time also stopped refreshing, becauserecordbooks only the Node legs' lines.What changes
ci.ymlswizzle-proof: the slice step runs under the shard watchdog exactly astest-nodedoes: the same limit (a minute before the job's 15 minutes, counted from the job's start), the same reporters, andVITEST_SHARD_TIMES_FILE. A slow slice now fails before the limit and names its file.test-noderuns (node-time-drift.mjs --changed HEAD^1), so a pull request that changes a slice file and slows it far past its record fails there, naming both times.scripts/vitest-shard-sequencer.mjsrecordDurations: besides the Node legs' lines, it books lines from theswizzle-proof (n/8)legs, for the slice files only.mergeRecordalready keeps the largest time seen for a slice, so the slices' entries refresh from the legs that run them.VITEST_SWIZZLE_PROOF_OWN_JOB, which would leave out the very file it runs.Evidence
ci-swizzle-proof.test.mjs: the slice step carries every watchdog line oftest-node's step (start age, limit, reporters), the same times file and job limit, the drift step and its guard, and never the setting that excludes slices.vitest-shard-sequencer.test.mjs:recordbooks slice files fromswizzle-proof (n/8)lines (plain and with colour codes spelled out), and ignores any other file in that job.ci-node-leg-bounds,ci-test-joinandci-tooling-routing. The three new cases fail onmain's workflow and sequencer.affectedscope) the legs took 2 min 26 s to 3 min 57 s; slice 1 ran 122 s of test after about 95 s of setup. A slice at its largest recorded time (348 s) comes to about 8 minutes, so the watchdog's 14 minutes leaves room on a slow runner.CI impact:
swizzle-proofstays on standard GitHub-hosted runners (ubuntu-latest); no job is added or removed. When the proof runs, each of its eight legs gains one short step (the drift check, a few seconds), about +0.5 job-minutes per pull-request update, and nothing when the scope isnone. Runner-pool usage and concurrent jobs: no measurable change. Time to green: unchanged for a passing run; a stuck slice fails about a minute before the limit instead of being cancelled at it.Specs
spec:AST-030FR22 (each leg inside the fifteen-minute job budget; legs balanced by recorded test time) and FR19 (theCI impact:line above);spec:AST-110FR7 (the swizzle proof), whose scope and width this does not change.Overlap check
Searched open pull requests touching
.github/workflows/ci.yml,scripts/vitest-shard-sequencer.mjs,scripts/vitest-shard-watchdog.mjs,.github/scripts/node-time-drift.mjs,.github/scripts/ci-swizzle-proof.test.mjsandpackages/cli/test/swizzle-proof/. None touches theswizzle-proofjob.Overlap checked: #11712 (a separate change: it makes the sequencer read the record a workflow names, for the minimum-Node legs; this one adds the swizzle-proof legs' lines to
recordDurations, a different function, and its own test cases)Overlap checked: #11645 (another
ci.ymljob: the release check's WebKit run)Overlap checked: #11667 (another
ci.ymljob: the touched-components skip step)Overlap checked: #11639 (touches
node-time-drift.mjsonly, which this change calls but does not edit)Overlap checked: #9832 (a swizzle-proof sample component, not the job)
Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the shipper, through merge-guard.