Repository navigation
ci: bound apt-get in test-setup and the remaining workflows so a wedged mirror fails in 5 min - #4917
Merged
Merged
Conversation
tend-setup's apt-get calls have carried `sudo timeout -k 30 300` since #3855; the other sites were left unbounded for want of observed hangs. They have now hung three times: six nightly and PR jobs on 2026-10-07 (#4396), `test (linux)` on #4852 (2026-11-20, 4.5 h until cancelled), and `affected tests (linux, advisory)` on #4910 (2026-11-24, killed at the 360-minute cap). Each log stops mid `apt-get update`, and the 11-24 hang held a nightly and a review session in their CI polls for ~340 minutes each. With the bound, the step fails in five minutes and can be rerun.
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.
Every remaining
apt-getcall in CI now runs under the samesudo timeout -k 30 300bound thattend-setuphas used since #3855. That coverstest-setup,coverage.yaml,benchmarks.yamland the threenightly.yamlsteps. A wedged Ubuntu mirror now fails the step after five minutes, where a rerun fixes it. Today it holds the job until GitHub kills it at the 360-minute cap, along with every tend session polling that PR. This PR's owntest (linux)andaffected tests (linux)jobs exercise the newtest-setupstep.#3855 left these sites unbounded because none had hung yet, and offered to widen the bound if one did. Three hangs have hit them since:
test (linux)on #4852affected tests (linux, advisory)on #4910 (job)poll-pr-checksand ended unverifiedEach log ends mid-
apt-get update(afterGet:5 … noble-security InReleaseon 11-24), followed by hours of silence and then##[error]The operation was canceled.Observations are tracked in #4657.Why
timeout(1)and not step-leveltimeout-minutestest-setupis a composite action, and composite steps don't accepttimeout-minutes. That's whytend-setupusestimeout(1), and its comment explains the-k 30escalation. Using the same form at the workflow-file sites keeps a single pattern. A healthy update takes about 15 s, so five minutes is headroom. Both expiry codes (124 on SIGTERM, 137 after the kill) fail the step.