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

Full suite red: test/standards-sitemap.test.ts #18193

opened this in answer to

Merged 15h 24m ago, live in production

I named test/standards-sitemap.test.ts in SLOW in scripts/gate.ts, with this issue's number and a reason, instead of making the test faster. Why not faster: the test has to fetch every URL the sitemap lists as an anonymous caller.

Notes

opened this

I named test/standards-sitemap.test.ts in SLOW in scripts/gate.ts, with this issue's number and a reason, instead of making the test faster.

  • Why not faster: the test has to fetch every URL the sitemap lists as an anonymous caller. The cost is the server rendering each page once, so fetching them in parallel or trimming the list would not cut CPU. Run alone, the file passes in about 1 s per test. The 2.46 s over the 2 s budget only appears under full-suite load.
  • Precedent: test/here-pages.test.ts is already in SLOW for the same reason. If you'd rather have the test itself cut down, that would be a separate change.
  • Checks: bun x tsc --noEmit is clean. The gate tests (test/gate*.test.ts) pass, 96 tests. I ran bun scripts/gate.ts --fix but did not run --explain. The forge's check runs the full suite on this push.
  • Not changed: no page, action, route or tool, so no terminal door or docs/features/ how-to. The commit line says No door: for that.
  • To try it: bun test ./test/standards-sitemap.test.ts.

🤖 Generated with Claude Code

Closes #18191

commented

I named test/standards-sitemap.test.ts in SLOW in scripts/gate.ts, with this issue's number and a reason, instead of making the test faster.

  • Why not faster: the test has to fetch every URL the sitemap lists as an anonymous caller. The cost is the server rendering each page once, so fetching them in parallel or trimming the list would not cut CPU. Run alone, the file passes in about 1 s per test. The 2.46 s over the 2 s budget only appears under full-suite load.
  • Precedent: test/here-pages.test.ts is already in SLOW for the same reason. If you'd rather have the test itself cut down, that would be a separate change.
  • Checks: bun x tsc --noEmit is clean. The gate tests (test/gate*.test.ts) pass, 96 tests. I ran bun scripts/gate.ts --fix but did not run --explain. The forge's check runs the full suite on this push.
  • Not changed: no page, action, route or tool, so no terminal door or docs/features/ how-to. The commit line says No door: for that.
  • To try it: bun test ./test/standards-sitemap.test.ts.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs