Repository navigation
CI: bound every job, apt refresh and download (no more multi-hour hangs) - #375
Merged
Merged
Conversation
…not hang a run for hours CI run 36904995113 (host unit tests, hostsim) sat 4 h 36 min on `apt-get update`, last log line `Get:5 https://archive.ubuntu.com/ubuntu noble-security InRelease`, until it was cancelled. No job had timeout-minutes (GitHub's default is 360), the fallback update had no `timeout`, and the `Acquire::http::Timeout` we passed does not cover an HTTPS fetch (and was not passed to update). - timeout-minutes on every job of ci, simulators, nightly, release, pages and build-package, sized at ~2x the max of the last 40 successful runs (measured values in a comment on each). - New composite .github/actions/apt-install: the cached-.deb, fetch-then-install logic that host-rust carried, now with `timeout` on every update/fetch, Acquire::https::Timeout alongside http, and a bounded last resort. host-rust and the Linux simulator both use it. - Step-level bounds on brew install and the webosbrew tooling step; curl gets --connect-timeout/--max-time/--retry. - ci/test_ci_timeouts.py (in check-python) fails on a job without timeout-minutes, an unwrapped `apt-get update` or a curl without --max-time; it is red on origin/main (23 findings). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PUkd69QzFciCfQucbfiyKv
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.
Diagnosis
CI run 36904995113, job "host unit tests (hostsim)", hung 4 h 36 min (18:12 to cancelled 22:47) on
apt-get update. The last log line wasGet:5 https://archive.ubuntu.com/ubuntu noble-security InRelease [126 kB], then nothing. Causes:timeout-minutes, so GitHub's 360-minute default applied.host-rust's fallbacksudo apt-get updatehad notimeout, andopts(withAcquire::http::Timeout=30) was not passed to it. The stalled fetch was HTTPS, which the http option does not cover.Acquire::https::Timeoutis a real separate option: apt'sdoc/examples/configure-indexlistsTimeout "30";in both thehttpandhttpsblocks ofAcquire(apt.conf(5) documents only the http spelling).simulators.ymlran a plainsudo apt-get update && installwith no timeout, retry or cache. Its Linux job shows the same failure mode in the data: one success took 32.5 min, 29 of it in that step.Fix
timeout-minuteson every job (reusable-workflow calls cannot carry it; their limit is on the called workflow's job). Each has a comment with its measured max..github/actions/apt-install(cached .debs, fetch then install,timeouton every update/fetch, http and https timeouts, bounded last resort).host-rustand the Linux simulator both use it; the cache key is derived from that file's hash plus the package list.timeout-minutesonbrew installand on the webosbrew tooling step;curlgains--connect-timeout 20 --max-time 120 --retry 3 --retry-delay 5.build-package.ymlchanges are limited to this and its job timeout.ci/test_ci_timeouts.py, run bymake check-python: fails on a job withouttimeout-minutes, anapt-get updatenot undertimeout, or acurlwithout--max-time. It is red on origin/main (23 findings) and green here; each checker is also proven red on a mutated copy inside the test.No job names, tests or release behaviour changed.
Measured maxima (last 40 successful runs per workflow; minutes)
Per-job durations on this PR's own CI run are recorded in a comment below once it finishes.
🤖 Generated with Claude Code
https://claude.ai/code/session_01PUkd69QzFciCfQucbfiyKv