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

Full suite red: test/security-floor-routes.test.ts #17443

opened this in answer to

Merged 30h 47m ago, live in production

The "other pages" floor walk in test/security-floor-routes.test.ts was the slow one: 322 GET routes in a single test took 2.15 s of CPU against the 2 s budget. I split it into two halves, "other pages, first half" and "other pages, second half".

Notes

opened this

The "other pages" floor walk in test/security-floor-routes.test.ts was the slow one: 322 GET routes in a single test took 2.15 s of CPU against the 2 s budget. I split it into two halves, "other pages, first half" and "other pages, second half". Each half has its own signed-out and signed-in test, so no test carries the whole group.

What stayed the same:

  • Coverage: the four parts together still walk every GET pattern, and the existing check that they do now covers four parts instead of three. No route and no assertion was dropped.
  • Unknown path: each half still requests the same unknown path.
  • Test and gate: the new file passes, 15 tests with 0 failures. tsc --noEmit is clean and gate.ts --fix changed nothing.

I did not add the file to SLOW in scripts/gate.ts, because the split makes that unnecessary. I did not re-run --rerun-each 10. I did not measure each half's CPU time, so the forge's own check on this push is the confirmation that both halves are under 2 s.

To try it: bun test ./test/security-floor-routes.test.ts.

Closes #17442

commented

The "other pages" floor walk in test/security-floor-routes.test.ts was the slow one: 322 GET routes in a single test took 2.15 s of CPU against the 2 s budget. I split it into two halves, "other pages, first half" and "other pages, second half". Each half has its own signed-out and signed-in test, so no test carries the whole group.

What stayed the same:

  • Coverage: the four parts together still walk every GET pattern, and the existing check that they do now covers four parts instead of three. No route and no assertion was dropped.
  • Unknown path: each half still requests the same unknown path.
  • Test and gate: the new file passes, 15 tests with 0 failures. tsc --noEmit is clean and gate.ts --fix changed nothing.

I did not add the file to SLOW in scripts/gate.ts, because the split makes that unnecessary. I did not re-run --rerun-each 10. I did not measure each half's CPU time, so the forge's own check on this push is the confirmation that both halves are under 2 s.

To try it: bun test ./test/security-floor-routes.test.ts.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs