Unclaimed files left in the canonical checkout. Inventory: canonical-cleanup-inventory.md (commit-as-evidence groups). detect-secrets scan clean on 2026-11-02: hits are sha256 pins, git object ids, test sentinels already in tracked tests and unit-file lines.
16 lines
663 B
Bash
16 lines
663 B
Bash
#!/usr/bin/env bash
|
|
# sage-1205: count test runners and gate/mutant scripts, not seat or live-service nodes.
|
|
n=0
|
|
for p in /proc/[0-9]*; do
|
|
pid=${p#/proc/}; [ "$pid" = "$$" ] && continue
|
|
comm=$(cat "$p/comm" 2>/dev/null) || continue
|
|
case "$comm" in
|
|
node|node-*) grep -qazE -- '^--test($|=)' "$p/cmdline" 2>/dev/null || continue ;;
|
|
bash|python|python3) grep -qazE '(^|/)(gate[^/ ]*\.sh|mutants[^/ ]*\.py)' "$p/cmdline" 2>/dev/null || continue ;;
|
|
*) continue ;;
|
|
esac
|
|
cwd=$(readlink "$p/cwd" 2>/dev/null)
|
|
case "$cwd" in */mosaic-stack*|/mnt/storage/scratch/*|/tmp/*) echo "$pid $comm $cwd"; n=$((n+1));; esac
|
|
done
|
|
[ "$n" -eq 0 ] && echo CLEAR
|