Skip to content

ci: give the gate probe 300 s and print its output when it times out (Fixes #5932) - #5933

Merged
vpacher merged 2 commits into
masterfrom
fix/5932-probe-timeout
Nov 29, 2026
Merged

vpacher merged 2 commits into
masterfrom
fix/5932-probe-timeout

Conversation

@vpacher

@vpacher vpacher commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Fixes #5932.

Why

The Fast Gate's lint lane runs ci/test_local_gate_probe.py. On 2026-11-29 its first soldr cargo test in the one-file scratch crate passed the 90 s timeout four times (#5927, port/5929-async-tick, #5931 twice), while a passing probe takes about 12 s. The issue has the runs and runners. The test dropped the captured output on the timeout, so the logs do not show what the build waited for.

What changes

ci/test_local_gate_probe.py only:

  • A module-level run_scratch() helper runs each probe step, with PROBE_TIMEOUT_S = 300. The probe checks that a changed source is compiled, not how fast, so the timeout only has to stop a hang.
  • On subprocess.TimeoutExpired, the helper prints the command, the timeout and the last 8000 characters of the output captured so far to stderr, then raises as before.
  • The probe case itself does not change.

Tests

  • RED 6827037: two new ProbeScopeTest cases.
    • test_a_timeout_prints_the_output_so_far: a child process prints a line and sleeps; with a 2 s timeout the helper must raise TimeoutExpired and the line must be in stderr.
    • test_the_timeout_only_stops_a_hang: PROBE_TIMEOUT_S is at least 300 s.
    • Both fail with NameError (the helper does not exist).
  • GREEN 15dd25e: all 5 cases of the file pass locally on macOS with soldr, the real probe included (12.3 s in all; the new timeout case takes 2 s).
  • ci/test_tool_guard.py and ci/test_uv_run.py pass.

Not proven here: the cause of the slow scratch builds. The issue names the shared soldr daemon as a possible cause; the next timeout, if any, prints the output that shows it.

Test cost: one new case of 2 s (a child process that is killed at the timeout), no threads.

🤖 Generated with Claude Code

vpacher and others added 2 commits November 29, 2026 12:23
Two new ProbeScopeTest cases: the probe's subprocess helper prints the
command and the output captured so far when it times out, and the
probe's timeout is at least 300 s. The helper does not exist yet, so both
fail with NameError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(GREEN, Fixes #5932)

The probe's scratch build timed out at 90 s four times on 2026-11-29 on
loaded runners, while a passing probe takes about 12 s. The timeout only
has to stop a hang, so it is now 300 s. On a timeout, the new
run_scratch() helper prints the command and the output captured so far
before it raises, so the log shows what cargo or soldr waited for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vpacher
vpacher requested a review from zackees as a code owner November 29, 2026 11:24
@vpacher vpacher changed the title ci: give the gate probe 300 s and print its output when it times out (GREEN, Fixes #5932) ci: give the gate probe 300 s and print its output when it times out (Fixes #5932) Nov 29, 2026
@vpacher
vpacher enabled auto-merge November 29, 2026 11:26
@vpacher
vpacher added this pull request to the merge queue Nov 29, 2026

@zackees zackees left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review: LGTM. This is the timeout that cancelled #5926's Fast Gate: test_local_gate_probe.py::test_changed_source_fails_the_rust_test_lane hit TimeoutExpired at 90 s on a Dell runner. 300 s still stops a hang, and printing the captured output on timeout makes the next one diagnosable. Both behaviours are tested (test_a_timeout_prints_the_output_so_far, test_the_timeout_only_stops_a_hang).

Merged via the queue into master with commit 51ea895 Nov 29, 2026
51 checks passed
@vpacher
vpacher deleted the fix/5932-probe-timeout branch November 29, 2026 12:04
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.

bug: ci: the gate probe self-test times out at 90 s and loses its output

2 participants