Repository navigation
test: stop the box-tools tests hanging the macOS matrix (#4840) - #4862
Merged
Merged
Conversation
Every macOS shard-3 leg of the Full Suite Gate on main hit the 45-minute job timeout (runs 38046101970, 38065552420, 38071555913, 38083925457) after an F at ~98%, so their result read as "cancelled". Cause: test_box_tools.py was skipped on Windows only, but the box scripts need flock(1) and /proc. macOS has no flock, so heavy-run.sh never took a slot and slept forever: test_heavy_run_respects_slot_limit timed out (the F) and test_heavy_run_propagates_exit_status, with no timeout, hung the job. - skip the module on anything but Linux (its own reason already said so); - give the exit-status call a 30 s timeout, so a hang is a failure; - heavy-run.sh exits 127 with a message when flock is missing instead of looping (new test; reproduced: old script spins until killed). Part of #4840 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 10, 2026 22:48
squid-protocol
enabled auto-merge (squash)
October 10, 2026 22:48
Owner
Author
|
No description provided. |
Contributor
squid-protocol
added a commit
that referenced
this pull request
Oct 11, 2026
…st --timeout) (#4865) Two quiet failures from 2026-10-10: - #4858 sat green-but-unmerged: a push dropped shepherd:merge (an approval is bound to its head, by design) and, with no request label left, every status label was cleared too, so nothing marked the PR. The bot now sets shepherd:reapprove when it drops the label. It outlives the request labels (is:open label:shepherd:reapprove finds every PR that lost its approval) and clears when shepherd:merge or shepherd:hold comes back, or by hand. - Every macOS matrix leg on main ran into the 45-minute job limit on a hung test (#4862) and read as "cancelled", naming nothing. full-suite-gate.yml and smoke-test.yml now run pytest with --timeout=600 (pytest-timeout 2.4.0; slowest real test ~60 s), so a hang fails as a named test. main_watch.py reports each cancelled leg's run time ("after 45 min") and no longer calls a time-limit cancel "not a verdict on the code". docs/ci.md: the new label, its lifecycle, the timeout; drops a duplicated pair of paragraphs. Part of #4840 Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Oct 11, 2026
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.
Part of #4840
Why
The macOS legs of the Full Suite Gate on main were never "cancelled": every shard-3 leg (and every macOS leg before the shard split) hit the 45-minute
timeout-minutesafter anFat ~98% (runs 38046101970, 38065552420, 38071555913, 38083925457; shards 1–2 finish in ~6 min). Leftoverbash+sleepprocesses at cleanup pointed at a shell-script test.tests/tools/test_box_tools.py(in shard 3) was skipped on Windows only, but the box scripts needflock(1)and/proc. macOS has noflock, soheavy-run.shnever took a slot and slept forever:test_heavy_run_respects_slot_limithit its 30 swait→ theF;test_heavy_run_propagates_exit_statushad no timeout → hung the job.Change
sys.platform == "linux"(its reason already said "for the Linux box").heavy-run.sh: exit 127 with a message whenflockis missing. Reproduced with onlyflockoff PATH: old script spins until killed (124), new one exits 127. New test covers it.Checks
test_box_tools.py8 pass.pr_gates --fastPASS.--ratchetsall PASS exceptports(local CardDemo corpus not at its pinned ref; same on main, see #4861/#4860). macOS proof: the matrix on #4861 after this merges (it will merge main in and runshepherd:matrix).Follow-up worth considering (not here):
pytest-timeoutinfull-suite-gate.yml, so a hang names its test instead of eating 45 macOS minutes per leg.🤖 Generated with Claude Code
https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX