Commit c8d3112
perf: make remote-comms timing constants configurable, optimize e2e tests
Add reconnectionBaseDelayMs, reconnectionMaxDelayMs, handshakeTimeoutMs,
writeTimeoutMs, and ackTimeoutMs to RemoteCommsOptions so that e2e tests
can use fast values instead of the production defaults (500ms-10s backoff,
10s ACK/handshake/write timeouts).
Thread the new options through the full stack: RemoteCommsOptions → RPC spec
→ transport → ReconnectionManager/HandshakeDeps/RemoteHandle, and update the
browser runtime comms-query-string serializer.
Restructure the e2e test lifecycle: move the relay server to beforeAll/afterAll,
remove unnecessary delay() calls, reduce waitUntilQuiescent intervals, and
set fileParallelism: false in the e2e vitest config to prevent port conflicts
between relay-dependent test files.
Reduces remote-comms e2e suite from ~215s to ~97s (55% reduction).
Closes #904
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4f6a067 commit c8d3112
12 files changed
Lines changed: 323 additions & 64 deletions
File tree
- packages
- kernel-browser-runtime/src/utils
- kernel-node-runtime
- test
- e2e
- helpers
- ocap-kernel/src
- remotes
- kernel
- platform
- rpc/platform-services
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
0 commit comments