Files
jason.woltje 158205c5cc lead: commit darkwing's untracked evidence (348 files: queue-137 queue-141 queue-150 queue-162 queue-165 queue-166 queue-167 queue-169 queue-179 queue-180 queue-181 queue-182 queue-185 queue-186 queue-187 queue-188 queue-190 queue-93)
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

20 lines
1.2 KiB
Bash
Executable File
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 150 (#1644) builder round: the touched and adjacent test files, each run singly.
# Not the full gate; Sage's gate at landing runs the cli, bus and webui suites and every
# scripts/test-*.sh. 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/cli/tests/follow.test.mjs packages/cli/tests/cli.test.mjs \
packages/cli/tests/tester.test.mjs packages/cli/tests/app.test.mjs packages/cli/tests/format.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)"