Repository navigation
Stop a stuck native test file or step before the CI job's limit - #947
Merged
Merged
Conversation
The Native engine tests step now fails a test file that runs for 5 minutes, naming it and its test, and stops every script at a 20-minute step deadline. A step still running at the job's 30-minute limit loses its whole log. Refs #946
The slowest green test file reaches 213 s on Linux, so the per-file limit is 450 s. The step deadline is 25 min on macOS and Windows, where the step starts about a minute into the job, and 20 min on Linux. Refs #946
A stopped command is now given up on 8 s after the stop even when a process outside its group still holds its output pipe; before, the deadline fired and the step still waited for `close`. Guarded steps in the Full gate stop 27 min after the job's first step, which records the start time, instead of at a fixed per-OS step deadline. Refs #946
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.
Summary
A stuck native test file or CI step now fails, naming the file and test it was running, before the job's own time limit.
Why
On
mainat 5c43cc5 theNative engine testsstep ran until the job's 30-minute limit, though each script had a 10-minute deadline. A step still running at the job's limit loses its whole log, so nothing showed which file stalled. A deadline could fire and still not end the step: the runner waited for the script's output pipe to close, and a process outside its process group can hold that pipe open for ever.Changes
Native engine testsstops a script once one of its test files has run for 7.5 min, naming the file and test.Notes
import-meta-exclude.test.ts, at up to 212.8 s on Linux, 195.2 s on Windows and 167.4 s on macOS (14–29 November). Vitest's reported duration leaves out imports; one local run timed both ways added 1.5 s. So 450 s is at least 2× on every OS.Refs #946