Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

ci: stop storing large instrumented test executables

Steven Enamakela5bb9809c031
diff --git a/.github/workflows/ci-lanes.yml b/.github/workflows/ci-lanes.yml
index 59367cf5ea..2632a2a401 100644
--- a/.github/workflows/ci-lanes.yml
+++ b/.github/workflows/ci-lanes.yml
@@ -83,6 +83,11 @@ jobs:
install: none
backend: remote
store: /scratch/tinymold
+ # Instrumented test executables link the whole core (~0.5-1 GB each,
+ # ~90 GB per run). Stored, they share inodes with the target, so
+ # neither copy can be freed and the 160 GB scratch disk fills
+ # (runs 39315551099, 39331958941, 39340683561). Relink them instead.
+ max-executable-size: 256M
remote-url: ${{ env.TINYMOLD_REMOTE_URL }}
remote-auth: ${{ env.TINYMOLD_REMOTE_AUTH }}
remote-signing-key: ${{ env.TINYMOLD_REMOTE_SIGNING_KEY }}
diff --git a/scripts/ci/self-hosted/prune-coverage-binaries.sh b/scripts/ci/self-hosted/prune-coverage-binaries.sh
index f474c93c6a..d0ae63157c 100755
--- a/scripts/ci/self-hosted/prune-coverage-binaries.sh
+++ b/scripts/ci/self-hosted/prune-coverage-binaries.sh
@@ -10,7 +10,8 @@
# the 160 GB disk without it. The profiles go too: lcov-core.info already holds
# them, and a later `cargo llvm-cov report` must not merge profiles whose
# binaries are gone. diff-cover unions ci-out/lcov/*.info, so the result is the
-# same.
+# same. This only frees space because Tinymold does not keep those executables
+# (`max-executable-size` in ci-lanes.yml); a stored copy shares the inode.
set -euo pipefail
dir="${1:?usage: prune-coverage-binaries.sh <coverage-target-dir>}"
log() { echo "[ci][prune-coverage] $*"; }