Skip to content

test: stop the box-tools tests hanging the macOS matrix (#4840) - #4862

Merged
squid-protocol merged 1 commit into
mainfrom
test/4840-box-tools-macos-hang
Oct 10, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
test/4840-box-tools-macos-hang

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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-minutes after an F at ~98% (runs 38046101970, 38065552420, 38071555913, 38083925457; shards 1–2 finish in ~6 min). Leftover bash + sleep processes 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 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 hit its 30 s wait → the F;
  • test_heavy_run_propagates_exit_status had no timeout → hung the job.

Change

  • Skip the module unless sys.platform == "linux" (its reason already said "for the Linux box").
  • 30 s timeout on the exit-status call, so a future hang is a failure, not a job timeout.
  • heavy-run.sh: exit 127 with a message when flock is missing. Reproduced with only flock off PATH: old script spins until killed (124), new one exits 127. New test covers it.

Checks

test_box_tools.py 8 pass. pr_gates --fast PASS. --ratchets all PASS except ports (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 run shepherd:matrix).

Follow-up worth considering (not here): pytest-timeout in full-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

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
@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine ci-cd Continuous integration, delivery, and automated runners shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md testing Unit, integration, and E2E pipeline verification labels Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 10, 2026 22:48
@squid-protocol
squid-protocol enabled auto-merge (squash) October 10, 2026 22:48
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 8961d7e into main Oct 10, 2026
27 checks passed
@squid-protocol
squid-protocol deleted the test/4840-box-tools-macos-hang branch October 10, 2026 23:00
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unintended behavior or logic failure in the engine ci-cd Continuous integration, delivery, and automated runners shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant