Traffic guide rendered empty since 2026-10-28: a // comment inside the network filter one-liner swallowed the return and the closing brackets, so traffic-guide.js failed to parse (Marty saw it on his phone 2026-10-29). Comment moved out, ?v=20261029b. QA: node --check syntax gate on every script in every run.sh mode; /traffic-guide, /refuel and /conversion-tracking added to the public walk
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -36,6 +36,19 @@ stop_local() { # $1 = port
|
||||
rm -rf "$TMP-$1"
|
||||
}
|
||||
|
||||
# Syntax gate, every mode (2026-10-29): /traffic-guide shipped with a parse error in traffic-guide.js (a // comment inside a
|
||||
# one-liner) and rendered empty for everyone for a day. node --check costs nothing and catches it before any walk runs.
|
||||
syntax_gate() {
|
||||
local bad=0 f
|
||||
for f in *.js lib/*.js public/*.js public/assets/*.js; do
|
||||
[ -f "$f" ] || continue
|
||||
node --check "$f" 2>"$OUT/syntax.err" || { echo "[bug] SYNTAX $f :: $(grep -m1 -E 'Error' "$OUT/syntax.err")"; bad=1; }
|
||||
done
|
||||
rm -f "$OUT/syntax.err"
|
||||
[ "$bad" = 0 ] && echo "syntax gate: every script parses" || status=1
|
||||
}
|
||||
syntax_gate
|
||||
|
||||
if [ "$MODE" = "public" ]; then
|
||||
node qa/walk.mjs public || status=1
|
||||
elif [ "$MODE" = "fuel" ]; then
|
||||
|
||||
Reference in New Issue
Block a user