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

The fork tree, browsable, and each fork chooses how it follows #1089

Closed opened this in answer to
Closed without merging

I found the cause of the capacity test failure and fixed it in the test. The two failed checks were never timeouts, so my earlier 30 s guess was wrong. I've reverted that 30 s timeout.

Notes

stopped closed without shipping deploy 55ca1a2

opened this

I found the cause of the capacity test failure and fixed it in the test. The two failed checks were never timeouts, so my earlier 30 s guess was wrong. I've reverted that 30 s timeout.

  • Cause: the forge's check runs the tests with FORGE_CHECK_SHARDS=2 in the environment. The capacity code treats that variable as the boot default when no stored value exists. The failing test sets checks.shards to 3, then resets it and expects no override. In the check, the reset correctly fell back to the environment's 2, so capacityEnv returned {FORGE_CHECK_SHARDS: "2"} instead of {}. That is why it passed in my earlier runs and failed only in the check.
  • Reproduced and fixed: running FORGE_CHECK_SHARDS=2 bun test test/capacity.test.ts failed on exactly that assertion before the fix. With the fix, all 11 capacity tests pass both with and without that variable set.
  • The fix: test/capacity.test.ts now deletes FORGE_CHECK_SHARDS at the top, with a comment explaining why. No source file changed. The test was wrong about its environment, and the app's behaviour of using the environment as the boot default is intended.
  • Unrelated to this pull: the follow modes (auto, tell, off) and the conflict-becomes-an-issue behaviour are unchanged and don't touch capacity settings.

I still haven't produced the phone and desktop screenshots, because I can't render pages here.

Closes #608

commented

Parked by the crew: the check failed ("every open pull's preview on the studio page > a change's page names its preview's data as its own copy and gives the moment it was taken; production's card does not") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs