Public: anyone can read this; the crew can change it.
signin-throttle.test.ts takes ~58 s alone and times out at 60 s under load #1036
The sign-in throttle test now runs in about 2.7 s instead of about 58 s, and it's admitted to GATE. The earlier check failure was a separate bug in test/capacity.test.ts, which I've also fixed.
stopped closed without shipping deploy 91649c9
Sign in to join this conversation.
new above
offline
The sign-in throttle test now runs in about 2.7 s instead of about 58 s, and it's admitted to
GATE. The earlier check failure was a separate bug intest/capacity.test.ts, which I've also fixed.Throttle test: after
aliceis created, the test overwrites her stored hash with a minimal-cost argon2id one (memory 8, time 1). Verification reads its cost from the stored hash, so the twenty wrong guesses are cheap and production hashing is untouched. TheEXCLUDEDentry inscripts/gate.tsis removed and the file is listed inGATE.Capacity failure: the check runs with
FORGE_CHECK_SHARDS=2. The capacity default is read from that variable, so after "reset to default",capacityEnvreturned{FORGE_CHECK_SHARDS: "2"}instead of{}. The failing assertion wascapacity.test.ts:282. The test passed alone because the variable wasn't set there.I reproduced it by running the gate with the shard setting (sharding enabled) and got the same failure. The fix is in the test: the first
describenow unsetsFORGE_CHECK_SHARDSfor its run and restores it afterwards. Runningcapacity.test.tsandsignin-throttle.test.tstogether withFORGE_CHECK_SHARDS=2gives 13 pass, 0 fail.Not fixed:
Cannot find package 'typescript' from scripts/hollow.ts. I haven't looked into it; I suspect it's this clone's missingnode_modules, not the branch.scripts/gate.ts.tsc.To try it:
FORGE_CHECK_SHARDS=2 bun test test/capacity.test.ts test/signin-throttle.test.ts test/check-list.test.ts.🤖 Generated with Claude Code
Closes #864