Repository navigation
ci: the leg-count test fails only when the planner cannot fit the matrix, and the WebKit matrix has six legs - #10631
Conversation
…rix, and the WebKit matrix has six 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 | 117.4 | 122.8 | +5.4 |
| Runner pool, runner-minutes a day | 60,140 | 62,912 | +2,772 (+4.6%) |
| Average concurrent jobs | 41.8 | 43.7 | +1.9 |
| Time to green (median → this run) | 16.8 min | 16.2 min | −0.6 min |
| Runs a day | 512 | 512 | 0 |
Changed jobs: pr-interaction-webkit changed: standard
Not measured (the jobs that use these keep their recent minutes above): .github/scripts/playwright-legs.mjs, .github/scripts/playwright-legs.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
There was a problem hiding this comment.
Approved. The leg-count contract test now fails only when the planner cannot fit the proofs into the matrix, and the six-leg WebKit matrix keeps the release-wide plan in reach. An input 60 s over main's WebKit times fails the old guard and passes the new one, and CI on this head is green.
Non-blocking:
legsFitMessagerepeatslegCount's leg formula (.github/scripts/playwright-legs.mjs:82and:228). A small shared helper would keep the two from drifting.- A WebKit leg with no share took 30–38 s on this run, because the container starts before the steps skip. The description's "a few seconds of runner start" understates that.
[Automated review]
Maintainer impact
The leg-count contract test (
playwright-legs.test.mjs, "fits every leg in ten minutes at today's recorded times, within the matrix") fails any pull request whose release-wide WebKit plan passes 2,040 s. #8133, with real WebKit times, reaches 2,054 s and fails.mainsits at about 1,996 s, so a pull request adding about 45 s of WebKit proofs trips it.The planner itself copes: past 2,040 s it plans a fifth leg, and the matrix had five. The test asked for more than the planner needs. It required the leg count to stay below the matrix (
needed < legs), so it failed with one matrix leg still unused.Intended invariant
The contract test fails only when the planner cannot fit the proofs in the matrix. That means more legs than the matrix holds, or a leg over ten minutes with setup (plus one spec's slack, since a spec cannot be split). When it fails, it names the heaviest specs.
Change
ci.yml:pr-interaction-webkitruns a matrix of 6 legs, aspr-interactiondoes. The leg count still plans as few legs as fit, so most runs use 1 to 4.playwright-legs.mjs:legsFitMessage(...)returns null when the proofs fit the matrix. Otherwise it returns the seconds, the legs needed against the matrix, the longest leg with setup, and the five heaviest specs with their seconds.playwright-legs.test.mjs:legsFitMessage(...)is null for each lane, in place ofneeded < legs.legsFitMessage: proofs that need the matrix's last leg fit. Proofs that need one leg more name the heaviest specs. A single spec longer than a leg is named.No proof is cut and no time limit is raised.
Evidence
main's recorded WebKit times with 60 s added to one spec (2,056 s release-wide) fail the current contract test with2056 s of proofs: expected 5 to be less than 5.main's own times pass too.playwright-legs.test.mjs,ci-interaction-webkit.test.mjsandci-interaction.test.mjspass, 67 tests.Scope
Testing
vitest run .github/scripts/playwright-legs.test.mjs .github/scripts/ci-interaction-webkit.test.mjs .github/scripts/ci-interaction.test.mjs, withmain's times and with 60 s added to one WebKit spec.