Skip to content

fix: workspaceapps: overloaded test server responds with 502s #5255

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 6 commits into from
Dec 2, 2022

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Dec 2, 2022

Fixes: #5249

This PR extends the behavior of httpClient to retry in case of a Bad Gateway error. While running in parallel, some requests end with HTTP 502 and could be replayed.

If that idea works well, we can expand it to other coderd tests.

BTW With require.Eventually equal to testutil.WaitShort, I can reproduce the issue on my macbook.

@mtojek mtojek requested a review from a team December 2, 2022 15:57
@mtojek mtojek self-assigned this Dec 2, 2022
@mtojek mtojek marked this pull request as ready for review December 2, 2022 15:58
@mtojek mtojek merged commit 137a48c into coder:main Dec 2, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2022
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.

flake: TestWorkspaceApplicationAuth
2 participants