Repository navigation
ci(spec): give the test job 25 minutes - #2226
Conversation
kdy1
left a comment
There was a problem hiding this comment.
Note
This text was drafted with AI and posted after human approval.
- Harness: T3 Code
- AI agents: coordinator: Claude Opus 5.5 (claude-opus-5-5), reviewer: GPT-6.2 Astra (gpt-6.2-astra), reviewer: GPT-6.2 Sol (gpt-6.2-sol), reviewer: Claude Opus 5.5 (claude-opus-5-5), reviewer: Claude Sonnet 5.5 (claude-sonnet-5-5)
Verdict: Approve
This review approves the pull request. The P3 items are optional and do not block the merge.
The new limit works: in this pull request's CI run, test (24) passed in 15.8 minutes, which the old limit would have cancelled. The only finding is about the wording of the new comment.
Reviewed commit: cdef0c7907975c451cfa55bb54cfe57a17c06f24
- P3 (non-blocking): 1 (1 inline)
| # The suite takes about 14 minutes on a slow runner, so 15 cancelled jobs | ||
| # whose tests all passed. |
There was a problem hiding this comment.
P3 · Non-blocking · The new comment understates the job time and says that the cancelled jobs passed
Optional. This does not block the merge.
The comment has three problems:
- It says "about 14 minutes", but
test (24)in this pull request's own run took 15.8 minutes (run 45467113951). - It says "jobs whose tests all passed", but the cancelled jobs did not finish the suite. In the Node 22.22.3 job of run 45462090872, the tests that ran passed. Then the job stopped near
@e2e-dev/nottewithThe operation was canceled., so the roottestscript did not start the later packages (lightpanda, eas, smol, acp, testmu, and others). - A reader can take "so 15 cancelled jobs" to mean fifteen jobs, not a 15-minute limit that cancelled jobs.
The comment is the record of why the limit is 25. A maintainer who examines a future timeout can trust its numbers and its claim that the tests were green. The PR description has the same "with every test passing" wording.
Why
The spec
testjob has a 15 minute timeout andpnpm testnow takes 13 to 15 minutes on the runner. On main at 5711573, four of the five matrix jobs were cancelled at 15:00 with every test passing (the Node 24 job was on its last package). 8255089 lost three jobs the same way. Pull requests run the same workflow, so they hit it too.The suite grew from about 9.5 minutes on Nov 20 to about 14 on Nov 24:
What
Raise the
testjob timeout to 25 minutes.This buys headroom, it does not make the suite faster. The slowest single items, for a follow-up:
packages/desktop/tests/unit/surface.test.ts: about 150s, five tests wait out a real 10s window timeoutpackages/e2e/tests/integration/trace-cache-twin-gone.test.ts: 64s, one test waits four times for the 15s replay retry ceilingpackages/e2e/tests/integration/node-debug-warning.test.ts: 32spackages/acp/tests/presets.test.ts: 0.5s to 27s since Nov 23Verification
pnpm run checkandpnpm run testpass locally at 5711573. This PR's own spec run shows the job finishing inside the new limit.