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 ' ')"