Skip to content
Closed
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ jobs:
- name: Prepare locked proptest profile dependencies
run: cargo fetch --locked --manifest-path crates/ripr/tests/fixtures/proptest_singleton/input/Cargo.toml

# Runner-loss guard (#4978, #12719). The former scheduled run on main (retired
# by #12973; the lane is dispatch-only now) died three days running
# about six minutes into the instrumented build with "The
# runner has received a shutdown signal" and exit 143, with 65 GB of disk
# still free. The all-features `ripr` lib test compile peaks near the
# runner's 16 GB (#12726), and instrumentation adds to it. The required
# shards and Test Analytics hit the same loss and add 8 GB of swap before
# building; this lane was the one full-workspace build without it. This
# only adds memory: the coverage command, profile settings and test
# population are unchanged, and a swap setup failure is logged and the
# build still runs. The image already has an active 4 GB /mnt/swapfile,
# so use another path.
- name: Add swap headroom for the instrumented build
run: sudo fallocate -l 8G /mnt/ci-swapfile-8g && sudo chmod 600 /mnt/ci-swapfile-8g && sudo mkswap /mnt/ci-swapfile-8g > /dev/null && sudo swapon /mnt/ci-swapfile-8g && swapon --show || echo "::warning::could not enable swap; the build runs without extra headroom (#12719)"

- name: Clean coverage state
run: cargo llvm-cov clean --workspace

Expand Down
5 changes: 5 additions & 0 deletions changelog.d/4978-coverage-lane-swap-headroom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- section: Internal / CI -->
- `.github/workflows/coverage.yml` adds 8 GB of swap before the instrumented
build, like the required test shards and Test Analytics. The former scheduled
run on main (retired by #12973) was losing its runner about six minutes into compilation three days
running (#4978).
Loading