Repository navigation
ci: split the test job in two per Node.js version - #2225
Conversation
pnpm test took about 14 of the job's 15 minutes on every Node.js version, so a slow runner cancelled it. The job now runs test:runner (core and e2e) and test:packages (the rest) as two matrix entries. pnpm test still runs both.
🟢 e2e web: 95 passedAll 95 tests in 43 files
Tested by e2e 0.24.0 · 1m 16s · web · run artifacts |
🟢 e2e web agent: 34 passed35 agent steps · 26 replayed from cache · 27 model calls · 149.5k tokens (93% cached) · $0.0063 All 34 tests in 5 files
Tested by e2e 0.24.0 · 1m 51s · web · run artifacts |
🟢 e2e android agent: 1 flaky, 19 passed24 agent steps · 15 replayed from cache · 36 model calls · 299.1k tokens (87% cached) · $0.0172
|
| Test | Agent | Time | |
|---|---|---|---|
| tests-agent/scenarios.e2e.ts · 1 flaky, 19 passed | 24 steps · 36 calls | 5m 57s | |
| 🟢 | act completes Login Form | 1 step | 27.3s |
| 🟢 | act completes Infinite Scroll List | 1 step | 23.6s |
| 🟢 | act completes Modal Flow | 1 step | 12.2s |
| 🟢 | act completes Bottom Tabs | 1 step | 7.8s |
| 🟢 | act completes Text Input Variations | 1 step | 7.5s |
| 🟢 | act completes Broken Accessibility | 2 steps · 4 calls | 15.0s |
| 🟢 | act completes Vision Only | 2 steps · 1 call | 8.7s |
| act completes Gestures (1 failed attempt first) | 1 step · 11 calls | 27.3s | |
| 🟢 | act completes Async States | 1 step · 8 calls | 17.8s |
| 🟢 | act completes Debounced Search | 1 step | 7.3s |
| 🟢 | act completes Huge Virtualized List | 1 step | 1m 51s |
| 🟢 | act completes Flattened Registration Form | 2 steps · 1 call | 8.7s |
| 🟢 | act completes Flattened Login | 2 steps · 6 calls | 14.0s |
| 🟢 | act completes Sticky Chrome Target | 1 step | 9.4s |
| 🟢 | act completes WebView Accessibility | 1 step · 5 calls | 14.8s |
| 🟢 | act completes Permission Prompt | 1 step | 6.6s |
| 🟢 | act completes Product Catalog | 1 step | 8.8s |
| 🟢 | act completes Error Recovery | 1 step | 10.4s |
| 🟢 | act completes Choice Controls | 1 step | 9.0s |
| 🟢 | act completes Sequential Onboarding | 1 step | 10.2s |
Tested by e2e 0.24.0 · 6m 29s · android-emulator · run artifacts
🟢 e2e ios: 61 passed, 1 skippedAll 62 tests in 7 files
Tested by e2e 0.24.0 · 7m 23s · ios-simulator · run artifacts |
🟢 e2e ios agent: 21 passed, 1 skipped25 agent steps · 12 replayed from cache · 56 model calls · 389.0k tokens (84% cached) · $0.0238 All 22 tests in 1 file
Tested by e2e 0.24.0 · 7m 54s · ios-simulator · run artifacts |
🟢 e2e android: 62 passed, 1 skippedAll 63 tests in 7 files
Tested by e2e 0.24.0 · 9m 43s · android-emulator · run artifacts |
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.
This pull request splits the test job in spec.yml into two jobs per Node.js version, test:runner (@e2e-dev/core and e2e) and test:packages (every other package and the script tests). The two new scripts, run in order, hold the old test chain: the same 22 test commands in the same order. spec gate needs test, so both halves gate merges. nightly-agent-device.yml reads the job results through the jobs API and does not depend on the job names. All ten test jobs passed on this head, and the slowest took 8m58s against the 15-minute limit. The only finding is a comment whose timing does not agree with the measured jobs.
Reviewed commit: afcea4806d4da299b7a4fabf4947b7cbbc04b893
- P3 (non-blocking): 1 (1 inline)
| matrix: | ||
| # The newest release of each line, and the floors in engines.node. | ||
| node: [22, 24, 26, 22.22.3, 24.8.0] | ||
| # `pnpm test` in two halves of about seven minutes each: one job for |
There was a problem hiding this comment.
P3 · Non-blocking · The matrix comment gives the wrong duration for the two halves
Optional. This does not block the merge.
The comment says "two halves of about seven minutes each". The jobs on this head do not agree:
runner: 7m55s to 8m58spackages: 5m08s to 5m40s, and 8m16s on 24.8.0
A person who later tunes the split or the timeout reads about 8 minutes of headroom for the runner half. The measured headroom is about 6 minutes.
What
The
testjob inspec.ymlruns as two jobs per Node.js version:test:runner(@e2e-dev/coreande2e) andtest:packages(every other package and the script tests).pnpm teststill builds and runs both, in the same order as before.Why
pnpm testtook about 14 of the job's 15 minutes on every Node.js version, so a slightly slow runner hit the timeout. On #2224 the Node 22 and 22.22.3 jobs were cancelled at 15m00s with suites still passing, while 24, 24.8.0 and 26 finished the same commit in 14m06s to 14m57s. Runs onmainwere cancelled the same way.Measured on a passing Node 22 job (run 45457600315): the
e2epackage's tests take about 7.3 minutes, and the build plus every other package about 5.8.How it works
package.json:testbecomesbuild && test:runner && test:packages. The two new scripts hold the old chain cut after thee2epackage, with no entry added, dropped or reordered..github/workflows/spec.yml: thetestmatrix gainssuite: [runner, packages], and the step runspnpm run build && pnpm run test:<suite>.spec gatealready needstest, so both halves gate merges.AGENTS.mdnames the two jobs.Dropped: raising
timeout-minutes. The suite keeps growing, so a higher cap is met again, and a real hang would then take longer to fail.Cost: 10 test jobs in place of 5, each paying checkout, install, Chromium and the build (about 1.5 minutes).
Verified
Ran it locally: no - it changes CI job layout only. This PR's own
specrun is the evidence: all ten test jobs passed, the slowest at 8m58s against the 15-minute cap.runnerpackagestest:runnerfollowed bytest:packagesis the oldtestchain entry for entry.