- Notifications
You must be signed in to change notification settings - Fork948
fix(agent/agentcontainers): fixTestAPI/IgnoreCustomization
flake#18863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
TestAPI/IgnoreCustomization
flakeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
Fixes a flaky race condition in TestAPI by waiting for container refresh to complete before asserting subagent creation.
- Wrapped
api.RefreshContainers
calls inrequire.Eventuallyf
to poll forfakeSAC.created
entries after filesystem events. - Applied the same change in both phases of the test to ensure subagent creation is detected reliably.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks!
bd3d0ea
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Fixes a flake spotted herehttps://github.com/coder/coder/actions/runs/16277283041/job/45959150449
The flake occurred due to a race condition between
RefreshContainers
and the file system watcher. We might want to improve how these tests are written in the future, but for now it appears this change has fixed the flake on my Coder Workspace.How I ran the test to recreate the issue