Skip to content

Bound the test job and name a hung test - #100

Merged
RyanSaxe merged 1 commit into
developfrom
ci-test-timeouts
Oct 6, 2026
Merged

RyanSaxe merged 1 commit into
developfrom
ci-test-timeouts

Conversation

@RyanSaxe

@RyanSaxe RyanSaxe commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

What and why

A hung test file kept a test job running until GitHub cancelled it at six hours, and the log named no test. This change:

  • gives the test job timeout-minutes: 15;
  • passes --test-timeout=120000 to node --test on every matrix entry except Node 20.1.0, so a test that runs past two minutes fails with its name.

Node 20.1.0 rejects the option, so its job gets only the job timeout:

$ npx -y node@20.1.0 --test --test-timeout=2000
node: bad option: --test-timeout=2000

Evidence

  • actionlint .github/workflows/ci.yml passes.

  • On Node 26, a test that never resolves fails as ✖ never ends (2001.93ms) with --test-timeout=2000. Its file kept running afterwards because the test left an interval open, so a hang like that still ends only at the 15-minute job timeout, but the log now names the test.

  • In this pull request's CI, the Node 20 and 24 test jobs ran node --test --test-timeout=120000 and the Node 20.1.0 jobs ran node --test. The pull_request run's Node 20.1.0 job hung: its log stops after ok 72 - pair progress notes the round before Agreed, and each page it names at 21:06:32, and GitHub cancelled it at 21:20:59, 15 minutes after it started. That job had no --test-timeout, so its log names no hung test. Every other job passed.

Not verified

  • No hang has yet happened on a job that has --test-timeout, so the named failure is shown only by the local check above.
  • It does not fix the hang. It bounds the job and names the test that hung.

🤖 Generated with Claude Code

A hung test file kept the test job running until GitHub cancelled it at
six hours, and the log named no test. The job now stops at 15 minutes,
and node --test fails a test that runs past two minutes with its name.
Node 20.1.0 refuses --test-timeout ("node: bad option"), so its job
gets only the job timeout.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@RyanSaxe
RyanSaxe marked this pull request as ready for review October 6, 2026 21:23
@RyanSaxe RyanSaxe mentioned this pull request Oct 6, 2026
@RyanSaxe
RyanSaxe merged commit 5e490cb into develop Oct 6, 2026
26 of 27 checks passed
@RyanSaxe
RyanSaxe deleted the ci-test-timeouts branch October 6, 2026 22:44
RyanSaxe added a commit that referenced this pull request Oct 6, 2026
Each job takes under three minutes: the browser job 2.4 to 2.8 minutes, of which installing WebKit takes about 35 seconds, and the figures job under 40 seconds. On #112, the browser job hung for eight minutes while it installed WebKit, and with no limit it would have run until GitHub stopped it at six hours. The test job has had the same limit since #100.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant