Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/actions/rust-ci-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ' ')"
Loading