Skip to content

ci: bound apt-get in test-setup and the remaining workflows so a wedged mirror fails in 5 min - #4917

Merged
max-sixty merged 1 commit into
mainfrom
daily/review-runs-45570981946-apt-timeout
Nov 25, 2026
Merged

max-sixty merged 1 commit into
mainfrom
daily/review-runs-45570981946-apt-timeout

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Every remaining apt-get call in CI now runs under the same sudo timeout -k 30 300 bound that tend-setup has used since #3855. That covers test-setup, coverage.yaml, benchmarks.yaml and the three nightly.yaml steps. 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 own test (linux) and affected tests (linux) jobs exercise the new test-setup step.

#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:

when job outcome
2026-10-07 six x86_64 Linux jobs across nightly and PR runs (#4396) all killed at the 360-min cap
2026-11-20 test (linux) on #4852 stuck 4.5 h, until a review-runs sweep cancelled it; one triage and two review sessions polled it the whole time
2026-11-24 affected tests (linux, advisory) on #4910 (job) killed at the cap; nightly 45340530290 and review 45343341664 each sat ~340 min in poll-pr-checks and ended unverified

Each log ends mid-apt-get update (after Get:5 … noble-security InRelease on 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-level timeout-minutes

test-setup is a composite action, and composite steps don't accept timeout-minutes. That's why tend-setup uses timeout(1), and its comment explains the -k 30 escalation. 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.

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.
@worktrunk-bot worktrunk-bot added the review-runs Findings from the daily review-runs workflow label Nov 25, 2026
@max-sixty
max-sixty merged commit 40a846a into main Nov 25, 2026
56 of 66 checks passed
@max-sixty
max-sixty deleted the daily/review-runs-45570981946-apt-timeout branch November 25, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-runs Findings from the daily review-runs workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants