Round 1 is a code and test review and won't land. land-work fails at BASE on the read.mjs 3b pin, which row 49 removes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
31 lines
1.7 KiB
Bash
31 lines
1.7 KiB
Bash
#!/bin/bash
|
||
# Row 121 (#1615) targeted builder gate (decision 136). The four owned
|
||
# packages in full, plus every package and script whose source or tests
|
||
# import a changed module: harness (runner, tools, gate), plugins (loader
|
||
# test), tasks, webui (bus, cli, reads) and scripts/land-work (read.mjs opens
|
||
# the bus schema). cli/tests/stack-copy.test.mjs covers scripts/stack-copy.sh.
|
||
set -o pipefail
|
||
G=~/darkwing-scratch/r121/wt
|
||
OUT=~/darkwing-scratch/r121/pkt/gate
|
||
mkdir -p "$OUT"
|
||
cd "$G" || exit 9
|
||
[ -d "$G/node_modules" ] || { echo "STOP no node_modules in $G"; exit 8; }
|
||
for f in packages/bus/tests/threads.test.mjs packages/cli/tests/thread-launch.test.mjs packages/cli/tests/fixtures/thread-adapter.mjs scripts/test-land-work.sh; do
|
||
[ -f "$f" ] || { echo "STOP missing $f"; exit 7; }
|
||
done
|
||
echo "base $(git rev-parse --short HEAD) start $(date -u +%H:%M:%S)"
|
||
run() { local name="$1" dir="$2" cmd="$3"
|
||
(cd "$G/$dir" && TMPDIR=~/darkwing-scratch/r121/tmp bash -c "$cmd") > "$OUT/$name.log" 2>&1; local rc=$?
|
||
echo "$name rc=$rc $(grep -E '^ℹ (pass|fail|skipped) [0-9]+' "$OUT/$name.log" | tr '\n' ' ')"
|
||
[ $rc -eq 0 ] || { echo "STOP $name"; exit $rc; }; }
|
||
run pkg-bus packages/bus 'node --test tests/*.test.mjs'
|
||
run pkg-seat packages/seat 'node --test tests/'
|
||
run pkg-cli packages/cli 'node --test tests/*.test.mjs'
|
||
run pkg-business packages/business 'node --test tests/'
|
||
run pkg-harness packages/harness 'node --test tests/*.test.mjs'
|
||
run pkg-plugins packages/plugins 'node --test tests/'
|
||
run pkg-tasks packages/tasks 'node --test tests/*.test.mjs'
|
||
run pkg-webui packages/webui 'node --test tests/'
|
||
run land-work . 'bash scripts/test-land-work.sh'
|
||
echo "GATE_PASSED $(date -u +%H:%M:%S)"
|