Repository navigation
fix: don't let tests hang for an hour - #51432
Merged
Merged
Conversation
6 tasks done
dsanders11
approved these changes
May 4, 2026
|
No Release Notes |
Contributor
|
I was unable to backport this PR to "40-x-y" cleanly; |
This was referenced May 4, 2026
Contributor
|
I have automatically backported this PR to "42-x-y", please check out #51466 |
Contributor
|
I have automatically backported this PR to "41-x-y", please check out #51467 |
3 tasks done
Contributor
dsanders11
pushed a commit
that referenced
this pull request
May 19, 2026
fix: don't let tests hang for an hour (#51432) test: set timeout limit for ESM fixture processes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Fix two spec runner bugs that could cause tests to hang forever.
Add a
spawnAndWait()spec helper that ensures that spawned processes are cleaned up. When a caller-provided timeout is reached, the helper terminates the child process and escalates toSIGKILLif the process doesn't exit cleanly.In the "rerun failed tests" phase of
script/spec-runner.js, enforce a timeout based on MOCHA_TIMEOUT.Sample error CI log from here:
Complements #51441. This PR is "try to fix the runner to not hang on a failed test", 514441 is "try to fix the test."
Checklist
npm testpassesRelease Notes
Notes: none.