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
test(coderd): TestPlugins/LinkSendAndDeliver is flaky (chat label empty) #353
The parallel subtest ConverseScopeOnlyReachesChats creates an unlabeled chat for the same member. Delivery then makes it the idle link's active chat, and send posts to that chat instead of creating a new one.
Acceptance
Root cause confirmed.
The subtests no longer share state, or the assertion no longer depends on which chat is active.
go test -race -count=20 -run 'TestPlugins/LinkSendAndDeliver' ./coderd/ passes.
Cause, found by the #305 workstream while testing #351 (reproduced on main c3d59eaf09, run 5 of 25): the parallel subtest ConverseScopeOnlyReachesChats creates an unlabeled chat for the same member. When that chat replies while the new link is idle, delivery makes it the active chat of the link, so the next send reuses it instead of creating a labeled chat, and the label comes back as "". Likely fix: give that subtest its own user.
Activity
ibetitsmike commentedon Nov 15, 2026
Cause, found by the #305 workstream while testing #351 (reproduced on main
c3d59eaf09, run 5 of 25): the parallel subtestConverseScopeOnlyReachesChatscreates an unlabeled chat for the same member. When that chat replies while the new link is idle, delivery makes it the active chat of the link, so the nextsendreuses it instead of creating a labeled chat, and the label comes back as"". Likely fix: give that subtest its own user.