Repository navigation
Document fewer test threads for short-deadline tests on busy hosts - #1473
Merged
Merged
Conversation
This was referenced Oct 27, 2026
Merged
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
Adds a note to
docs/testing.md. Some tests give a Trial, grader or Harness a deadline of a second or less, so on a busy many-core host they can fail when every test runs at once. If they pass alone, rerun with fewer threads.Closes #1472. This is option 1 from the issue: no change to tests or production code.
Evidence
Measured on an 18-core Mac running macOS 26:
cargo test --test experiments, default 18 threads: 81 passed, 3 failed. All three failures were 1s-timeout tests.cargo test --test experiments -- --test-threads=3: 84 passed.cargo test --bin thirdshift, default 18 threads: 4 failed. Three of them (ended_trial_sessions_drop_caches_...,interruption_during_read_backoff_...,parent_only_interruption_stops_active_github) each pass when run alone.cargo test --bin thirdshift -- --test-threads=3: 1530 passed, 1 failed.session::private::tests::auxiliary_keeps_its_pinned_trial_invocation_caps_deadline_and_artifacts. It has a 200ms Harness deadline and still failed as part of a 3-thread suite, atsrc/session/private/tests.rs:394, becauseharness-argumentswas missing. It passed 4 of 4 times run alone, and CI passes it. It's reported separately; this PR doesn't claim to fix it.Merge Danger
Door: two-way
Blast Radius: docs