Skip to content

fix(coderd): fix TestListChats/PinnedOnFirstPage race timeout#24641

Merged
johnstcn merged 1 commit into
mainfrom
fix/listchats-pinned-flake
Apr 22, 2026
Merged

fix(coderd): fix TestListChats/PinnedOnFirstPage race timeout#24641
johnstcn merged 1 commit into
mainfrom
fix/listchats-pinned-flake

Conversation

@johnstcn
Copy link
Copy Markdown
Member

  • Insert filler chats directly into the database with completed status instead of creating them via the API
  • Removes the testutil.Eventually polling loop that waited for all 52 chats to reach terminal status
  • Avoids spawning 52 background chat processors that each time out on title generation under -race, exceeding the 25s WaitLong timeout
  • Test now completes in ~1s instead of timing out at 30s+

Flake: https://github.com/coder/coder/actions/runs/24789695935/job/72543519963?pr=24438

🤖

Insert filler chats directly into the database with completed status
instead of creating them through the API. This avoids spawning 52
background chatd processors that each time out on title generation,
causing the test to exceed the 25s WaitLong timeout under -race.
Copy link
Copy Markdown
Member Author

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self-reviewed

@johnstcn johnstcn marked this pull request as ready for review April 22, 2026 19:29
@johnstcn johnstcn merged commit be1256c into main Apr 22, 2026
33 checks passed
@johnstcn johnstcn deleted the fix/listchats-pinned-flake branch April 22, 2026 19:37
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2026
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