Skip to content

chore: retry failed race tests in CI #17846

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
May 15, 2025
Merged

Conversation

hugodutka
Copy link
Contributor

@hugodutka hugodutka commented May 15, 2025

This PR enables retrying failed tests in the race suites unless a data race was detected. The goal is to reduce how often flakes disrupt developers' workflows.

I bumped gotestsum to a revision from the main branch because it includes the --rerun-fails-abort-on-data-race flag which I recently contributed.

Incidentally, you can see it in action in a CI job on this very PR.

@hugodutka hugodutka marked this pull request as ready for review May 15, 2025 09:14
@hugodutka hugodutka requested a review from deansheather May 15, 2025 09:14
Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

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

LGTM but deferring approval to someone higher up since this is a pretty big change to how we've tested quality at coder and could open a can of worms

@deansheather deansheather requested a review from sreya May 15, 2025 09:38
@hugodutka
Copy link
Contributor Author

Thanks @deansheather. For reference, this PR is a follow-up to #17681. I couldn't retry race tests back then because it'd mask any detected race conditions. --rerun-fails-abort-on-data-race fixes that.

Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

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

In that case I guess Jon pretty much already approved this then!

@hugodutka hugodutka merged commit 6e1ba75 into main May 15, 2025
42 checks passed
@hugodutka hugodutka deleted the hugodutka/retry-failed-race-tests branch May 15, 2025 12:11
@github-actions github-actions bot locked and limited conversation to collaborators May 15, 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