Skip to content

ci: Bound Rust job timeouts at 2x so a lost runner cannot hold the queue (#2593) - #2618

Merged
zackees merged 2 commits into
masterfrom
fix/2593-job-timeouts
Oct 27, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/2593-job-timeouts

Conversation

@zackees

@zackees zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member

Refs #2593 (part A; the issue stays open for part B, which the maintainer has).

A lost runner leaves its job in_progress until timeout-minutes (or the
merge 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 not
need a remote RED run): ci/test_ci_job_timeouts.py pins the decided values
and fails on current master:

uv run python -m unittest ci/test_ci_job_timeouts.py
-> 3 failures: rust-tests-linux 60 (want 20); rust-tests 60 (want 30/25 per
   os); rust-tier2 90 (want 25)

GREEN 75797a36c: set the bounds in .github/workflows/build-project.yaml
(no other file changes):

Job Was Now Measured (issue #2593)
rust-tests-linux (Fast Gate ⚡) 60 20 7.7–11.3 min
rust-tests (Rust Tests 🦀) 60 windows 30 / macos-26 25 9–14.3 min
rust-tier2 (Rust Tier 2) 90 25 10–15 min

rust-tests runs a matrix over platform_os, so its bound is the expression
${{ matrix.os == 'windows-2025-vs2026' && 30 || 25 }}; rust-tier2's bound is
25 for both OSes.

uv run python -m unittest ci/test_ci_job_timeouts.py  ->  OK
./lint  ->  lane lint: ok

Not in this PR (per the decision):

  • The merge-queue check_response_timeout_minutes 120 → 60 is a repository
    ruleset setting, not a tracked file, so it cannot be a file change here.
  • A3 (auto re-run on a lost runner) is deliberately left as-is.
  • A4 (free -m/df -h sampling) is diagnostic instrumentation for a follow-up.

Part B (parity-test selection) is the maintainer's and stays on #2593.

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.
@zackees
zackees added this pull request to the merge queue Oct 27, 2026
Merged via the queue into master with commit 2d5ade1 Oct 27, 2026
32 checks passed
@zackees
zackees deleted the fix/2593-job-timeouts branch October 27, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant