Skip to content

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

chore(ci): make coverage binary pruning script executable

Steven Enamakel143174f7e63b
diff --git a/scripts/ci/self-hosted/prune-coverage-binaries.sh b/scripts/ci/self-hosted/prune-coverage-binaries.sh
old mode 100644
new mode 100755
index 619cf30d99..f474c93c6a
--- a/scripts/ci/self-hosted/prune-coverage-binaries.sh
+++ b/scripts/ci/self-hosted/prune-coverage-binaries.sh
@@ -24,8 +24,10 @@ while IFS= read -r -d '' file; do
rm -f -- "${file}"
removed=$((removed + 1))
done < <(
+ # <crate>-<16 hex metadata hash> with no extension: test executables.
+ # rlib/rmeta/so/d files and build-script dirs keep their names.
find "${dir}" -type f -path '*/deps/*' -perm -u+x \
- -regex '.*/deps/[A-Za-z0-9_]+-[0-9a-f]\{16\}' -print0
+ -name '*-[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]' ! -name '*.*' -print0
)
profiles=0
while IFS= read -r -d '' file; do