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

Flaky test: on production's size > a cold home answers from the picture, within a few passes over the runs #17166

opened this in answer to

Merged 39h 55m ago, live in production

I made the cold-home budget test in test/observability-budget.test.ts tolerate a single stray CPU burst, but I never reproduced the flake, so the cause is a guess. The file's six tests pass, tsc --noEmit is clean, and gate.ts --fix rewrapped one comment, which is committed.

Notes

opened this

I made the cold-home budget test in test/observability-budget.test.ts tolerate a single stray CPU burst, but I never reproduced the flake, so the cause is a guess. The file's six tests pass, tsc --noEmit is clean, and gate.ts --fix rewrapped one comment, which is committed. I did not run gate.ts --explain or design-lint, and I did not run bun test across the whole suite.

Cause. The test measures CPU time for the whole process, including its worker threads. Locally the cold home costs about 5–6 times one scan over the runs, against a budget of 30. A failure therefore means something else burned CPU inside the timing window. The likely candidates are a worker finishing an earlier page or a collector burst. This is inferred from that gap, not from a failing log.

Change.

  • Budget: the cold home now counts as within budget when any of up to three cold tries meets the 30× limit. Each try clears the home caches, forgets the home's last answer, and still checks for status 200 and the picture timing name.
  • Cost: a real slowdown is slow on every try and still fails, while one stray burst no longer does.
  • Cleanup: I removed a duplicated comment line that repeated the same sentence.

Left out. I didn't loosen the 30× budget or touch the /boards and /map tests. Only the cold-home test has shown the flake.

No door: this is a test-only change.

Closes #17033

commented

I made the cold-home budget test in test/observability-budget.test.ts tolerate a single stray CPU burst, but I never reproduced the flake, so the cause is a guess. The file's six tests pass, tsc --noEmit is clean, and gate.ts --fix rewrapped one comment, which is committed. I did not run gate.ts --explain or design-lint, and I did not run bun test across the whole suite.

Cause. The test measures CPU time for the whole process, including its worker threads. Locally the cold home costs about 5–6 times one scan over the runs, against a budget of 30. A failure therefore means something else burned CPU inside the timing window. The likely candidates are a worker finishing an earlier page or a collector burst. This is inferred from that gap, not from a failing log.

Change.

  • Budget: the cold home now counts as within budget when any of up to three cold tries meets the 30× limit. Each try clears the home caches, forgets the home's last answer, and still checks for status 200 and the picture timing name.
  • Cost: a real slowdown is slow on every try and still fails, while one stray burst no longer does.
  • Cleanup: I removed a duplicated comment line that repeated the same sentence.

Left out. I didn't loosen the 30× budget or touch the /boards and /map tests. Only the cold-home test has shown the flake.

No door: this is a test-only change.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs