Repository navigation
ci: warn past one Node test file in twenty without a recorded time, on main's run and in the refresh - #11921
Conversation
…n main's run and in the refresh The record refresh now opens when more than one Node test file in twenty has no recorded time (it waited for one in ten), and says so as an early warning: the refresh job's summary and pull request name the count and the ten heaviest unrecorded files by their time in main's run. Main's full unit run adds the same line to its summary from its first Node leg; that step never fails the run.
|
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.5 | 173.5 | 0 |
| Runner pool, runner-minutes a day | 51,781 | 51,781 | 0 (0%) |
| Average concurrent jobs | 36 | 36 | 0 |
| Time to green (median → this run) | 27.8 min | 18.2 min | −9.6 min |
| Runs a day | 298 | 298 | 0 |
Other workflows: deploy.yml changed: runs on push, workflow_dispatch; standard runners; its minutes are not measured here · node-record-refresh.yml changed: runs on workflow_run, schedule (41 */6 * * *), workflow_dispatch; standard runners; its minutes are not measured here
Not measured (the jobs that use these keep their recent minutes above): .github/scripts/node-record-refresh.mjs, .github/scripts/node-record-refresh.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
|
/approve-spec 872f70a |
There was a problem hiding this comment.
Changes requested: two description fixes are needed; the code and tests look sound.
The nineteen-in-twenty refresh bar, the early warning and the warn step in Main all match the FR22 wording approved for this head, and the tests cover each of them.
Blocking:
- Extend the
CI impact:line with what AST-030 FR19 asks for: the runner class of the changed job (test-node, standardubuntu-latest) and the change in runner-pool usage (runner-minutes a day and average concurrent jobs). - Add a
## Writing rubric resultssection to the description, one line for each of R1–R7 over the FR22 edit, asdocs/contributing/spec-writing.mdasks of any record change.
The two non-blocking inline notes already on heaviestUnrecorded and on the drift lines in prBody still apply.
Claims and files checked
Review mode: same-head; reason: none
- changed rules (0): none
Claims:
- The refresh bar moves to nineteen in twenty: verified (
node-record-refresh.mjs:45,:76; the 19-of-20 and 18-of-20 test). - Past the line, the refresh pull request and job summary give the count and the ten heaviest unrecorded files: verified (
:118-154,:171,:192-195,:301-303; the early-warning tests). warnprints the warning as an annotation and in the step summary from the record alone, and exits 0: verified (:311-323); it leaves out the heaviest list, which needs a run log.- Main's first Node leg runs
warnafter its tests, it cannot fail the run, and a push runs nothing: verified (deploy.yml:193,:230-233). - The refresh workflow changes only its header comment: verified.
- FR22 and its verification row state the new trigger: verified (
spec.md:535-537,:776). - No pull-request check reads the record's coverage, and the drift rule, fixed branch and Node legs are unchanged: verified (those files are untouched and their tests pass).
- The listed test cases exist, and 138 tests pass across the five named files: verified (138 of 138 on this head).
- The new cases fail against main's script and workflow: verified; nine new or changed cases fail there, where the description says eight.
check:knowledgeand Prettier pass: verified; actionlint was not run here.- The CI impact is one sub-second step in Main, no pull-request job change and unchanged time to green: accurate but incomplete under FR19 (blocking above).
- The spec change is FR22 upkeep with no new gate: verified; an engineering owner approved the wording for this head.
- Only #11910 overlaps these files, and only textually: verified (it changes the same script, test and refresh workflow; no other open pull request changes these five files).
Files:
.github/scripts/node-record-refresh.mjs: two non-blocking notes (already inline)..github/scripts/node-record-refresh.test.mjs: clear..github/workflows/deploy.yml: clear..github/workflows/node-record-refresh.yml: clear.docs/specs/AST-030/spec.md: the text is clear; the writing rubric results are missing from the description (blocking).
…ifted files apart from its list The heaviest unrecorded files come from one parse of the Node legs' lines instead of one argument per line, which a log of about 150,000 lines would overflow. In the refresh pull request, drifted files follow their own heading, after the heaviest-unrecorded list.
|
/approve-spec 978c38a |
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 the required checks still need to pass before merge.
The nineteen-in-twenty refresh bar, the early warning and the warn step in Main match the FR22 wording approved for this head, and the follow-up fixes the long-log overflow and keeps drifted files under their own heading. The description now carries the full CI impact and the writing rubric results.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
Claims:
- The refresh bar moves to nineteen in twenty: verified (
node-record-refresh.mjs:45,:76; the 19-of-20 and 18-of-20 test). - Past the line, the refresh pull request and job summary give the count and the ten heaviest unrecorded files: verified (
:118-155,:172,:195,:305-307; the early-warning tests). warnprints the warning as an annotation and in the step summary from the record alone, and always exits 0: verified (:315-327; thewarntests); it leaves out the heaviest list, which needs a run log.- Main's first Node leg runs
warnafter its tests, it cannot fail the run, and a push runs nothing: verified (deploy.yml:193,:227-233). - The refresh workflow changes only its header comment: verified.
- FR22 and its verification row state the new trigger: verified (
spec.md:535-537,:776). - No pull-request check reads the record's coverage, and the drift rule, fixed branch and Node legs are unchanged: verified (those files are untouched, and the test keeping the coverage bar off pull-request tests passes).
- Each listed test case exists: verified, all in
node-record-refresh.test.mjs. - The new cases fail against main's script and workflow: verified; nine fail there, the eight listed plus the changed refresh-body case.
- After the follow-up, the refresh, drift and workflow-path tests pass 80 of 80, and the two new cases fail on the previous revision, one with a call-stack overflow: verified (140 of 140 across the five CI test files here).
- The knowledge check and Prettier pass: verified; actionlint was not run here.
- The CI impact is one step of about a second in the first Node leg on a standard
ubuntu-latestrunner, about 0.4 runner-minutes a day with no added concurrent jobs, no pull-request job change and unchanged time to green: verified (deploy.yml:201;warntakes well under a second). - The spec change is FR22 upkeep with no new gate: verified; an engineering owner approved the wording for this head.
- The writing rubric results for the FR22 edit: verified against the changed sentence and verification row.
- Only #11910 overlaps these files, and only textually: verified (it changes the script, its test and the refresh workflow; no other open pull request touches these five files).
- The 141-of-1,381 figure for 11/15: background, not a code claim; the record at this head times 1,369 of 1,384 Node test files.
Files:
.github/scripts/node-record-refresh.mjs: clear..github/scripts/node-record-refresh.test.mjs: clear..github/workflows/deploy.yml: clear..github/workflows/node-record-refresh.yml: clear.docs/specs/AST-030/spec.md: clear; the FR22 wording is approved for this head.
…es through main's nodeLegLogs, appended in place
|
/approve-spec 74b2973 |
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.
The one-in-twenty refresh line, its early warning and Main's non-failing warn step match the FR22 wording an engineering owner approved for this head, and nodeLegLogs keeps its output while dropping the per-line copy. Both earlier inline notes are fixed. Optional: the Evidence tallies (138 tests, 80 of 80) describe heads before the merge of main; at this head the refresh, drift and workflow-paths tests number 87, and all pass.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- The refresh bar becomes nineteen in twenty, so more than 5% unrecorded opens or updates the refresh pull request: verified (
node-record-refresh.mjs:47,:75,:181; test "is fresh at exactly nineteen in twenty"). - Past the line, the refresh pull request and its job summary carry a warning with the count and the ten heaviest unrecorded files: verified (
:111-143,:200-207,:329-331; tests atnode-record-refresh.test.mjs:343,:360). warnprints a workflow warning and a summary line from the record alone and always exits 0: verified (:339-351; test at:425runs it as a subprocess).- Main's first Node leg runs
warnafter its tests and cannot fail the run, and a push runs nothing: verified (deploy.yml:278,:349-355; test at:441). - The refresh workflow's header states the new line and its steps are unchanged: verified (
node-record-refresh.yml:7-9). - FR22's trigger sentence and verification row change as described: verified (
docs/specs/AST-030/spec.md:545-547,:793). nodeLegLogsappends in place because the copy was quadratic: verified; a 160,000-line log takes about 0.2 s at this head and about 80 s with the previous parse.- The warning reads the Node legs through
nodeLegLogs, as the refresh check already does: verified (node-record-refresh.mjs:89,:115,:154,:301). - No pull-request check reads the record's coverage, and the drift rule, refresh branch and legs are unchanged: verified (no
ci.ymlchange; drift rule and branch constants untouched). - The listed test cases exist and pass: verified (36 refresh tests; 200 across the eight related test files).
- Test tallies and red-first results for earlier heads: they describe heads before the merge of
main; the new cases import exports the base does not have, so they cannot pass there. - Knowledge check and Prettier pass: verified; actionlint: not checked here, and Lint has not run on this draft head.
- CI impact of about 1 s per run on a standard runner, about 0.4 runner-minutes a day, no added concurrent jobs and no pull-request job change: verified (
warnran in 0.22 s; arithmetic holds at about 25 runs a day). - Merged with
mainafter the two refresh fixes, neither of which moves the line or adds a warning: verified (both are in the base history; the base bar is 0.9 with no warning). - #11910 is the one overlapping open pull request: #11910 confirmed open and touching the same script, test and workflow; other open pull requests not enumerated.
- Writing rubric results for the FR22 edit: verified (present; the edited text is present tense and cites no pull request).
- The motivating unrecorded count on an earlier date: not re-checked; the arithmetic (10.2%) is consistent.
Files:
.github/scripts/node-record-refresh.mjs: clear.github/scripts/node-record-refresh.test.mjs: clear.github/workflows/deploy.yml: clear.github/workflows/node-record-refresh.yml: cleardocs/specs/AST-030/spec.md: clear (owner-approved FR22 edit)scripts/vitest-shard-sequencer.mjs: clear
|
/approve-spec 73225eb |
There was a problem hiding this comment.
Changes requested: one description fix is needed; the code, the tests and the FR22 amendment look sound.
- Miss: The description's overlap check says no open pull request besides #11910 changes these files, but #11910 has merged into this branch while open #12129 (
deploy.yml, AST-030) and #12760 (node-record-refresh.mjs) edit them, so please update that paragraph with how each overlap resolves.
The nineteen-in-twenty refresh line, its early warning and Main's non-failing warn step match the FR22 wording an engineering owner approved for this head, and both earlier inline notes stay fixed. Optional: the Evidence tallies (138 tests, 80 of 80) describe heads before the merges of main; at this head those three test files run 92 tests, all passing.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- The refresh bar moves to nineteen in twenty, so more than 5% unrecorded opens or updates the refresh pull request: verified (
node-record-refresh.mjs:52,:89,:227; test atnode-record-refresh.test.mjs:255). - Past the line, the refresh pull request and its job summary carry a warning with the count and up to ten heaviest unrecorded files by their time in main's run: verified (
:125-157,:246-249,:375-377; tests at:353,:370). warnprints a workflow warning and a summary line from the record alone and exits 0 whatever the record holds: verified (:385-397; tests at:435,:444; run on the repository record and on a thinned one).- Main's first Node leg runs
warnafter its tests and cannot fail the run, and a push runs nothing: verified (deploy.yml:278,:352-355; test at:451). - The refresh workflow's header states the new line and its steps are unchanged: verified (
node-record-refresh.yml:7-9, a comment-only edit). - FR22's trigger sentence and verification row change as described: verified (
docs/specs/AST-030/spec.md:545-547,:793). nodeLegLogsappends in place because the copy was quadratic: verified; same output, and a 160,000-line log parses in about 0.1 s against about 12 s with the copy-per-line version.- The warning reads the Node legs through
nodeLegLogs, as the refresh check does: verified (node-record-refresh.mjs:129,:103,:174,:200). - No pull-request check reads the record's coverage, and the drift rule, refresh branch and legs are unchanged: verified (no
ci.ymlchange; those constants untouched). - The listed test cases exist and pass: verified (41 refresh tests; 442 across the 14 test files that read the changed files).
- Test tallies and red-first results for earlier heads: they describe earlier heads; the new cases import exports the base lacks, so they cannot pass there.
- Knowledge check and Prettier pass: verified; actionlint: not run here, and Lint skipped on this draft head.
- CI impact of about 1 s per run on a standard runner, about 0.4 runner-minutes a day, no added concurrent jobs and no pull-request job change: verified (the arithmetic holds at about 25 runs a day;
warntakes well under a second). - On the date cited, 141 of 1,381 Node test files had no recorded time: verified (the merged pull request #11896 states the same count).
- Merged with
mainafter the two refresh fixes, neither of which moves the line or adds a warning: verified (both are in the base history; the base bar is 0.9 with no warning). - No other open pull request changes the script, its test, its workflow,
deploy.ymlor AST-030 except #11910: false (#11910 has merged; open #12129 and #12760 change them). - Writing rubric results for the FR22 edit: verified (present; the edited text is present tense and cites no pull request).
- The change adds no gate and no contributor obligation: verified.
Files:
.github/scripts/node-record-refresh.mjs: clear.github/scripts/node-record-refresh.test.mjs: clear.github/workflows/deploy.yml: clear.github/workflows/node-record-refresh.yml: cleardocs/specs/AST-030/spec.md: clear (owner-approved FR22 edit)scripts/vitest-shard-sequencer.mjs: clear- Pull request description: one false claim (the overlap check)
There was a problem hiding this comment.
Approved: CI ran on this head after it was marked ready, and every required check passed.
The nineteen-in-twenty refresh line, its early warning and Main's non-failing warn step match the FR22 wording an engineering owner approved for this head, and the description's claims hold. Two optional updates: the script header's @position line still names only the refresh workflow as its caller, though Main's workflow now runs warn (missed in the earlier review); and #12760 has since merged into main, so the overlap line can say so.
Claims and files checked
Review mode: same-head; reason: none
Claims:
- The refresh bar moves to nineteen in twenty, so more than 5% unrecorded opens or updates the refresh pull request: verified (
node-record-refresh.mjs:52,:89,:227; tests atnode-record-refresh.test.mjs:251,:255; 84 of 1,693 unrecorded stays quiet, 85 warns). - Past the line, the refresh pull request and its job summary carry a warning with the count and up to ten heaviest unrecorded files by their time in main's run: verified (
:125-157,:225,:246-253,:375-377; tests at:353,:370). warnprints a workflow warning and a summary line from the record alone and always exits 0: verified (:385-397; tests at:435,:444; run on the repository record and on thinned copies).- Main's first Node leg runs
warnafter its tests, it cannot fail the run, and a push runs nothing: verified (deploy.yml:278,:336-347,:349-355; test at:451). - The refresh workflow's header states the new line and its steps are unchanged: verified (
node-record-refresh.yml:7-9, a comment-only edit). - FR22's trigger sentence and verification row change as quoted: verified (
docs/specs/AST-030/spec.md:545-547,:793). nodeLegLogsappends in place because the copy was quadratic, and the long-log case drops from over a minute to under a second: verified (76 s with the copy-per-line version, 0.07 s now, on 160,000 lines, with the same output).- The warning reads the Node legs through
nodeLegLogs, as the refresh check does: verified (node-record-refresh.mjs:129,:103,:347). - No pull-request check reads the record's coverage, and the drift rule, branch, pull request and legs are unchanged: verified (no
ci.ymlchange; those constants untouched; test at:743). - The listed test cases exist and pass: verified (
node-record-refresh.test.mjs:251-451,:673). - The three named test files pass at this head with 89 tests: verified (41, 23 and 25).
- The knowledge check, actionlint and Prettier pass: verified (knowledge check and Prettier rerun on this head; the Lint workflow, which runs actionlint on changed workflows, passed at this head).
- CI impact of about 1 s per run on the leg's standard runner, about 0.4 runner-minutes a day, no added concurrent jobs, no pull-request job change and unchanged time to green: verified (
deploy.yml:287; the arithmetic holds at about 25 runs a day). - An unrecorded file is booked at the ninetieth percentile, and since #11900 nothing fails on the record: verified (AST-030 FR22; #11900).
- On 11/15, 141 of 1,381 Node test files had no recorded time: verified (#11896 states the same count).
- Merged with main after #12657, #12687 and #11910, none of which moves the line or adds a warning, with both sides of the #11910 overlap kept: verified (all three are in this branch's history; the base bar is 0.9 with no warning;
warnsits besideregenerateand the warning besidenormalizedTimes). - #12760 adds two options with unchanged defaults and merges cleanly with this head: verified; it has since merged, and this head merges cleanly with
main's tip, where the refresh and interaction-times tests pass. - #12129 already conflicts with main in the same four files it conflicts with at this head: verified (the same four files against
main's tip and this head). - Writing rubric results for the FR22 edit: verified (present tense, no pull request or commit references in the record).
- The change adds no gate and no contributor obligation: verified.
Files:
.github/scripts/node-record-refresh.mjs: one non-blocking note (header@position).github/scripts/node-record-refresh.test.mjs: clear.github/workflows/deploy.yml: clear.github/workflows/node-record-refresh.yml: cleardocs/specs/AST-030/spec.md: clear (owner-approved FR22 edit)scripts/vitest-shard-sequencer.mjs: clear- Pull request description: clear (one optional update for #12760)
Who this helps
Authors waiting on CI, and whoever watches CI health. The Node legs balance by
scripts/vitest-node-durations.json; a test file with no recorded time is booked at the record's ninetieth percentile, so many small unrecorded files skew the legs before anything notices. Since #11900 nothing fails on the record, so the refresh is the only signal, and it opens only once one file in ten has no time. On 11/15mainreached 141 of 1,381 unrecorded (about 10%) before the old coverage test turned it red. This adds an early warning at one file in twenty, where a refresh still has room to correct the record before leg balance suffers.What changes
.github/scripts/node-record-refresh.mjs:MIN_RECORDED_SHARE0.95): more than 5% of Node test files without a recorded time opens or updates the refresh pull request;HEAVIEST_SHOWN) by their time inmain's run;warncommand prints the same warning (a workflow::warningplus the step summary) from the record alone. It always exits 0..github/workflows/deploy.yml(Main): the full unit run's first Node leg runswarnafter its tests (if: always() && matrix.shard == 1,continue-on-error: true), so main's run says so in its summary. It can never fail the run, and a push (which runs no Node leg) runs nothing..github/workflows/node-record-refresh.yml: its header comment states the new line. The steps are unchanged.docs/specs/AST-030/spec.mdFR22: the refresh's trigger reads "more than one in twenty … have no recorded time (an early warning, which names the heaviest of them; the full unit run's summary also says so, and nothing fails on it)" instead of "fewer than nine in ten … have a recorded time"; its verification row names the same cases.scripts/vitest-shard-sequencer.mjsnodeLegLogs: appends each line to its leg in place instead of copying the leg's lines for every line. The copy was quadratic on a whole run's log: this pull request's long-log test took 89 s through it, 0.3 s now. The early warning reads the Node legs through it, asmain's refresh check already does.Evidence
node-record-refresh.test.mjs, new or changed cases:warnexits 0 and writes the warning to the step summary past the line, and nothing below it;warnonce, in its first Node leg, after its tests, and it cannot fail the run;mainmerges: thenode-record-refresh,node-time-driftandvitest-shard-sequencertests pass (89 locally).pnpm check:knowledgepasses;actionlintandprettierpass.CI impact: one step in
main's full unit run, in thetest-nodejob's first leg (runner class: standardubuntu-latest, the leg's existing runner). It reads the record and the tracked file list, about 1 s. At about 25 full unit runs ofmaina day, that is about 0.4 runner-minutes a day and no added concurrent jobs (it runs inside a leg that already holds its runner). The refresh job is unchanged in runner class and runs. No pull-request job changes. Time to green: unchanged.Specs
spec:AST-030FR22 text changes (see above). The refresh and the warning are FR22 maintenance; no new gate, and no contributor obligation.Writing rubric results
For the FR22 edit in
docs/specs/AST-030/spec.md(its trigger sentence and its verification row):Overlap check
Merged with
mainafter #12657 (the refresh reads each leg's whole log and stops on a leg that misses files), #12687 (colour codes kept; a log with no Node legs stops) and our own #11910 (the regenerate step; merged at 7f2e0e8). None of them moves the coverage line or adds a warning, so this is not redundant with them. The merge with #11910 kept both sides where both added lines:warnbesideregenerate, and the early warning besidenormalizedTimes.Open pull requests that touch the same files:
node-record-refresh.mjs(openOrRefresh'sbranchandcoverage'sminShare). It merges cleanly with this head.deploy.ymland AST-030 among others) already conflicts withmainin the same four files it conflicts with at this head (ci-node-leg-bounds.test.mjs,ci.yml,deploy.yml, AST-030). It resolves those when it mergesmain; this pull request doesn't touch it.Overlap checked: #11910 (merged in), #12760 (clean), #12129 (conflicts with main already)
Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the shipper, through merge-guard.