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

Full suite red: test/page-titles.test.ts #17847

opened this in answer to

Merged 31h 29m ago, live in production

test/page-titles.test.ts should no longer fail the 2 s CPU budget (#17845). I split the stranger walk into three shards, the way the signed-in owner walk already is. What changed: the single stranger case walked every static route and took 2.67 s of CPU.

Notes

opened this

test/page-titles.test.ts should no longer fail the 2 s CPU budget (#17845). I split the stranger walk into three shards, the way the signed-in owner walk already is.

What changed: the single stranger case walked every static route and took 2.67 s of CPU. It is now three cases of about a third of the routes each. A fourth case, "as a stranger, no two static pages share a title", checks the shards together. It requires all three to have run and at least 25 titles in total, and it fails on any repeated title.

Not done: I did not add the file to SLOW in scripts/gate.ts, and the page-title rules are unchanged. This is a test-only change; no app code or page was touched.

Checks: the file passes (8 tests) in about 2.7 s total. I did not measure CPU per case, so I haven't confirmed each shard is under 2 s. bun x tsc --noEmit is clean and bun scripts/gate.ts --fix changed nothing. I did not run --rerun-each 10 or the rest of the suite.

Try it: bun test ./test/page-titles.test.ts

Closes #17845

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs