Skip to content

fix: remove Parallel() call after timeout context #10203

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

Conversation

spikecurtis
Copy link
Contributor

Fixes test flake seen here: https://github.com/coder/coder/runs/17562370632

It's inherently flaky to create a context with a timeout and then later call t.Parallel() since it causes the test to wait until all non-parallel tests have completed before resuming execution. By the time execution has resumed, the context may
have expired. The amount of time before resuming is dependent on machine resources and number of test cases, which are inherently variable.

Copy link
Contributor Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@spikecurtis spikecurtis merged commit 3c43216 into main Oct 11, 2023
@spikecurtis spikecurtis deleted the 10-11-fix_remove_Parallel_call_after_timeout_context branch October 11, 2023 07:39
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2023
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