diff --git a/.github/actions/rust-ci-setup/action.yml b/.github/actions/rust-ci-setup/action.yml index df80857be5..c81e738bb5 100644 --- a/.github/actions/rust-ci-setup/action.yml +++ b/.github/actions/rust-ci-setup/action.yml @@ -42,6 +42,11 @@ 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. + 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 ' ')" - name: Install Rust toolchain from rust-toolchain.toml shell: bash @@ -132,3 +137,6 @@ runs: # Unpack every dependency source first, so its mtimes are settled with the workspace's. cargo fetch --target x86_64-unknown-linux-gnu node tools/scripts/ci-cargo-freshness.cjs settle --prefix "$PREFIX" --matched-key "$MATCHED_KEY" + # Beside the setup notice: the room left after the cache unpacked. The drop between the two + # free figures is the cache's size, with no walk of the tree (Fable on #5661). + echo "::notice title=runner disk after cache::/ci-target free $(df -h --output=avail /ci-target | tail -1 | tr -d ' ')"