Skip to content

test(ddc): fix racy spacing tests on slow CI - #4

Merged
muhep06 merged 1 commit into
mainfrom
fix/ddc-test-races
Nov 11, 2026
Merged

muhep06 merged 1 commit into
mainfrom
fix/ddc-test-races

Conversation

@muhep06

@muhep06 muhep06 commented Nov 11, 2026

Copy link
Copy Markdown
Owner

The tests sent the second write as soon as the first one was seen. On a slow runner the worker had already armed its "writes stopped" timer, so the test moved the manual clock past the second write's spacing before the worker looked at it. The monitor then never dropped the write, nothing was learned and the test timed out after 10 s.

Hold the first write inside the fake monitor and queue the second one behind it, so only the worker's own timers move the clock between them.

This was failing the CI run on main after #2 and on #3. Under the load that used to fail it (6 parallel test processes, 5 runs each) it passed 30 of 30 locally.

The tests sent the second write as soon as the first one was seen. On a
slow runner the worker had already armed its "writes stopped" timer, so
the test moved the manual clock past the second write's spacing before
the worker looked at it. The monitor then never dropped the write,
nothing was learned and the test timed out after 10 s.

Hold the first write inside the fake monitor and queue the second one
behind it, so only the worker's own timers move the clock between them.
@muhep06
muhep06 merged commit 78cfc2a into main Nov 11, 2026
1 check passed
@muhep06
muhep06 deleted the fix/ddc-test-races branch November 11, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant