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.
21 lines
1.2 KiB
Bash
Executable File
21 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
||
# Row 150 (#1644) round 2, the rebase onto 63c82f1c4 (sage-0575). Single files only, each run
|
||
# on its own: the new mark-read test, the bus files beside the broker's `replies` and
|
||
# `message.read` verbs plus row 139's hard-waits test, and webui send-browser. Sage's full gate
|
||
# at landing covers the rest. Usage: gate.sh <worktree> <logdir>
|
||
set -uo pipefail
|
||
WT=$(cd "$1" && pwd -P); LOGS=$(mkdir -p "$2" && cd "$2" && pwd -P)
|
||
export TMPDIR="$HOME/darkwing-scratch/r150/tmp"; mkdir -p "$TMPDIR"
|
||
echo "base $(git -C "$WT" rev-parse --short HEAD) start $(date -u +%H:%M:%S)"
|
||
for f in packages/cli/tests/mark-read.test.mjs packages/bus/tests/replies.test.mjs \
|
||
packages/bus/tests/messages.test.mjs packages/bus/tests/threads.test.mjs \
|
||
packages/bus/tests/hard-waits.test.mjs packages/webui/tests/send-browser.test.mjs; do
|
||
d=${f%%/tests/*}; name=$(basename "$d")-$(basename "$f" .test.mjs); log="$LOGS/$name.log"
|
||
start=$(date -u +%H:%M:%S)
|
||
(cd "$WT/$d" && timeout 600 node --test "tests/$(basename "$f")") > "$log" 2>&1
|
||
rc=$?
|
||
echo "$name rc=$rc $start-$(date -u +%H:%M:%S) $(grep -E 'ℹ (pass|fail|skipped) ' "$log" | tr '\n' ' ')"
|
||
if [ $rc -ne 0 ]; then echo "STOP $name"; exit 1; fi
|
||
done
|
||
echo "ROUND_PASSED $(date -u +%H:%M:%S)"
|