Commit ea505e1
fix(portal): make S1 fast+deterministic — pin a small chunk instead of streaming a 500k-block chunk
S1 flaked on CI with a 30s timeout. Root cause: the test left PORTAL_CHUNK_BLOCKS
at its 500k default, and the stub server streams one block per request — so
draining the first serviced chunk took ~45k real localhost round-trips (~7s idle,
ballooning past the timeout under CI load). The test's own comment ("one block at
its start") shows small chunks were the intent.
Pin PORTAL_CHUNK_BLOCKS=100 for S1: the same read-ahead + eviction accounting is
exercised in a handful of requests. S1 goes from ~7-19s (30s timeout under load)
to ~320ms, stable across repeated runs under multi-core CPU load.
Also reword the testTimeout comment to match reality (the 30s is general headroom
for the real-backoff head-probe tests + coverage instrumentation, not portal-shell).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent bf50171 commit ea505e1
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
671 | 676 | | |
672 | 677 | | |
673 | 678 | | |
| |||
727 | 732 | | |
728 | 733 | | |
729 | 734 | | |
| 735 | + | |
730 | 736 | | |
731 | 737 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments