Skip to content

fix(net/local): bound release-boundary settle drain in TestReleaseBroadcastChannel - #4284

Merged
piotr-roslaniec merged 1 commit into
reservations-epicfrom
m1/bound-straggler-drain
Sep 3, 2026
Merged

fix(net/local): bound release-boundary settle drain in TestReleaseBroadcastChannel#4284
piotr-roslaniec merged 1 commit into
reservations-epicfrom
m1/bound-straggler-drain

Conversation

@piotr-roslaniec

Copy link
Copy Markdown
Collaborator

Follow-up to #4283.

That PR fixed TestReleaseBroadcastChannel's flake (reproduced pre-existing on clean origin/reservations-epic at the time, ~2/5 failure rate in isolation - #4279's bug, not introduced by #4283's merge) by absorbing the one straggler tick NewTimeTicker's cancel-vs-elapsed-timer race can let through after ReleaseBroadcastChannel.

That fix's settle-window drain discarded its count unchecked, so a genuine regression where the ticker fires more than once after release would only surface at the second, stricter assertion - not at the settle step itself, where the failure is easier to diagnose. This bounds the settle window: at most one straggler, asserted explicitly.

Verified 20/20 locally (go test ./pkg/net/local/... -run TestReleaseBroadcastChannel -count=1, repeated); full go build/go vet/gofmt -l clean.

…eBroadcastChannel

The settle-window drain added to absorb the expected single straggler
tick discarded its count unchecked, so a genuine regression where the
ticker fires more than once after release would only be caught by the
second, stricter window - not at the settle step itself, where it's
easier to diagnose. Assert the settle window sees at most one tick.
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 0949f965-004c-4499-af1a-948fa7fcf146

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@piotr-roslaniec
piotr-roslaniec merged commit a38e85e into reservations-epic Sep 3, 2026
17 checks passed
@piotr-roslaniec
piotr-roslaniec deleted the m1/bound-straggler-drain branch September 3, 2026 15:37
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