Repository navigation
ci(a11y): a first run takes a fourth audit leg when that finishes every owed audit, and deferrals name audits-at-head - #13722
Conversation
…ry owed audit A first run that could not fit every owed dependent audit into three legs deferred the rest to a full re-run of all jobs at the same head. On #11916 that re-ran 63 jobs (about 383 runner-minutes) twice for 3 audits of 261 s. The planner now takes a fourth leg when every owed audit then fits the leg budget, and still defers when it does not. Its deferral notice and summary now point at the audits-at-head dispatch for that head, with the exact command, instead of a re-run of all jobs: it runs only the owed audits there, and merge-guard accepts its record. AST-030 FR12 says so.
|
/approve-spec 9d3df7c |
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Before | After | Change | |
|---|---|---|---|
| Job-minutes per PR update | 228.8 | 228.5 | −0.3 |
| Runner pool, runner-minutes a day | 54,880 | 54,814 | −66 (−0.1%) |
| Average concurrent jobs | 38.1 | 38.1 | 0 |
| Time to green (median → this run) | 23.3 min | 22.4 min | −0.8 min |
| Runs a day | 240 | 240 | 0 |
Changed jobs: a11y-dependent-audits-plan changed: standard
Not measured (the jobs that use these keep their recent minutes above): .github/scripts/a11y-dependent-audits.mjs, .github/scripts/a11y-dependent-audits.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
Specs: FR12 and its decision agree.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
/approve-spec 3810c4e |
There was a problem hiding this comment.
Changes requested: AST-030 FR12 still caps a first run at three legs in two places that the new fourth leg contradicts.
- FR12's shared-primitive clause ("at most three legs, each at most 10 minutes",
docs/specs/AST-030/spec.mdline 256) and its planning verification row (a Button change that "plans more than three legs" fails, line 783) still cap a first run at three legs, while the amended DEC-25 and the planner (.github/scripts/a11y-dependent-audits.mjslines 225-235) take a fourth leg for any owed set, primitive dependents included; extend both to the four-leg case.
The spec change is otherwise approved at this head, so after the fix an engineering owner (the author is one) re-approves the new head with /approve-spec <full head SHA>. Two non-blocking tidy-ups: planDependentAudits's JSDoc still describes only a three-leg first run, and one rewrapped comment line in .github/workflows/ci.yml (line 7660) runs to 104 characters. CI's full run on this head was still in progress at the time of review.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: a first run that cannot fit every owed audit into three legs but can into four takes the fourth leg and records complete. Verified: planner lines 225-235; new 32-audit test.
- Claim: when four legs do not fit, the run still fits what it can into three legs and defers the rest. Verified: planner lines 236-237; new 58-audit test.
- Claim: the warning and the job summary name the audits-at-head dispatch with the exact command and no longer say "Re-run all jobs". Verified: planner lines 280-286, 394 and 422; new notice test.
- Claim: the plan step passes the pull request number. Verified:
ci.ymlline 7621; workflow contract test. - Claim: the dispatch runs only the owed audits, every one of them, at that head. Verified: the dispatch runs
main's planner over the pull request's changed files as a later run (audits-at-head.ymlline 193). - Claim: merge-guard accepts a complete dispatch record for the exact head. Consistent with the current FR12 text and the dispatch workflow's header; merge-guard itself is outside this repository and unchanged here.
- Claim: FR12 now allows the fourth leg and names the dispatch, its verification row names the new cases, and the
ci.ymlcomments match. Partly false: FR12's shared-primitive clause and its planning row still say three legs (the blocking finding). - Claim: the cited dispatch run took 14 jobs, about 21 runner-minutes and 15 minutes. Verified: 14 jobs, 20.6 runner-minutes, 15.3 minutes.
- Claim: on the motivating pull request, first runs at two heads were fully green (63 jobs, 381-387 runner-minutes, 22-24 minutes), and second attempts re-ran everything. Verified for both first runs (381 and 387 runner-minutes, 21.5 and 23.3 minutes) and the first head's re-run (383 runner-minutes, 24.4 minutes); the second head's re-run was still running. The 29-of-32 and 261-second detail was not checked.
- Claim: week-long tallies (merged pull requests, deferring first runs, full re-runs). Not checked.
- Claim: a fourth leg costs about 5 runner-minutes. Consistent with the recorded leg times; not measured at this head.
- Claim: the new tests are red-first, and the existing five-audit case still defers. Verified by reading: the base lacks the new exports, and five seven-minute audits cannot fit four ten-minute legs.
- Claim: the CI, planner and dispatch test suites, the knowledge check and the quick preflight pass. Not checked: CI's full run on this head was still in progress, and the toolchain could not be installed.
- Claim: no required check name changes and no changeset is needed. Verified: only CI paths change, and the legs job's name and the test join are unchanged.
- File
.github/scripts/a11y-dependent-audits.mjs: clear, with a non-blocking JSDoc note. - File
.github/scripts/a11y-dependent-audits.test.mjs: clear. - File
.github/workflows/ci.yml: clear, with a non-blocking line-length note. - File
docs/specs/AST-030/spec.md: blocking (FR12's leftover three-leg caps).
…the fourth first-run leg CodeBunny review: two FR12 places still capped a first run at three legs. The planner's JSDoc names the fourth leg, and a rewrapped ci.yml comment fits the line length.
|
/approve-spec a6bb476 |
There was a problem hiding this comment.
Changes requested: one measurement in the description is wrong; the planner change, its tests and the AST-030 wording otherwise check out, and the spec change is approved at this head.
- The description says each #11916 re-run took "about 383 runner-minutes, about 24 minutes", but the second head's re-run (CI run 45371630919, attempt 2) took about 375 runner-minutes over 49 minutes; correct it, for example to "about 375-383 runner-minutes, 24 and 49 minutes".
This needs only a description edit, no new commit. A non-blocking wording suggestion for the deferral warning is inline. CI has not run on this head yet because the pull request is a draft.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: a first run that cannot fit every owed audit into three legs but can into four takes the fourth leg and records complete. Verified: planner lines 226-236; new 32-audit test.
- Claim: when four legs do not fit, the run still fits what it can into three legs and defers the rest. Verified: planner lines 237-238; new 58-audit test.
- Claim: the warning and the job summary name the audits-at-head dispatch with the exact command and no longer say "Re-run all jobs". Verified: planner lines 281-287, 395 and 423; new notice test.
- Claim: the plan step passes the pull request number. Verified:
ci.ymlline 7621; workflow contract test. - Claim: the dispatch runs only the owed audits, all of them, at that head. Verified: it runs
main's planner over the pull request's changed files as a later run (audits-at-head.ymlline 193). - Claim: merge-guard accepts a complete dispatch record that names the pull request, head and source. Consistent: the dispatch writes
pr,head,sourceandcomplete, and current FR12 says merge-guard accepts it; merge-guard itself is not in this repository. - Claim: FR12 allows the fourth leg and names the dispatch, its verification rows name the new cases, and the
ci.ymlcomments match. Verified:spec.mdlines 256, 783-784 and 1429-1430;ci.ymllines 7539-7540, 7610-7614 and 7659-7663. - Claim: the motivating first runs were fully green, 63 jobs, 381-387 runner-minutes, 22-24 minutes. Verified: 63 successful jobs each, 381 and 387 runner-minutes, about 21.5 and 23 minutes.
- Claim: each re-run took about 383 runner-minutes and about 24 minutes. False for the second head: 375 runner-minutes over 49 minutes (the blocking finding).
- Claim: the first runs ran 29 of 32 owed audits and deferred 3 (261 s), and the 32-owed plan fits four legs. Partly verified: both re-runs, planned with up to six legs allowed, chose four; the 29, 261 s and 9.8-minute figures were not checked.
- Claim: the cited dispatch run took 14 jobs, about 21 runner-minutes and 15 minutes. Verified.
- Claim: 704 pull requests merged over the measured week. Verified for the seven days ending at 11:00 UTC today.
- Claim: the other week tallies (re-runs needed, deferring first runs, the two 58-owed plans). Not checked.
- Claim: a fourth leg costs about 5 runner-minutes. Consistent with the measured legs (4.3-6.8 minutes).
- Claim: the new tests are red-first, and the existing five-audit case still defers. Verified by reading: the base lacks the new exports and
PR_NUMBER, and five seven-minute audits cannot fit four ten-minute legs. - Claim: the CI, planner and dispatch suites, the knowledge check and the quick preflight pass. Not checked: CI skipped the draft head and the toolchain could not be installed.
- Claim: no required check name changes and no changeset is needed. Verified: the legs job and
testjoin names are unchanged and only CI paths change. - File
.github/scripts/a11y-dependent-audits.mjs: clear, with a non-blocking wording note. - File
.github/scripts/a11y-dependent-audits.test.mjs: clear. - File
.github/workflows/ci.yml: clear. - File
docs/specs/AST-030/spec.md: clear.
CodeBunny review: the count names the deferred files, while the four-leg test is on every owed audit, so 'N files do not fit four legs' could read as false.
|
/approve-spec d27e4fe |
There was a problem hiding this comment.
Changes requested: one row of the description's measured table is wrong; the planner change, its tests and the AST-030 wording check out, and the spec change is approved at this head.
- Miss: the week table says "#13108's and #10424's 58-owed plans (11-20, 30 deferred) still defer, with the dispatch named", but on 11-20 #13108's runs owed no audit and #10424's owed one; the two 58-owed, 30-deferred first runs were #13070 and #13127, release interaction checks whose file list GitHub truncated at 3,000, so they take the undecided-scope path (
planEverythingin.github/scripts/a11y-dependent-audits.mjs) and keep the "split the PR" error instead of naming the dispatch; please correct that row, for example: "#13070's and #13127's 58-owed plans (11-20, 30 deferred) are release interaction checks whose file list GitHub truncated; their scope is undecided, so they keep the split message and this change does not affect them."
The earlier points are fixed: the second #11916 re-run now reads 375 runner-minutes over 49 minutes, and the deferral notice now says how many audits did not run and that four legs cannot hold every owed audit.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Claim: #11916's two first runs were green, 63 jobs, about 381 to 387 runner-minutes and 22 to 24 minutes: verified (381.0 and 386.7 runner-minutes, 21.5 and 23.3 minutes).
- Claim: each first run ran 29 of 32 owed audits and deferred 3, 261 s of recorded time: verified (plan job logs; the three audits' recorded times sum to 261.0 s).
- Claim: each re-run repeated all jobs, about 383 runner-minutes over 24 minutes and 375 over 49 minutes: verified.
- Claim: a first run takes a fourth leg when four legs within the budget run every owed audit, and otherwise plans as before: verified (
a11y-dependent-audits.mjs:226-238; the 32-audit case plans three legs with 8 deferred on the base and four complete legs on the head). - Claim: the warning and job summary give the audits-at-head command for this pull request and head and no longer say "Re-run all jobs"; the plan step passes the pull request number: verified (
:281-287,:395,:423,ci.yml:7621, tests at:315-330and:411-415). - Claim: the dispatch runs every owed audit, and only those, at the head, from main: verified (
audits-at-head.yml:56,:193). - Claim: FR12, its verification rows and the
ci.ymlcomments describe the fourth leg and the dispatch: verified (spec.md:256,:783-784,:1429-1430). - Claim: merge-guard accepts a complete dispatch record for the exact pull request and head: consistent with the dispatch record's
pr,head,sourceandcompletefields (audits-at-head.yml:508-517) and with FR12; merge-guard's own code is not in this repository. - Claim: the measured dispatch took 14 jobs, about 21 runner-minutes and 15 minutes: verified (20.6 runner-minutes, 15.2 minutes).
- Claim: 704 pull requests merged in the week: verified.
- Claim: no merged pull request needed a re-run for deferred audits: not verified.
- Claim: 5 first runs deferred audits, on 3 pull requests, and 2 re-runs happened, both on #11916: verified (#11916 three times, #13070, #13127).
- Claim: #11916's 32-owed plan fits four legs, longest 9.8 minutes: verified (both re-runs planned four legs, longest 9.8 minutes).
- Claim: #13108's and #10424's 58-owed plans still defer with the dispatch named: false (see above).
- Claim: a fourth leg costs about 5 runner-minutes, as today's legs ran 4 to 7 minutes: verified (legs ran 4.3 to 6.8 minutes).
- Claim: the new tests cover the 32-audit and 58-audit plans, the notice text and the plan step's inputs, and the five-audit case still defers: verified by reading the tests (
:240-264,:266-283,:315-330,:411-415) and by running the planner on the same inputs. - Claim: 1,169 tests,
pnpm check:knowledgeand quick preflight pass: not verified (CI has not run on this draft head). - Claim: no required check name changes and no Changeset is needed: verified (job names unchanged; repository tooling only).
- File
.github/scripts/a11y-dependent-audits.mjs: clear. - File
.github/scripts/a11y-dependent-audits.test.mjs: clear. - File
.github/workflows/ci.yml: clear. - File
docs/specs/AST-030/spec.md: clear (approved at this head).
There was a problem hiding this comment.
Approved pending CI: the heavy CI jobs have not run on this head yet.
The earlier point is fixed: the week table now describes #13070 and #13127 as release interaction checks whose truncated file list keeps the split message. The planner change, its tests and the AST-030 FR12 and DEC-25 wording check out, and the spec change is approved at this head.
Claims and files checked
Review mode: same-head; reason: none
- changed rules (0): none
- Claim: Two first runs on #11916 were green, 63 jobs, about 381 to 387 runner-minutes and 22 to 24 minutes: verified (381.0 and 386.7 runner-minutes; 21.5 and 23.3 minutes).
- Claim: Each ran 29 of 32 owed audits and deferred 3, 261 s of recorded time: verified (the three deferred audits' recorded times sum to 261.0 s).
- Claim: Each re-run repeated every job, about 383 runner-minutes over 24 minutes and 375 over 49 minutes: verified (the second re-run took 49.2 minutes).
- Claim: The old notice told the author to re-run all jobs: verified (the removed notice line in
a11y-dependent-audits.mjs). - Claim: A first run takes a fourth leg when four legs within the budget run every owed audit, and its record is complete; otherwise nothing changes: verified (
a11y-dependent-audits.mjs:226-238; the planner on 32 and 58 seventy-second audits). - Claim: The warning and job summary give the dispatch command for this pull request and head and no longer say re-run all jobs; the plan step passes the pull request number: verified (
:281-287,:395,:423,ci.yml:7621). - Claim: The dispatch runs every owed audit, and only those, at the head: verified (
audits-at-head.yml:56,:193). - Claim: FR12, its verification rows and the
ci.ymlcomments describe the fourth leg and the dispatch: verified (spec.md:256,:783-784,:1429-1430;ci.yml:7539-7540,:7610-7614,:7659-7663). - Claim: merge-guard accepts a complete dispatch record titled for the exact pull request and head after checking its pull request, head and source: consistent with the dispatch's run name and record fields (
audits-at-head.yml:3-7,:13,:508-517) and FR12; merge-guard's own code is not in this repository. - Claim: The measured dispatch took 14 jobs, about 21 runner-minutes and 15 minutes: verified (20.6 runner-minutes, 15.2 minutes).
- Claim: 704 pull requests merged in the week: verified for the rolling week that ends on the morning of 11-24.
- Claim: No merged pull request needed a re-run for deferred audits, since every later-attempt record at a merged head owed at most 8 audits and its first-run replay defers nothing: verified (208 such records; at most 8 owed; no replay defers).
- Claim: 5 first runs deferred audits, on 3 pull requests, and 2 re-runs happened, both on #11916: verified.
- Claim: #11916's 32 owed audits fit four legs, longest 9.8 minutes: verified (the planner on that owed set: four legs, longest 9.76 minutes; three legs need 11.39).
- Claim: #13070's and #13127's 58-owed plans are release interaction checks whose file list GitHub truncated, so they keep the split message: verified (3,029 and 3,489 changed files;
planEverythingand the split message are unchanged,:247-272,:299-306). - Claim: A fourth leg costs about 5 runner-minutes, as legs ran 4 to 7 minutes: verified (4.3 to 6.8 minutes).
- Claim: The new tests cover the 32- and 58-audit plans, the notice text and the plan step's inputs, and the five-audit case still defers: verified (
a11y-dependent-audits.test.mjs:240-264,:266-283,:315-330,:411-415; the base defers 8 of the 32). - Claim: 1,169 tests, the knowledge check and quick preflight pass: not verified (CI's heavy jobs have not run on this head).
- Claim: No required check name changes, and no Changeset is needed: verified (job names unchanged; repository tooling only).
- File
.github/scripts/a11y-dependent-audits.mjs: clear. - File
.github/scripts/a11y-dependent-audits.test.mjs: clear. - File
.github/workflows/ci.yml: clear. - File
docs/specs/AST-030/spec.md: clear (approved at this head).
Who this helps
Authors and lanes whose change owes a little more accessibility-audit time than a first CI run fits. Today such a run runs what fits into three legs of ten minutes and defers the rest. Its notice then says "Re-run all jobs at this head", which repeats the whole run (63 jobs) for a few audits.
On #11916 that happened twice today, at heads 9b9f6ae and 7626829:
What changes
a11y-dependent-audits.mjs):COMPLETING_MAX_LEGS = 4), and its record is complete.audits-at-headdispatch for this head, with the exact command:gh workflow run audits-at-head.yml -R <repo> -f pr=<n> -f head=<sha>. They no longer say "Re-run all jobs". The plan step passesPR_NUMBERfor it.ci.ymlmatch.merge-guard accepts an audits-at-head record at the head
merge-guard's dependent-audit check first reads the CI run's record. If that record is not complete, it reads the newest successful
audits-at-headdispatch titled for this pull request and exact head. It checks the dispatch record'spr,headandsource, and accepts it whencompleteis true. Measured on run 44793252028 (pull request #13094): 14 jobs, about 21 runner-minutes, 15 minutes wall.Measured over the last week (11-17 → 11-24)
A fourth leg costs about 5 runner-minutes (today's legs ran 4–7 minutes), against about 375–383 for a re-run.
Tests
Red-first, in
a11y-dependent-audits.test.mjs:PR_NUMBERand the head.The existing five-audit case still defers: four legs cannot hold five seven-minute audits. Every
.github/scripts/ci-*.test.mjssuite, the planner suite and the audits-at-head suite pass (1,169 tests).pnpm check:knowledgepasses. Quick preflight passes, typecheck included, on a Linux build box.CI impact
CI impact: a first run that would have deferred audits a fourth leg can finish runs one more dependent-audit leg (about 5 runner-minutes), and skips a later re-run of all jobs (about 375–383 runner-minutes). Runs that owe no audit, or whose audits fit three legs, are unchanged. No required-check name changes. Repository tooling only: no Changeset.
Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the drain's serial merge loop, on green, CodeBunny approval and Specs' exact-head
/approve-spec.