Skip to content

test(enterprise/coderd): fix flaky channel use - #32089

Merged
spikecurtis merged 1 commit into
mainfrom
spike/gru-104
Nov 13, 2026
Merged

spikecurtis merged 1 commit into
mainfrom
spike/gru-104

Conversation

@spikecurtis

Copy link
Copy Markdown
Collaborator

Fixes GRU-104

Test was flaky in that multiple runs of the Eventually loop could attempt to write to the channel more often than it was read, leaking the goroutine.

This also moves the assertion that the payload is correct outside the loop, so that we fail the test if we get a corrupted payload. If NATS or our implementation doesn't protect the integrity of messages, I'd want to know about it.

@spikecurtis
spikecurtis requested a review from sreya November 12, 2026 15:52
@spikecurtis
spikecurtis temporarily deployed to main November 12, 2026 15:53 — with GitHub Actions Inactive
@spikecurtis
spikecurtis temporarily deployed to main November 12, 2026 15:53 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 12, 2026

Copy link
Copy Markdown

GRU-104

@spikecurtis spikecurtis changed the title tests(enterprise/coderd): fix flaky channel use test(enterprise/coderd): fix flaky channel use Nov 12, 2026
@spikecurtis
spikecurtis temporarily deployed to main November 12, 2026 17:09 — with GitHub Actions Inactive
@spikecurtis
spikecurtis merged commit ad3dc89 into main Nov 13, 2026
54 of 55 checks passed
@spikecurtis
spikecurtis deleted the spike/gru-104 branch November 13, 2026 09:40
@spikecurtis
spikecurtis temporarily deployed to docs-preview November 13, 2026 09:40 — with GitHub Actions Inactive
@spikecurtis
spikecurtis temporarily deployed to main November 13, 2026 09:40 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 2026

This branch was previously deployed

2 inactive deployments
docs-preview — 94ecf806 Deployed Nov 13, 2026 by spikecurtis via cleanup #24
main — 94ecf806 Deployed Nov 13, 2026 by spikecurtis via cla #256113
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants