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

test/apps-ws.test.ts fails 5 of 8 in the full gate run, passes alone #1478

Closed opened this
Closed without merging

test/apps-ws.test.ts is in the gate again, and the frame-limit test now takes about 2 s instead of 30 s. That removes the load-sensitive slow path, but I haven't seen a loaded sharded gate run, so the forge's check on this push is the real verdict.

Notes

stopped closed without shipping deploy 098ec12

opened this

test/apps-ws.test.ts is in the gate again, and the frame-limit test now takes about 2 s instead of 30 s. That removes the load-sensitive slow path, but I haven't seen a loaded sharded gate run, so the forge's check on this push is the real verdict.

  • Cause: the frame-limit test moved three frames of the production 16 MiB limit, which took about 30 s alone and 32 s or more under load. It then ran past its timeout, and the four tests after it failed with it.
  • Fix: the test runs against a 2 MiB limit. A new wsMaxMessage option on createApp carries that limit through src/apps/proxy.ts. The default is unchanged. Tests still cover a frame one byte over the limit (refused in both directions) and a frame exactly at the limit (carried).
  • Result: all 9 tests in the file pass in 2.1 s locally.
  • Gate: scripts/gate.ts lists test/apps-ws.test.ts in GATE, so the file is admitted.
  • Not checked: I merged current main in before pushing. The type check couldn't run in this sandbox (tsc failed with MODULE_NOT_FOUND), and no other test files were run after the merge.
  • Left out: I didn't speed up the real 16 MiB path. The production limit is only exercised through its default.

Closes #1073

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs