test(vloer): give the relay test's timed exec a load-scaled budget #214
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ryangr0/fix/vloer-relay-timeout-headroom"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The relay test "an exec subprocess group is stopped when its relay request is cancelled or its timeout passes" fails intermittently on the loaded Forgejo runners. It failed
checkson #207 and #212, with1 !== 2attest/relay.test.ts:183.Cause
The timed part runs the child-plus-grandchild program with a fixed
timeoutMs: 500. It then asserts that both had written before the timeout stopped them, which shows that the timeout path stops a real process group. On a starved runner the grandchild, a second Node process, can take longer than 500 ms to start, so only the child had written. Every other bound in the file scales withVLOER_TEST_TIMEOUT_SCALE(test/timeframes.ts); this one did not.Change
timeoutMs: scaledTimeout(2_000): 2 s locally, 4 s in CI. The assertion is unchanged.Evidence
nice 10next to a busy loop, withVLOER_TEST_TIMEOUT_SCALE=2as in CI. The old test failed 4 of 4 runs at the same assertion (0 !== 2); with this change it passed 6 of 6.mise run verifywith result reuse: all gates passed.The test came from #184 (yesterday) and is unrelated to the Ploeg separation. It can fail any
checksrun, includingdevelopment's.🤖 Generated with Claude Code
ec25bc6aada05d94726f