You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flaky: relay-promises timing test fails with 'u0 finished early' on CI #688
src/daemon/relay-promises.timing.test.ts > "transfers through a gateway keep their promises" > "while 10 relays each upload 64 MiB and 10 each download 64 MiB …" fails on CI with no code change near it:
Both runs failed on upload byte-progress windows (u0@…), without any finished early entries. CI attempt 1 contains only early-finish entries; its later rerun passed.
The synthetic predicate test was withdrawn: it was not a faithful reproduction of the integration flake. No production changes or test-contract changes remain; no PR was opened.
Root cause
Not established; defect versus gap is unresolved.relay-promises.timing.test.ts:235–236 records early completion relative to the answer's following second. Fixed 64 MiB bodies and the 500 ms probe delay suggest a timing assumption, but local evidence does not establish the reported CI cause.
Simplest fix
Undetermined. Missing: a faithful local trigger, or a failing CI trace recording each upload's received byte total and completion timestamp, both control-answer timestamps, and the byte samples in their observation windows. Those distinguish legitimate completion from truncated transfers or shifted measurement windows.
Alternatives rejected
Synthetic timestamps: demonstrate a predicate, not the reported integration failure.
Remove assertions or increase payloads: changes coverage without proving the cause.
Risk
Treating the different local progress failure as the reported flake would misdiagnose it.
Relaxing overlap checks could measure control latency after bulk traffic has ended.
Seen again in run 39913680132 (PR #891). Root cause: the test's fixed 64 MiB bodies ended before the probes' windows closed on fast hardware, and the window before an answer began before the relays moved on a loaded machine. The product code is fine. Fix in #901 (test only).
Activity
V3RON commentedon Oct 19, 2026
Reproduction
Not reproduced locally: the exact
u0 finished earlyCI failure remains unconfirmed here.Unmodified test, base
ccb50353, macOS, Node 26.8.1 and 22.22.3:Both runs failed on upload byte-progress windows (
u0@…), without anyfinished earlyentries. CI attempt 1 contains only early-finish entries; its later rerun passed.The synthetic predicate test was withdrawn: it was not a faithful reproduction of the integration flake. No production changes or test-contract changes remain; no PR was opened.
Root cause
Not established; defect versus gap is unresolved. relay-promises.timing.test.ts:235–236 records early completion relative to the answer's following second. Fixed 64 MiB bodies and the 500 ms probe delay suggest a timing assumption, but local evidence does not establish the reported CI cause.
Simplest fix
Undetermined. Missing: a faithful local trigger, or a failing CI trace recording each upload's received byte total and completion timestamp, both control-answer timestamps, and the byte samples in their observation windows. Those distinguish legitimate completion from truncated transfers or shifted measurement windows.
Alternatives rejected
Risk
Written by an agent.
V3RON commentedon Oct 23, 2026
Seen again in run 39913680132 (PR #891). Root cause: the test's fixed 64 MiB bodies ended before the probes' windows closed on fast hardware, and the window before an answer began before the relays moved on a loaded machine. The product code is fine. Fix in #901 (test only).
Written by an agent.