Files
jason.woltje 4ff4f44c98 lead: commit researcher's untracked evidence (1406 files: queue-101 queue-105 queue-128 queue-134 queue-143 queue-148 queue-183 queue-228)
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.
2026-11-02 15:05:14 -06:00

24 lines
1.3 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# Row 148 (#1642): the gate the brief names (webui, bus, cli and project suites and every scripts/test-*.sh),
# plus the other node suites, run in the given worktree, every output teed to <outdir>.
# The compose project is named q148r3 so the one network the Docker suite leaves is mine to remove.
# Usage: suites.sh <worktree> <outdir>
set -u -o pipefail
WT=$(cd "$1" && pwd); OUT=$(mkdir -p "$2" && cd "$2" && pwd)
cd "$WT" || exit 2
export COMPOSE_PROJECT_NAME=q148r3
docker network ls --format '{{.Name}}' | sort > "$OUT/networks-before.txt"
cleanup() { docker network rm q148r3_default >/dev/null 2>&1; docker network ls --format '{{.Name}}' | sort > "$OUT/networks-after.txt"; }
trap cleanup EXIT
node_suite() { # name dir
setsid -w timeout -k 10 900 node --test "$2"/tests/*.test.mjs 2>&1 | tee "$OUT/$1.txt" >/dev/null
echo "$1: rc=${PIPESTATUS[0]} $(grep -E '^ℹ (tests|pass|fail) ' "$OUT/$1.txt" | tr '\n' ' ')"
}
for d in project bus cli webui business mosaic plugins tasks harness seat; do node_suite $d packages/$d; done
for s in scripts/test-*.sh; do
n=$(basename "$s" .sh)
setsid -w timeout -k 10 1800 bash "$s" 2>&1 | tee "$OUT/$n.txt" >/dev/null
echo "$n: rc=${PIPESTATUS[0]} $(grep -iE 'passed|PASS|ok' "$OUT/$n.txt" | tail -1)"
done
echo done