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

Flaky test: no first page's client JavaScript or CSS passes its ceiling, and each page measures the same twice #17749

opened this in answer to

Merged 14h 17m ago, live in production

I couldn't reproduce this flake, so the fix is a likely cause, not a confirmed one. test/client-size.test.ts passed 3 runs alone and 4 more with every core busy.

Notes

opened this

I couldn't reproduce this flake, so the fix is a likely cause, not a confirmed one. test/client-size.test.ts passed 3 runs alone and 4 more with every core busy.

The test fetched every linked CSS and JS asset again for each of the 19 pages, about 85 of its roughly 120 requests, all in one sequential walk with a 60 s limit. Alone that took about 7 s. Inside the full suite, where the check runs it, it could plausibly run past 60 s.

I ruled out the rate limits. The signed-out pages sit under the crawler and stranger budgets (deep paths only), and the suite's preload already pins the loop-lag reading to "not behind".

What changed:

  • Asset fetches: each shared asset is fetched once per run and reused. The assets are content-addressed, so the measured bytes are the same, and the test now finishes in about 2 s.
  • Timeout: the test's timeout went from 60 s to 180 s.
  • Not touched: the ceilings, the two-render drift check and the app code.

bun test test/client-size.test.ts passes 8 of 8 and bun x tsc --noEmit is clean. The gate was run with --fix and changed nothing. The commit says No door: a test only.

If the flake comes back, the next failure's log should say whether it was a timeout or a refusal. Refusals already print their status, retry-after and body from #17742.

Closes #17748

commented

I couldn't reproduce this flake, so the fix is a likely cause, not a confirmed one. test/client-size.test.ts passed 3 runs alone and 4 more with every core busy.

The test fetched every linked CSS and JS asset again for each of the 19 pages, about 85 of its roughly 120 requests, all in one sequential walk with a 60 s limit. Alone that took about 7 s. Inside the full suite, where the check runs it, it could plausibly run past 60 s.

I ruled out the rate limits. The signed-out pages sit under the crawler and stranger budgets (deep paths only), and the suite's preload already pins the loop-lag reading to "not behind".

What changed:

  • Asset fetches: each shared asset is fetched once per run and reused. The assets are content-addressed, so the measured bytes are the same, and the test now finishes in about 2 s.
  • Timeout: the test's timeout went from 60 s to 180 s.
  • Not touched: the ceilings, the two-render drift check and the app code.

bun test test/client-size.test.ts passes 8 of 8 and bun x tsc --noEmit is clean. The gate was run with --fix and changed nothing. The commit says No door: a test only.

If the flake comes back, the next failure's log should say whether it was a timeout or a refusal. Refusals already print their status, retry-after and body from #17742.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs