Skip to content

Fail a hung test after three minutes in CI - #27

Merged
vincentsch merged 2 commits into
mainfrom
ci-timeout
Oct 13, 2026
Merged

vincentsch merged 2 commits into
mainfrom
ci-timeout

Conversation

@vincentsch

Copy link
Copy Markdown
Owner

Twice today, the macOS job stopped in the middle of the browser tests and ran until it was cancelled. Chrome was still running, and each time it stopped in a different test file. The log can't show which test hung, because the output of later files waits for the one that hangs.

CI now runs the tests with a three minute limit per test, so a hang fails with the name of the test. Tests that need longer still set their own limit. --test-force-exit ends each file once its tests are done, even if a browser process is left behind. The job also stops after 25 minutes. A normal run takes 2 to 4 minutes.

npm test stays as it was for local runs.

@vincentsch
vincentsch merged commit 774865c into main Oct 13, 2026
4 checks passed
@vincentsch
vincentsch deleted the ci-timeout branch October 13, 2026 20:23
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