Skip to content

ci(spec): give the test job 25 minutes - #2226

Merged
kdy1 merged 1 commit into
mainfrom
oskar/spec-test-timeout
Nov 25, 2026
Merged

kdy1 merged 1 commit into
mainfrom
oskar/spec-test-timeout

Conversation

@okwasniewski

@okwasniewski okwasniewski commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Why

The spec test job has a 15 minute timeout and pnpm test now 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:

package Nov 20 Nov 24
e2e 296s 466 to 536s
desktop not in the job 148 to 156s
web 62s 72 to 94s

What

Raise the test job 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 timeout
  • packages/e2e/tests/integration/trace-cache-twin-gone.test.ts: 64s, one test waits four times for the 15s replay retry ceiling
  • packages/e2e/tests/integration/node-debug-warning.test.ts: 32s
  • packages/acp/tests/presets.test.ts: 0.5s to 27s since Nov 23

Verification

pnpm run check and pnpm run test pass locally at 5711573. This PR's own spec run shows the job finishing inside the new limit.

View guided diff Turn on auto-fix

@github-actions github-actions Bot added e2e team Opened by the e2e team size:XS Up to 9 changed lines, not counting tests, fixtures, translated docs, or the lockfile labels Nov 24, 2026

@kdy1 kdy1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Comment on lines +100 to +101
# The suite takes about 14 minutes on a slow runner, so 15 cancelled jobs
# whose tests all passed.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/notte with The operation was canceled., so the root test script 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.

@kdy1
kdy1 added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit a820da9 Nov 25, 2026
32 checks passed
@kdy1
kdy1 deleted the oskar/spec-test-timeout branch November 25, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e team Opened by the e2e team size:XS Up to 9 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants