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

Budget tests run only after merge: a pull's fast check should run them #14318

shipped production is serving it opened this has it

Landed in pull #14331 · run

opened this

Three times on 2026-11-17 a pull passed its check and then turned main red on a budget test, and the release job held each time:

  • #14305 → test/pages-budget.test.ts (three routes one SQL statement over), fixed in #14309
  • #14310 → test/docs-link.test.ts (/docs index 165 B over), fixed in #14315
  • #14314 → test/client-size.test.ts (next-up CSS 53 B over), fixed in #14317

The release gate's always-run set includes pages-budget, client-size and the size tests, but a pull's fast tier (scripts/test-shards.ts --tier fast --diff) selects tests by the files a pull touches, and these budgets are affected by shared code (layout, styles, the router) that the diff selection does not map to them.

Done when a pull that changes src/web/layout.ts, src/web/style/*, src/http/server.ts or any page module runs test/pages-budget.test.ts, test/client-size.test.ts and test/docs-link.test.ts in its own check, and a budget breach fails the pull instead of main.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs