From 8ef210cd2117c61bf3febaff613e2a3af08d6ad3 Mon Sep 17 00:00:00 2001 From: joelteply Date: Sat, 31 Oct 2026 11:39:03 -0500 Subject: [PATCH 1/3] rust-ci-setup: the runner image and disk as an annotation, which survives a worker that dies writing its log on a full disk (card 0a4fe790) Two #5651 jobs died with 'No space left on device' after #5650 merged (124557309006, 124558799217); their logs were lost with the worker, so their image and disk are unknown. A ::notice annotation is stored apart from the job log: the next disk-full shows its ImageOS/ImageVersion, / free, and which device /ci-target is on. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --- .github/actions/rust-ci-setup/action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/actions/rust-ci-setup/action.yml b/.github/actions/rust-ci-setup/action.yml index df80857be5..5533533429 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 From 010c2eef00439008938a584de689422388a6b9a5 Mon Sep 17 00:00:00 2001 From: joelteply Date: Sat, 31 Oct 2026 11:39:49 -0500 Subject: [PATCH 2/3] rust-ci-setup: a second disk notice after the cache restore, so before/after tells the build's growth from the cache's size (Fable on #5661) Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --- .github/actions/rust-ci-setup/action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/actions/rust-ci-setup/action.yml b/.github/actions/rust-ci-setup/action.yml index 5533533429..1137ea648e 100644 --- a/.github/actions/rust-ci-setup/action.yml +++ b/.github/actions/rust-ci-setup/action.yml @@ -137,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, so a later disk-full + # tells the build's growth from the cache's size (Fable on #5661). + echo "::notice title=runner disk after cache::/ci-target $(du -sh /ci-target 2>/dev/null | cut -f1) used, free $(df -h --output=avail /ci-target | tail -1 | tr -d ' ')" From 9a10d5ee4c0517b10833d4e9300426e60cbc9086 Mon Sep 17 00:00:00 2001 From: joelteply Date: Sat, 31 Oct 2026 11:40:30 -0500 Subject: [PATCH 3/3] rust-ci-setup: the after-cache notice reads df only; the drop between the two free figures is the cache's size, so no du walk of the restored tree on every job (Fable on #5661) Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --- .github/actions/rust-ci-setup/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/rust-ci-setup/action.yml b/.github/actions/rust-ci-setup/action.yml index 1137ea648e..c81e738bb5 100644 --- a/.github/actions/rust-ci-setup/action.yml +++ b/.github/actions/rust-ci-setup/action.yml @@ -137,6 +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, so a later disk-full - # tells the build's growth from the cache's size (Fable on #5661). - echo "::notice title=runner disk after cache::/ci-target $(du -sh /ci-target 2>/dev/null | cut -f1) used, free $(df -h --output=avail /ci-target | tail -1 | tr -d ' ')" + # 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 ' ')"