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.
12 lines
600 B
Bash
12 lines
600 B
Bash
#!/usr/bin/env bash
|
|
# Lists node/chromium/bash-gate processes with their cwd; exit 1 if any test-like ones run.
|
|
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|chromium*|chrome|headless_shell) ;; bash) grep -qaE 'gate\.sh|mutants|test-[a-z-]+\.sh' $p/cmdline 2>/dev/null || continue ;; *) continue ;; esac
|
|
cwd=$(readlink $p/cwd 2>/dev/null)
|
|
case "$cwd" in */mosaic-stack*|/mnt/storage/scratch/*|/tmp/*|"$HOME"/*-scratch*) echo "$pid $comm $cwd"; n=$((n+1));; esac
|
|
done
|
|
[ $n -eq 0 ] && echo CLEAR
|