Repository navigation
CI: an example that hits its timeout is aborted with its stacks, run once more, and fails on a second timeout - #579
Merged
Merged
Conversation
…once more, and fails on a second timeout (closes #577) Example 13 used all 30 minutes of its timeout on linux-x86_64 Python 3.12 in run 47354801394 (2026-12-04), with no output after the model load. Across the 86 native runs of it since 2026-12-01 it took 288 to 888 s, so its timeout is now 20 minutes. A timeout is now a SIGABRT with PYTHONFAULTHANDLER=1 (the stack of every thread lands in the log, which is printed), one retry, and a failure on a second timeout. Only a timeout is retried.
tae898
force-pushed
the
fix/577-example-timeout-retry
branch
from
December 6, 2026 00:59
1ee5f5a to
86230e6
Compare
…a shim, so the runner test does not fail with exit 127
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.
Closes #577
Example 13 (
13_stackoverflow_hybrid_queries.py) used the whole 30 minutes of its timeout onlinux-x86_64, Python 3.12, in run 47354801394, with no output after the model load. The same commit passed in the next scheduled run. This pull request makes the runner treat a timeout as a hang so that the next one is both survivable and diagnosable.What changes in
scripts/run_examples.sh:SIGABRT(not on Windows) withPYTHONFAULTHANDLER=1, so the log holds the stack of every thread; the runner prints it, then runs the example once more. A second timeout fails the leg. A pass on the retry is named in the results (PASSED ON ITS RETRY after a timeout) and in a::warning. Only a timeout is retried, never a failure.EXAMPLES_TIMEOUT(seconds) replaces the per-example timeouts; the new testtests/test_run_examples_timeout.pyuses it on fake examples (hang once passes and is named, a hang that stays fails after exactly two runs with the stacks in the log, a failing example runs once).SC2086quoting fix on the line of example 10's reference run, whichshellcheckreports now.Duration of example 13, from the logs of the 11 push and schedule runs of
test-native.ymlsince 2026-12-01 (86 native legs, one of them the hang):The cause inside the process is not known: there is no stack of the hang. It is a hang of the process itself and not a slow runner, since the examples after it ran at normal speed in the same job a minute later. It is not the vector read-your-writes race of #409: that one is a missed vector under several writers, this example is single-threaded and nothing was raised.
Verification:
bash -n,uvx pre-commit run --fileson the four changed files (shfmt, shellcheck, black, isort, ruff), bandit on the new test, and the three new tests (3 passed, 12 s). The labelci:fullruns the example legs with the new runner.