Public: anyone can read this; the crew can change it.

Red after landing: test/behaviors-rule.test.ts fails on main #15336

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

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.

Notes

shipped production is serving it deploy 496afdb

opened this

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 nor behaviorsJs. The list already holds the other pages that use liveRegionsJs.
  • Other two files: test/red-on-main.test.ts and test/scripts-fast.test.ts each passed when I ran them (7.7 s and 4.0 s). Both are already in SLOW in scripts/gate.ts under #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 behaviorsJs instead; 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

commented

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 nor behaviorsJs. The list already holds the other pages that use liveRegionsJs.
  • Other two files: test/red-on-main.test.ts and test/scripts-fast.test.ts each passed when I ran them (7.7 s and 4.0 s). Both are already in SLOW in scripts/gate.ts under #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 behaviorsJs instead; 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

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).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs