Skip to content

Commit 95449a2

Browse files
authored
ci: run the Node tests in five legs, on a fresh record of their times (#11381)
* ci: run the Node tests in five legs, on a fresh record of their times Pull requests' test-node legs hit the fifteen-minute limit with every test passed: the recorded times had drifted (door-conformance took 437 s against 307 s recorded), and per-file times swing between runs, so one four-leg split drew 13.4 minutes of tests. The record is re-taken from a pull-request run that reached every Node file, and test-node runs five legs. Projected on two real runs, every leg takes about ten minutes or less. max-parallel stays 2. * Merge remote-tracking branch 'origin/main' into ci/test-node-five-legs * test: the one-run balance case takes the slowest recorded file as its changed test The case named packed-gather-cache and required it recorded above 300 s; the fresh record has it at 231 s, what it takes in a pull-request run. The case now uses whichever file the record has slowest, so a re-record keeps it meaningful. * ci: a pull-request run's planned peak counts the fifth Node leg Admission counts each pull-request ci.yml run at the most jobs it holds at once, queued legs included. Five Node legs make that eighteen, so the admission step's peak and count.mjs's estimate for ci.yml go from 17 to 18. * ci: the swizzle-proof slices keep their largest recorded time The record's own rule keeps each swizzle-proof slice at the largest time seen when a change reaches it; the re-record had lowered slices 1, 2, 4 and 7, and now keeps their earlier, larger times. The test-node and test-ui comments say the legs run in waves, not two.
1 parent 58b844d commit 95449a2

4 files changed

Lines changed: 581 additions & 574 deletions

File tree

‎.github/actions/ci-admission/count.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const AT_LIMIT_SLACK_MS = 30_000;
4444
// One line per workflow: ci-admission.test.mjs reads each estimate from it.
4545
// prettier-ignore
4646
const ESTIMATE = {
47-
'.github/workflows/ci.yml': run => (run.event === 'workflow_dispatch' ? 39 : 17),
47+
'.github/workflows/ci.yml': run => (run.event === 'workflow_dispatch' ? 39 : 18),
4848
'.github/workflows/deploy.yml': run => (run.event === 'push' ? 4 : 14),
4949
'.github/workflows/review-signal.yml': () => 2,
5050
'.github/workflows/audits-at-head.yml': () => 10,

‎.github/workflows/ci.yml‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
timeout-minutes: ${{ github.event_name == 'workflow_dispatch' && 125 || 13 }}
161161
with:
162162
phase: room
163-
peak: ${{ github.event_name == 'workflow_dispatch' && 39 || 17 }}
163+
peak: ${{ github.event_name == 'workflow_dispatch' && 39 || 18 }}
164164
main: ${{ github.event_name == 'workflow_dispatch' }}
165165
max-wait-minutes: ${{ github.event_name == 'workflow_dispatch' && 120 || 12 }}
166166
max-looks: ${{ github.event_name == 'workflow_dispatch' && 30 || 2 }}
@@ -214,7 +214,7 @@ jobs:
214214
started: ${{ needs.room.outputs.started }}
215215
looks: ${{ needs.room.outputs.looks }}
216216
next: ${{ needs.room.outputs.next }}
217-
peak: ${{ github.event_name == 'workflow_dispatch' && 39 || 17 }}
217+
peak: ${{ github.event_name == 'workflow_dispatch' && 39 || 18 }}
218218
main: ${{ github.event_name == 'workflow_dispatch' }}
219219
max-wait-minutes: ${{ github.event_name == 'workflow_dispatch' && 120 || 12 }}
220220
max-looks: ${{ github.event_name == 'workflow_dispatch' && 30 || 2 }}
@@ -916,7 +916,7 @@ jobs:
916916
fail-fast: false
917917
# A pull request or merge-queue entry runs at most two legs at a time,
918918
# so many open pull requests cannot flood the organization's shared
919-
# runner pool; the legs still all run, in two waves.
919+
# runner pool; the legs still all run, in waves.
920920
max-parallel: 2
921921
matrix:
922922
shard: [1, 2, 3, 4]
@@ -1089,10 +1089,13 @@ jobs:
10891089
fail-fast: false
10901090
# A pull request or merge-queue entry runs at most two legs at a time,
10911091
# so many open pull requests cannot flood the organization's shared
1092-
# runner pool; the legs still all run, in two waves.
1092+
# runner pool; the legs still all run, in waves.
10931093
max-parallel: 2
1094+
# Five legs keep each leg near nine minutes of the fifteen-minute
1095+
# limit; at four, a leg reached about thirteen and a half minutes of
1096+
# tests and hit the limit (scripts/vitest-node-durations.json).
10941097
matrix:
1095-
shard: [1, 2, 3, 4]
1098+
shard: [1, 2, 3, 4, 5]
10961099
# Vitest runs one test file per CPU beyond the first, so the 2-core runner
10971100
# ran this suite one file at a time (~23 min). Four cores give it three.
10981101
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)