Files
stack/agents/dewey/work/queue-90/gate.sh
T

23 lines
1.2 KiB
Bash
Raw 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.
#!/bin/bash
# Row 90 gate: build.patch applied to a fresh detached worktree of the base, the manifest
# checked, then each package's node suite from its own directory and every scripts/test-*.sh,
# sequential, output kept per suite.
cd $HOME/dewey-scratch/r90gate || exit 9
export TMPDIR=$HOME/dewey-scratch/tmp
OUT=$HOME/dewey-scratch/r90-out/gate
mkdir -p $OUT
S=$OUT/../gate-summary.txt
echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ) base $(git rev-parse HEAD)" > $S
echo "manifest $(sha256sum -c $HOME/dewey-scratch/r90-out/candidate-manifest.sha256 2>&1 | grep -c ': OK$')/$(wc -l < $HOME/dewey-scratch/r90-out/candidate-manifest.sha256) OK" >> $S
for p in tasks bus harness webui cli business seat control-board; do
case $p in seat|webui) a=(tests/);; *) a=(tests/*.test.mjs);; esac
(cd packages/$p && node --test "${a[@]}") > $OUT/node-$p.log 2>&1; rc=$?
echo "node $p rc=$rc $(grep -E '^ℹ (tests|pass|fail)' $OUT/node-$p.log | tr '\n' ' ')" >> $S
done
for f in scripts/test-*.sh; do
n=$(basename $f .sh)
if [ "$n" = test-task ]; then DOCKER_HOST=unix:///nonexistent bash $f > $OUT/$n.log 2>&1; else bash $f > $OUT/$n.log 2>&1; fi; rc=$?
echo "$n rc=$rc $(tail -1 $OUT/$n.log | cut -c1-120)" >> $S
done
echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)" >> $S