Repository navigation
ci: Bound Rust job timeouts at 2x so a lost runner cannot hold the queue (#2593) - #2618
Merged
Merged
Conversation
RED: ci/test_ci_job_timeouts.py pins the bounds the Decided: comment
sets, and fails on current master -- rust-tests-linux is 60 (want 20),
rust-tests is 60 (want 30/25 per os), rust-tier2 is 90 (want 25).
uv run python -m unittest ci/test_ci_job_timeouts.py -> 3 failures
…eue (#2593) GREEN for #2593 part A: set the Decided: bounds so a dead runner ends at about 2x the normal job time instead of 60/90 minutes. - rust-tests-linux (Fast Gate): 60 -> 20 (runs 7.7-11.3 min) - rust-tests: 60 -> windows 30 / macos-26 25 (runs 9-14.3 min) - rust-tier2: 90 -> 25 (runs 10-15 min) uv run python -m unittest ci/test_ci_job_timeouts.py -> OK The merge-queue check_response_timeout_minutes 120->60 is a repository ruleset setting, not a tracked file, so it is not in this diff.
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.
Refs #2593 (part A; the issue stays open for part B, which the maintainer has).
A lost runner leaves its job
in_progressuntiltimeout-minutes(or themerge queue's response timeout) ends it. A 60/90-minute timeout on an
8–14-minute job turned one lost runner into a 44–60-minute queue stall on
#2514. This applies the
Decided:bounds — about 2× the measured duration —so a dead runner is bounded without killing a slow-but-alive one.
RED
aea90e5ad(local evidence; a focused CI/configuration change does notneed a remote RED run):
ci/test_ci_job_timeouts.pypins the decided valuesand fails on current master:
GREEN
75797a36c: set the bounds in.github/workflows/build-project.yaml(no other file changes):
rust-tests-linux(Fast Gate ⚡)rust-tests(Rust Tests 🦀)rust-tier2(Rust Tier 2)rust-testsruns a matrix overplatform_os, so its bound is the expression${{ matrix.os == 'windows-2025-vs2026' && 30 || 25 }};rust-tier2's bound is25 for both OSes.
Not in this PR (per the decision):
check_response_timeout_minutes120 → 60 is a repositoryruleset setting, not a tracked file, so it cannot be a file change here.
free -m/df -hsampling) is diagnostic instrumentation for a follow-up.Part B (parity-test selection) is the maintainer's and stays on #2593.