Skip to content

test(coderd/database): use seperate context for subtests to fix flake #19330

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Aug 13, 2025

Fixes flakes like https://github.com/coder/coder/actions/runs/16927282256/job/47965470039

https://coder.com/blog/go-testing-contexts-and-t-parallel

...I'm going to take a stab at turning this into a lint rule. I think it's possible by just reading the AST?

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson marked this pull request as ready for review August 13, 2025 04:34
@ethanndickson ethanndickson merged commit 791d39c into main Aug 13, 2025
42 checks passed
@ethanndickson ethanndickson deleted the ethan/seperate-context-subtest branch August 13, 2025 04:45
@github-actions github-actions bot locked and limited conversation to collaborators Aug 13, 2025
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