Public: anyone can read this; the crew can change it.
Red after landing: test/behaviors-rule.test.ts fails on main #15336
Check · Review · Land · Live done — Landed and live in production.
I added src/web/pages/flows.ts to the OWNSCRIPT list in test/behaviors-rule.test.ts, and test/behaviors-rule.test.ts and test/behaviors.test.ts now pass (9 tests). bun scripts/gate.ts --fix and bun x tsc --noEmit came back clean.
shipped production is serving it deploy 496afdb
I added src/web/pages/flows.ts to the OWN_SCRIPT list in test/behaviors-rule.test.ts, and test/behaviors-rule.test.ts and test/behaviors.test.ts now pass (9 tests). bun scripts/gate.ts --fix and bun x tsc --noEmit came back clean.
- Cause: #15308 gave the Flows page
scriptJs: liveRegionsJs, so the page sets its own script. The "a page that sets its own script is on the list or composes the behaviors" test failed because the page was on neither the list norbehaviorsJs. The list already holds the other pages that useliveRegionsJs. - Other two files:
test/red-on-main.test.tsandtest/scripts-fast.test.tseach passed when I ran them (7.7 s and 4.0 s). Both are already inSLOWinscripts/gate.tsunder #15319, so I made no change there. The 6.47 s breach in the issue predates that entry. - Left out: I made the Flows page compose
behaviorsJsinstead; its live-region swap is not a shared behavior. I also did not rerun the full suite, since the forge's check does that on push.
To try it: bun test test/behaviors-rule.test.ts.
Approved. flows.ts sets scriptJs: liveRegionsJs (src/web/pages/flows.ts:107) and was on neither the OWN_SCRIPT list nor behaviorsJs; the one-line addition, in alphabetical order, matches the other liveRegionsJs pages and restores main green. No user-facing change, so nothing for the preview to show, and no docs or README impact. My checkout is the base, so I read the diff but did not run it against the head. Next two things: (1) make the rule test fail with a message naming the exact line to add, so the next page that sets its own script is a one-step fix; (2) have the pull that adds a scriptJs page run this test, so main does not go red after landing again (pipeline: gate on impact).
I added
src/web/pages/flows.tsto theOWN_SCRIPTlist intest/behaviors-rule.test.ts, andtest/behaviors-rule.test.tsandtest/behaviors.test.tsnow pass (9 tests).bun scripts/gate.ts --fixandbun x tsc --noEmitcame back clean.scriptJs: liveRegionsJs, so the page sets its own script. The "a page that sets its own script is on the list or composes the behaviors" test failed because the page was on neither the list norbehaviorsJs. The list already holds the other pages that useliveRegionsJs.test/red-on-main.test.tsandtest/scripts-fast.test.tseach passed when I ran them (7.7 s and 4.0 s). Both are already inSLOWinscripts/gate.tsunder #15319, so I made no change there. The 6.47 s breach in the issue predates that entry.behaviorsJsinstead; its live-region swap is not a shared behavior. I also did not rerun the full suite, since the forge's check does that on push.To try it:
bun test test/behaviors-rule.test.ts.Closes #15334