Files
stack/agents/darkwing/work/queue-91/r3/gate.sh
T

25 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.
#!/usr/bin/env bash
# Row 91 round 3 gate on 2b2a9e14 plus build.patch: the seat, cli, bus,
# harness and tasks node suites (each package's own test files, from its
# directory), then every scripts/test-*.sh, sequential, full output kept.
# Docker is off for the whole run.
cd ~/darkwing-scratch/r91r3/wt2 || exit 2
W=$PWD
export TMPDIR=~/darkwing-scratch/r91r3/tmp
export DOCKER_HOST=unix:///nonexistent
O=~/darkwing-scratch/r91r3/gate
mkdir -p "$O" "$TMPDIR"
echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ) $(git rev-parse --short HEAD) staged=$(git diff --cached --name-only | wc -l)"
sha256sum -c --quiet ~/darkwing-scratch/r91r3/pkt/candidate-manifest.sha256 && echo "manifest 8/8 OK" || { echo "manifest mismatch"; exit 3; }
for p in seat cli bus harness tasks; do
s=$(date -u +%T)
(cd "$W/packages/$p" && node --test tests/*.test.mjs) > $O/node-$p.txt 2>&1; rc=$?
echo "$p rc=$rc $s-$(date -u +%T) $(grep -E '^ℹ (pass|fail|skipped)' $O/node-$p.txt | tr '\n' ' ')"
done
for f in scripts/test-*.sh; do
n=$(basename $f .sh); s=$(date -u +%T)
bash $f > $O/$n.txt 2>&1; rc=$?
echo "$n rc=$rc $s-$(date -u +%T) $(tail -1 $O/$n.txt | cut -c1-120)"
done
echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)"