From 21d1145b9e1dd870b66b25710d25651df5c41c19 Mon Sep 17 00:00:00 2001 From: joelteply Date: Sat, 31 Oct 2026 16:29:40 -0500 Subject: [PATCH] CI: rust-ci-setup frees the runner's preinstalled toolchains in the background, so a crate's test build has room (card 0381ae0b) Jobs on canary 107e10ddc (continuum-mind, continuum-academy) and #5673 (continuum-rooms) died with "No space left on device" while the worker wrote its own diag log on /, which fails a job every hour. Measured from #5661's notices on a successful sibling job (run 41233178745, c59624407, 2026-10-31): - image ubuntu26 20261026.180.1, one disk; - 87G free at setup; - 62G free after the 24 GB cache unpacks. So one crate's test build filled ~60 GB. - A first step deletes the image's preinstalled toolchains no Rust job here reads: the Android SDK, .NET, GHC (/opt/ghc, ~/.ghcup), Boost and CodeQL (~25-30 GB on ubuntu-latest). It runs in the background, so the deletion overlaps the cache restore instead of adding to wall clock: the step itself returns at once. The existing after-cache notice now reports the room the build really gets. - Correction: #5661's comment said an annotation survives a worker that dies on a full disk. It doesn't. Run 41233178745's failed jobs carry neither runner-disk notice, while its successful ones carry both. The comment now says a disk-full is read from a sibling job's notices. Follow-up, its own measured change (not here): our crates' dev debuginfo in CI. line-tables-only keeps panic lines, needs a new cache key, and is expected to shrink both the 24 GB cache and each test build. CI time: +0 s (the deletion is backgrounded). Measured after merge: the after-cache notice on the next warm and crate runs. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --- .github/actions/rust-ci-setup/action.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/actions/rust-ci-setup/action.yml b/.github/actions/rust-ci-setup/action.yml index c81e738bb5..3fe3e6d604 100644 --- a/.github/actions/rust-ci-setup/action.yml +++ b/.github/actions/rust-ci-setup/action.yml @@ -23,6 +23,19 @@ outputs: runs: using: composite steps: + # The 26.04 image has ONE disk: 87G free at setup and 62G after the cache unpacks (#5661's + # notices on run 41233178745, c59624407, 2026-10-31), and one crate's test build filled the + # rest; the worker then died writing its own log on / (canary 107e10ddc, #5673), and those + # jobs keep no annotation at all. The image's preinstalled toolchains are ~25-30 GB that no + # Rust job here reads (Android SDK, .NET, GHC, Boost, CodeQL): removed in the background, so + # the deletion overlaps the cache restore instead of adding to the job's wall clock. + - name: Free the runner's preinstalled toolchains + shell: bash + run: | + df -h / + sudo nohup rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup \ + /usr/local/share/boost /opt/hostedtoolcache/CodeQL > /dev/null 2>&1 & + # The shared target is 24 GB unpacked (warm run 41193606500 at f0f786d19, 2026-10-31: 24G # after pruning 5.79 GB of test executables), restored beside its 5 GiB download, and a crate # job builds its tests on top. Two runner images are in rotation while ubuntu-latest moves to @@ -42,9 +55,9 @@ runs: fi echo "CARGO_TARGET_DIR=/ci-target" >> "$GITHUB_ENV" df -h / /ci-target - # An annotation is stored apart from the job log, so it survives a worker that dies writing - # its log on a full disk (two jobs on #5651 did, after #5650): the next disk-full names its - # runner image and the room it started with. + # The runner image and the room the build starts with. A job whose worker dies writing its + # log on a full disk keeps NO annotation, this one included (run 41233178745's failed jobs, + # 2026-10-31), so a disk-full is read from a sibling job's notices on the same image. target_dev=$(df --output=source /ci-target | tail -1) echo "::notice title=runner disk::${ImageOS:-unknown} ${ImageVersion:-unknown}; / free $(df -h --output=avail / | tail -1 | tr -d ' '); /ci-target on ${target_dev} free $(df -h --output=avail /ci-target | tail -1 | tr -d ' ')"