Repository navigation
ci: give the gate probe 300 s and print its output when it times out (Fixes #5932) - #5933
Merged
Merged
Conversation
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
enabled auto-merge
November 29, 2026 11:26
zackees
reviewed
Nov 29, 2026
zackees
left a comment
Member
There was a problem hiding this comment.
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).
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.
Fixes #5932.
Why
The Fast Gate's lint lane runs
ci/test_local_gate_probe.py. On 2026-11-29 its firstsoldr cargo testin 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.pyonly:run_scratch()helper runs each probe step, withPROBE_TIMEOUT_S = 300. The probe checks that a changed source is compiled, not how fast, so the timeout only has to stop a hang.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.Tests
ProbeScopeTestcases.test_a_timeout_prints_the_output_so_far: a child process prints a line and sleeps; with a 2 s timeout the helper must raiseTimeoutExpiredand the line must be in stderr.test_the_timeout_only_stops_a_hang:PROBE_TIMEOUT_Sis at least 300 s.NameError(the helper does not exist).ci/test_tool_guard.pyandci/test_uv_run.pypass.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