Repository navigation
ci: Main's unit run plans its Node legs from the recorded times - #12120
Conversation
main-commit runs the Node leg planner with --main, which keeps the swizzle proof's slices that Main's Node legs run, and test-node's matrix reads its shards (eight when the plan cannot run). A plan past its budget warns and runs the most legs instead of failing Main's legs. Main's admission peak and the shared estimate go from 14 to 16 jobs; FR22 says six UI legs and the Node legs the recorded times need, at most eight.
|
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 | 180 | 180 | 0 |
| Runner pool, runner-minutes a day | 67,168 | 67,168 | 0 (0%) |
| Average concurrent jobs | 46.6 | 46.6 | 0 |
| Time to green (median → this run) | 50.5 min | 48.9 min | −1.6 min |
| Runs a day | 373 | 373 | 0 |
Other workflows: deploy.yml changed: runs on push, workflow_dispatch; standard runners; its minutes are not measured here
Not measured (the jobs that use these keep their recent minutes above): .github/actions/ci-admission/count.mjs, .github/scripts/ci-test-routing.test.mjs, .github/scripts/main-validation-workflow.test.mjs.
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
…egs and warns The body now states what the verification row already checks: Main never fails its legs for the plan.
|
/approve-spec 077f8f3 |
There was a problem hiding this comment.
Changes requested. Two points still need correcting before Main's unit run plans its Node legs from the recorded times:
plan --maintakes the fewest legs that fit the budget, which is the pull-request rule, while DEC-17 (unchanged here) says a full run gets as many legs as shorten its slowest lane, so either keep Main at eight legs unless the slowest file already sets the floor, or amend DEC-17 in this PR to say that Main follows the budget plan.- The description says #11921 overlaps only on other lines of
deploy.yml, but it also edits FR22, and merging the two heads conflicts on the adjacent FR22 verification rows indocs/specs/AST-030/spec.md, so please name that conflict.
#12100 has since landed on main, and this branch still merges with it cleanly. Non-blocking: the comment above test-ui in deploy.yml (lines 173-180) still says six legs reach the floor and more would not help, and the Main over-budget warning is only tested while the recorded suite is over budget.
Claims and files checked
Review mode: same-head; reason: none
- Claim: Main's legs ran near the watchdog over one day (p95 and share past 12.5 min). Not checkable from the repository; the run and leg counts are consistent.
- Claim:
main-commitplans with--mainfrom a sparse checkout that also holdsscripts/liband.github/scripts/lib, as ci.yml'sroomdoes. Verified (deploy.yml:109-128). - Claim: test-node reads the planned shards and falls back to eight legs. Verified (
deploy.yml:218). - Claim: a push still runs only the fast checks. Verified (
deploy.yml:125,:212). - Claim:
plan --mainadds the swizzle-proof slices at their recorded times. Verified (vitest-node-legs.mjs:184-185; eight more files). - Claim: Main's over-budget plan warns and runs eight legs, while a pull request's still fails. Verified (
vitest-node-legs.mjs:204-209and a planner run). - Claim: Main's admission peak and the shared estimate go from 14 to 16, and a push stays at 4. Verified (
deploy.yml:138,count.mjs:81). - Claim: FR22's body, verification row and failure clause change as described. Verified (
spec.md:526-528,:552-554,:776). - Claim: no decision card was needed for the FR22 edit. Not a code claim; the edit carries an engineering owner's spec approval for this head.
- Claim: today a pull request plans 10,773 s in eight legs and Main 13,126 s in eight legs with a warning. Verified (planner at the head and on its merge with
main). - Claim: Main follows the record from here on, under FR22 and DEC-17. False for DEC-17 (first finding).
- Claim: the new tests cover Main's file list, leg bounds, the never-failing command and the workflow shape. Verified (
vitest-node-legs.test.mjs:89-116,main-validation-workflow.test.mjs:25-69). - Claim: 161 of 161 tests pass across the six named files. Verified; on the merge with
mainthe same files plus two more pass, 199 of 199. - Claim: both new cases fail against main's workflow and planner. Verified.
- Claim: prettier and the knowledge check pass. Verified; actionlint was not rerun.
- Claim: about 64 more leg-runs a day, a quarter less of the suite per leg, and admission counts 16 jobs. Arithmetic verified; finishing inside the watchdog is a prediction (the longest planned leg is still over budget).
- Claim: #12100 touches other lines and a merge keeps both. Verified: it has since landed on
main, the merge is clean and keeps both changes. - Claim: #11921 touches only other lines of
deploy.yml. False (second finding). - Claim: ownership and landing route. Not a code claim.
- File:
.github/actions/ci-admission/count.mjs: clear. - File:
.github/scripts/main-validation-workflow.test.mjs: clear. - File:
.github/workflows/deploy.yml: first finding (planning step); stale comment at 173-180 (non-blocking). - File:
docs/specs/AST-030/spec.md: FR22 edit approved for this head; leaves DEC-17 contradicting it; conflicts with #11921. - File:
scripts/vitest-node-legs.mjs: first finding (fewest-legs plan for Main). - File:
scripts/vitest-node-legs.test.mjs: clear; the over-budget branch depends on the live record (non-blocking).
DEC-17 gives Main's full run as many legs as shorten its slowest lane, not the fewest that fit a budget. On the recorded suite with the swizzle proof's slices, twelve legs keep the slowest under about eleven minutes on a runner 1.28 times slower than measured, where eight reach the fifteen-minute limit. Main never fails its legs for the plan; it warns when the slowest leg nears its limit. Main's admission peak and the shared estimate go to 20; FR22 says at most twelve.
|
/approve-spec fd57d5a |
There was a problem hiding this comment.
Changes requested. Main's planned Node legs now follow DEC-17, and the FR22 amendment is owner-approved for this head, but two points need fixing first:
- Miss:
.github/scripts/ci-test-routing.test.mjs("splits each Vitest lane across legs that together run every file", lines 283-296) accepts only ci.yml'sneeds.roomshard expression, so it fails on the newneeds.main-commit.outputs.node-shardsmatrix at.github/workflows/deploy.yml:217and turns the Node suite red; let it read the matrix throughmatrixForin.github/scripts/ci-matrix.mjsand accept each workflow's planning job. - The description says the five new or changed cases fail with main's workflow and planner, but six do (the five new
vitest-node-legs.test.mjscases and the test-node case inmain-validation-workflow.test.mjs), so please correct the count.
Non-blocking: the comment at scripts/vitest-node-legs.mjs:301-302 says each Main leg's watchdog names its slow files, but Main's test-node runs no shard watchdog. The earlier DEC-17 and #11921-overlap points are resolved.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: since 11/14, 14 Main unit runs had a Node leg time out, and the last day's legs had a p95 of 15.3 min. Not checkable from the repository (run history).
- Claim: the Node record grew from 830 files and 3,475 s to 1,581 files and 12,243 s in a week, with the theme-edit and swizzle-slice columns as tabled. Verified from the record's history (3.5×).
- Claim:
main-commitplans with--mainfrom a sparse checkout that also holdsscripts/liband.github/scripts/lib, as ci.yml'sroomdoes, before it waits for room. Verified (deploy.yml:109-128). - Claim: test-node reads the plan's shards and falls back to twelve legs. Verified (
deploy.yml:126,:217). - Claim: a push still runs only the fast checks. Verified (
deploy.yml:125,:211). - Claim:
plan --mainadds the swizzle-proof slices. Verified (1,599 files against 1,591). - Claim: Main gets as many legs as shorten the slowest, up to twelve, and pull requests keep the fewest that fit, up to eight. Verified (
vitest-node-legs.mjs:83,:146-196; planner replay). - Claim: Main never fails for its plan, a pull request still does, and a near-limit notice fires past 12.5 min on a 1.28× slower runner. Verified (
vitest-node-legs.mjs:85-116,:208-215,:303-309). - Claim: admission's peak and the shared estimate go from 14 to 20, a push stays at 4, and the admission test checks both. Verified (
deploy.yml:138,count.mjs:81,ci-admission.test.mjs:524-549). - Claim: an outside capacity tool picks up 20 from the same count with no change of its own. Not checkable here (the tool is outside the repository); it reads the shared count by design.
- Claim: FR22's body and verification row change as described. Verified (
spec.md:524-528,:550-554,:776). - Claim: the replay table (6 to 12 legs), the slowest file at 348 s, and no over-budget warning at twelve legs. Verified (planner at this head).
- Claim: the listed new test cases exist and check what they say. Verified (
vitest-node-legs.test.mjs:96-190,main-validation-workflow.test.mjs:32-70). - Claim: 165 of 165 tests pass across the six named files. Verified.
- Claim: with main's workflow and planner, the five new or changed cases fail. False: six fail.
- Claim: prettier and the knowledge check pass. Verified; actionlint was not rerun.
- Claim: test-ui does not use the planner; pull requests run four UI legs and Main six. Verified (
ci.yml:1062,deploy.yml:189). - Claim: about 190 more leg-runs a day, each leg about half today's share. Consistent with 32 runs and 6 to 12 legs; the run count is not checkable here.
- Claim: #12100 merges cleanly, and #11921 conflicts only on the adjacent FR22 verification rows. Verified by trial merges.
- File
.github/actions/ci-admission/count.mjs: clear. - File
.github/scripts/main-validation-workflow.test.mjs: clear. - File
.github/workflows/deploy.yml: finding (its new matrix fails the routing test). - File
docs/specs/AST-030/spec.md: clear. - File
scripts/vitest-node-legs.mjs: non-blocking note (watchdog comment). - File
scripts/vitest-node-legs.test.mjs: clear.
ci-test-routing.test.mjs accepted only ci.yml's planned shard matrix; it now reads each workflow's matrix through matrixFor and accepts the planning job of either workflow (room, main-commit). The over-budget comment no longer claims a watchdog Main's legs do not run.
|
/approve-spec 9d562f4 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, since the pull request is still a draft. The earlier points are fixed: the routing contract test now reads Main's planned Node matrix through matrixFor and passes, the description's red-first count matches the six cases that fail on main's workflow and planner, and the watchdog comment is gone. The FR22 amendment has an engineering owner's /approve-spec for this head.
Once CI runs green on the ready pull request, nothing else stands in the way.
Claims and files checked
Review mode: incremental; reason: none
- Claim: since 11/14, 14 Main unit runs had a Node leg time out, and the last day's legs had a p95 of 15.3 min with 43% past 12.5 min. Not checkable here (run history).
- Claim: the Node record grew from 830 files and 3,475 s to 1,581 files and 12,243 s in a week, with the theme-edit and swizzle-slice columns as tabled. Verified from the record's history on
main(3.5×). - Claim:
main-commitplans with--mainfrom a sparse checkout that also holdsscripts/liband.github/scripts/lib, as ci.yml'sroomdoes, before it waits for room. Verified (deploy.yml:109-128,ci.yml:173-178). - Claim: test-node reads the plan's shards and falls back to twelve legs; a push still runs only the fast checks. Verified (
deploy.yml:125,:211,:217). - Claim:
plan --mainadds the swizzle-proof slices, which Main's Node legs run. Verified (1,599 files against 1,591; no own-job setting indeploy.yml). - Claim: Main gets as many legs as shorten the slowest, up to twelve, and pull requests keep the fewest that fit, up to eight. Verified (
vitest-node-legs.mjs:146-198; planner at this head). - Claim: Main never fails for its plan, a pull request still does, and a near-limit notice fires past 12.5 min on a 1.28× slower runner. Verified (
vitest-node-legs.mjs:85-116,:200-215,:301-308). - Claim: admission's peak and the shared estimate go from 14 to 20, a push stays at 4, and the admission test already checks both. Verified (
deploy.yml:138,count.mjs:81,ci-admission.test.mjs:524-549). - Claim: an outside capacity tool picks up 20 from the same count with no change of its own. Not checkable here (the tool is not in the repository).
- Claim: FR22's body and verification row change as described. Verified (
spec.md:524-528,:552-554,:776). - Claim: the replay table (6 to 12 legs), the slowest file at 348 s, and no warning at twelve legs within the 1,387 s budget. Verified (planner at this head).
- Claim: the listed new test cases exist and check what they say. Verified (
vitest-node-legs.test.mjs:96-190,main-validation-workflow.test.mjs:32-70). - Claim: 223 of 223 tests pass across the seven named files. Verified.
- Claim: with
main's workflow and planner, the six new or changed cases fail. Verified (exactly those six fail on the base). - Claim:
ci-test-routing.test.mjsreads each workflow's shard matrix throughmatrixForand accepts each planning job's matrix. Verified (ci-test-routing.test.mjs:290-308). - Claim: prettier and the knowledge check pass. Verified; actionlint was not rerun.
- Claim: test-ui does not use the planner; pull requests run four UI legs and Main six. Verified (
ci.yml:1062,deploy.yml:189); the one 18:27Z UI timeout is not checkable here. - Claim: about 190 more leg-runs a day, each leg about half today's share. Consistent (32 × 6; 1,094 s against 2,188 s); the run count is not checkable here.
- Claim: #12100 merges cleanly (it is now on
main), and #11921 conflicts only on the adjacent FR22 verification rows. Verified by trial merges; this head merged withmainpasses 238 of 238. - File
.github/actions/ci-admission/count.mjs: clear. - File
.github/scripts/ci-test-routing.test.mjs: clear. - File
.github/scripts/main-validation-workflow.test.mjs: clear. - File
.github/workflows/deploy.yml: clear. - File
docs/specs/AST-030/spec.md: clear. - File
scripts/vitest-node-legs.mjs: clear. - File
scripts/vitest-node-legs.test.mjs: clear.
…nned # Conflicts: # docs/specs/AST-030/spec.md
|
/approve-spec bfe9b3d |
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; it runs once the pull request is marked ready. The merge of main keeps every change of this pull request, the earlier routing-test fix still holds, and the FR22 amendment carries an engineering owner's /approve-spec for this head.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
- Claim: since 11/14, 14 Main unit runs had a Node leg time out, and the last day's Main legs had a p95 of 15.3 min with 43% past 12.5 min against 7.6% on pull requests. Not checkable here (CI run history).
- Claim: the Node record grew from 830 files and 3,475 s (11/09) to 1,581 files and 12,243 s (11/16), with the theme-edit and swizzle-slice columns as tabled. Verified from the record's history on
main. - Claim:
main-commitplans with--mainfrom a sparse checkout that also holdsscripts/liband.github/scripts/lib, as ci.yml'sroomdoes, before it waits for room. Verified (deploy.yml:109-128;roomchecks out the same paths). - Claim: test-node reads the plan's shards with a twelve-leg fallback, and a push still runs only the fast checks. Verified (
deploy.yml:125,:184,:211,:217). - Claim:
plan --mainadds the swizzle-proof slices, which Main's Node legs run. Verified (1,600 files against 1,592;deploy.ymlsets no own-job flag). - Claim: Main gets as many legs as shorten its slowest leg, up to twelve, and pull requests keep the fewest that fit, up to eight. Verified (
vitest-node-legs.mjs:146-198). - Claim: Main never fails for its plan, a pull request still does, and a near-limit notice fires past 12.5 min on a 1.28× slower runner. Verified (
vitest-node-legs.mjs:85-116,:200-215,:301-308). - Claim: admission's peak and the shared estimate go from 14 to 20, a push stays at 4, and the admission test already ties them together. Verified (
deploy.yml:138,count.mjs:122,ci-admission.test.mjs:527-552). - Claim: an outside capacity tool picks up 20 from the same count with no change of its own. Not checkable here (the tool is not in this repository); FR16 requires it to read that count.
- Claim: FR22's body and verification row change as described, as maintenance under DEC-17. Verified (
spec.md:526-528,:552-554,:776); the amendment is owner-approved for this head. - Claim: the replay table, the slowest file at 348 s, and no warning at twelve legs inside the 1,387 s budget. Verified at this head (1,600 files and 13,140 s after the merge of
mainadded one file; every wall time matches). - Claim: the listed new test cases exist and check what they say. Verified (
vitest-node-legs.test.mjs:96-190,main-validation-workflow.test.mjs:32-69). - Claim: every test passes across the seven named files. Verified: 227 of 227 at this head (the description's 223 predates four admission tests that arrived with
main). - Claim: with
main's workflow and planner, the six new or changed cases fail. Verified (exactly those six fail on the base). - Claim:
ci-test-routing.test.mjsreads each workflow's shard matrix throughmatrixForand accepts each planning job's matrix. Verified (ci-test-routing.test.mjs:290-309). - Claim: prettier, actionlint and the knowledge check pass. prettier and the knowledge check verified; actionlint not run here.
- Claim: test-ui does not use the planner; pull requests run four UI legs and Main six. Verified (
deploy.yml:189, ci.yml's test-ui matrix); the single UI timeout is not checkable here. - Claim: about 190 more leg-runs a day, each leg about half today's share, and admission counts 20 jobs instead of 14. Consistent (32 × 6; 1,095 s against 2,190 s); the daily run count is not checkable here.
- Claim: #12100 touches other lines of the same files, and #11921 conflicts with this head only on the FR22 verification rows. Verified by trial merges: #12100 is on
mainand merged cleanly here; #11921 conflicts in the AST-030 verification table, where it already conflicts withmain. - Claim: the land-path line. Process context; nothing to check in code.
- File
.github/actions/ci-admission/count.mjs: clear. - File
.github/scripts/ci-test-routing.test.mjs: clear. - File
.github/scripts/main-validation-workflow.test.mjs: clear. - File
.github/workflows/deploy.yml: clear. - File
docs/specs/AST-030/spec.md: clear. - File
scripts/vitest-node-legs.mjs: clear. - File
scripts/vitest-node-legs.test.mjs: clear.
Who this helps
Everyone who waits on
main's unit run, and the release cuts that need its verdict. Since 11/14, 14mainunit runs had a Node leg time out at the 15-minute job limit, so those runs gave no Node verdict onmain: 11/14 05:29Z; 11/15 15:24Z, 21:11, 21:38, 22:12, 22:38, 23:14Z; 11/16 00:38, 01:02, 01:23, 07:32, 07:54, 16:25 and 18:27Z.The cause is the suite's growth against a fixed six legs. The Node test record (
scripts/vitest-node-durations.json) grew in 7 days:That is 3.5× in a week. Over the last 24 hours, Main's six Node legs had a p95 of 15.3 min, and 43% ran past 12.5 min; pull-request legs, which the duration-balanced planner sizes, had 7.6%.
What changes
.github/workflows/deploy.yml:main-commitplans the Node legs before the run waits for room:node scripts/vitest-node-legs.mjs plan --main --github-output, from a sparse checkout that also holdsscripts/liband.github/scripts/lib, as ci.yml'sroomdoes.test-node's matrix reads the plan's shards. A plan that cannot run (continue-on-error) falls back to the widest matrix, twelve legs.scripts/vitest-node-legs.mjs:plan --mainplans Main's Node legs, with the swizzle proof's slices, which Main runs in its Node legs.MAX_MAIN_NODE_LEGS = 12: the fewest legs whose longest leg is no longer than at twelve. Pull requests keep the fewest legs that fit their budget, up to eight.peakgoes from 14 to 20 (six UI legs, at most twelve Node legs and the other two lanes), andcount.mjs's estimate for a running unit run goes from 14 to 20.ci-admission.test.mjsalready asserts that the estimate equalsdeploy.yml's peak and covers every job's legs.count.mjs, so it picks up 20 with no change of its own.docs/specs/AST-030/spec.mdFR22 (maintenance under DEC-17; Specs confirmed no card):Evidence
Replay on
main's current Main file set (1,599 files with the swizzle slices, 13,126 planned test-seconds; 120 s setup; 2.6 test-seconds per wall second; a runner 1.28× slower):The slowest single file plans 348 s, so the floor is far below; the leg cap was the limit. At twelve legs the plan fits its budget of 1,387 s a leg, so there is no warning today.
Tests:
vitest-node-legs.test.mjs:plan --mainnever prints an error.main-validation-workflow.test.mjs:main-commit's shards, with the twelve-leg fallback.main-commitplans with--mainfrom a checkout that holds the planner, before it waits for room.Results:
ci-test-routing,vitest-node-legs,main-validation-workflow,ci-admission,ci-admission-count,ci-tooling-routingandworkflow-paths.main's workflow and planner, the six new or changed cases fail: the five newvitest-node-legs.test.mjscases and the test-node case inmain-validation-workflow.test.mjs.ci-test-routing.test.mjsnow reads each workflow's shard matrix throughmatrixForand accepts the planned matrix of each workflow's planning job (ci.yml'sroom, the Main workflow'smain-commit).prettier,actionlintandpnpm check:knowledgepass.test-ui does not use the planner. Pull requests run four fixed legs and Main six. Main's test-ui (4) reached the 15-minute limit once, at 18:27Z, and is watched; if it repeats, the UI legs get the same treatment in a pull request of their own.
CI impact: each
mainunit run (about 32 a day) holds up to six more Node legs at once, about 190 more leg-runs a day. Each leg carries about half of today's share, so units finish inside the limit instead of timing out. Admission counts a unit run at 20 jobs instead of 14.Overlap checked: #12100 (josephfarina's max-parallel leg count: other lines of count.mjs and vitest-node-legs.test.mjs, so a merge keeps both), #11921 (our early-warning step in deploy.yml's test-node, other lines of deploy.yml; it also edits FR22, and the two heads conflict on the adjacent FR22 verification rows in docs/specs/AST-030/spec.md, which a merge resolves by keeping both rows)
Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the shipper, through merge-guard.