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
22 changes: 19 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,21 @@ jobs:
/usr/share/swift /usr/local/share/powershell /usr/local/share/chromium /usr/local/share/boost \
/opt/microsoft /opt/az /usr/lib/google-cloud-sdk /usr/lib/mono /usr/local/julia* /usr/local/graalvm \
/opt/hostedtoolcache/Java_* /opt/hostedtoolcache/Ruby /opt/hostedtoolcache/go /opt/hostedtoolcache/PyPy
df -h /
# 2026-12-06 (nightly 47650416343, release/0.3.1): full again, 31 MB left with 4,032 of 14,412 tests
# to go (instrumented build 114 GB, .profraw 10.7 GB, 122 GB free after the removals above). Also drop
# the preinstalled container images (a test that needs one pulls it), the swap file and SDKs no step
# uses, and put the instrumented build on /mnt when that is its own, roomier filesystem.
if command -v docker > /dev/null; then sudo docker image prune --all --force > /dev/null || true; fi
sudo swapoff -a || true
sudo rm -rf /mnt/swapfile /swapfile /opt/hostedtoolcache/node /usr/local/lib/node_modules /opt/google \
/usr/lib/firefox /usr/local/aws-cli /usr/local/aws-sam-cli /usr/share/miniconda /opt/pipx \
/usr/local/share/vcpkg /usr/local/lib/heroku
df -h / /mnt 2> /dev/null || df -h /
if [ -d /mnt ] && [ "$(stat -c %d /mnt)" != "$(stat -c %d /)" ] \
&& [ "$(df --output=avail /mnt | tail -1)" -gt "$(df --output=avail / | tail -1)" ]; then
sudo mkdir -p /mnt/llvm-cov-target && sudo chown "$(id -u):$(id -g)" /mnt/llvm-cov-target
echo "CARGO_LLVM_COV_TARGET_DIR=/mnt/llvm-cov-target" >> "$GITHUB_ENV"
fi
# Pinned (`COVERAGE_NIGHTLY` in xtask/src/coverage.rs): the nightly of 2026-10-31
# cannot compile apache-avro 0.22 (async-drop cycle), which ended every run since.
- name: Nightly toolchain with llvm-tools (branch coverage)
Expand Down Expand Up @@ -270,8 +284,10 @@ jobs:
if: always()
run: |
df -h /
du -sh target/llvm-cov-target target/llvm-cov-target/debug/deps target/llvm-cov-target/debug/build 2> /dev/null || true
find target/llvm-cov-target -maxdepth 1 -name '*.profraw' -printf '%s\n' 2> /dev/null \
b="${CARGO_LLVM_COV_TARGET_DIR:-target/llvm-cov-target}"
df -h "$b" 2> /dev/null || true
du -sh "$b" "$b/debug/deps" "$b/debug/build" 2> /dev/null || true
find "$b" -maxdepth 1 -name '*.profraw' -printf '%s\n' 2> /dev/null \
| awk '{ n++; s += $1 } END { printf "profraw: %d files, %.1f GB\n", n, s / 1e9 }'
- name: Per-crate summary
run: cargo xtask coverage-summary --markdown | tee -a "$GITHUB_STEP_SUMMARY"
Expand Down
Loading