Repository navigation
Time-limit each test binary and the CI-slot wait in cargo xtask #3099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
THEtheChad
wants to merge
32
commits into
storytold:main
Choose a base branch
from
THEtheChad:tests/3060-xtask-time-limits
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
9e46dce
feat(xtask): #3058 cargo xtask test runs every test binary under the …
THEtheChad 6b6bbd3
fix(xtask): #3058 keep going through doctests, keep ci --quick's thre…
THEtheChad 48b774f
fix(xtask): #3058 under nextest, --test-threads and --nocapture go be…
THEtheChad 3b8ef15
docs(xtask): #3058 the test help says a CARGO_BUILD_JOBS or RUST_TEST…
THEtheChad 6cd47f5
Issue #3058: ci's test step runs every binary since #3791; xtask test…
THEtheChad 0c2a49a
Issue #3058: the Quick start line says what --keep-going does
THEtheChad fe076d6
Issue #3058: the CI caps go on only once the CI slot is held
THEtheChad 11e753a
build(cargo): #3059 plain cargo test runs at most 4 tests at once
THEtheChad fa3cdbc
fix(xtask): #3059 state exactly when an explicit RUST_TEST_THREADS wins
THEtheChad 9ef72f5
fix(xtask): #3059 ci --quick's test binaries get the RAM-aware test t…
THEtheChad 53d0028
test(xtask): #3059 the config check reads RUST_TEST_THREADS and its m…
THEtheChad 2b3021e
test(xtask): #3059 the config check also requires the marker to be fo…
THEtheChad 36b38a1
feat(xtask): #3060 bound each test binary's run and the wait for the …
THEtheChad f206ea8
fix(xtask): #3060 make the per-binary clock, the kill and the --list …
THEtheChad 7c6902f
fix(xtask): #3060 signal only processes xtask started, and bound the …
THEtheChad 9c4e9d4
docs: #3060 the build isn't timed, only what a run waits on after it
THEtheChad f37fccb
docs: #3060 a reparented process that cleared its environment isn't f…
THEtheChad b7180d2
fix(xtask): #3060 signal a timed-out run's processes through pidfds, …
THEtheChad 659d806
fix(xtask): #3060 trust a parent only while it lives, and signal no b…
THEtheChad d5ffde0
fix(xtask): #3060 a pidfd that can't be asked vouches for nothing; SI…
THEtheChad 743f331
fix(xtask): #3060 the CI-slot wait never sleeps past its limit
THEtheChad dc58e6c
fix(xtask): #3060 a stalled output reader can't hold up the clock; no…
THEtheChad 66d92d2
fix(xtask): #3060 say what the output gate can't stop; handshake the …
THEtheChad 4cf76a5
fix(xtask): #3060 a CI slot taken only after the wait's limit, while …
THEtheChad 646c3fb
fix(xtask): #3060 a slot freed as the wait ran out says so, instead o…
THEtheChad 2e13ab9
fix(xtask): #3060 the freed-slot message doesn't claim the slot is st…
THEtheChad d3be7e7
test(xtask): #3059 the config check ignores a trailing comment on the…
THEtheChad 01c2236
Issue #3060: the README names the GPU probe's 5-minute limit, as docs…
THEtheChad 024d889
Issue #3059: plain cargo test keeps libtest's defaults; only xtask te…
THEtheChad 1c389d0
Issue #3060: the CI-slot wait defaults to 240 min, room for three ful…
THEtheChad ff2dfa7
Merge #3086's new head (plain cargo test keeps libtest's defaults) in…
THEtheChad 6e7c5b9
Issue #3060: nextest's 30-minute limit per test is in an xtask profil…
THEtheChad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # `cargo xtask ci` and `cargo xtask test` run nextest (LIGHTCRAFT_NEXTEST=1) with this profile, set | ||
| # through NEXTEST_PROFILE unless you set it yourself. A plain `cargo nextest run` uses the default | ||
| # profile and keeps nextest's own defaults (#3058). | ||
| [profile.xtask] | ||
| # A test still running after 30 minutes is killed (`cargo xtask` gives each test binary under | ||
| # `cargo test` the same limit, LIGHTCRAFT_TEST_BINARY_TIMEOUT, #3060). That variable doesn't change | ||
| # this one (`0` included): NEXTEST_PROFILE=default runs without it. | ||
| slow-timeout = { period = "60s", terminate-after = 30 } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.