Skip to content
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

Fix driver tests flakiness #3185

Merged
merged 8 commits into from
Dec 31, 2024
Merged

Fix driver tests flakiness #3185

merged 8 commits into from
Dec 31, 2024

Conversation

squadgazzz
Copy link
Contributor

@squadgazzz squadgazzz commented Dec 26, 2024

Description

It seems like running the driver tests in a single-thread mode fixes the issue with accidentally stuck tests(https://github.com/cowprotocol/services/actions/runs/11141574437/job/30962723813). During a couple of runs using the flaky runner job, not a single driver test failed. The only disadvantage is that these tests execute now 5m instead of 2m.

@squadgazzz squadgazzz marked this pull request as ready for review December 27, 2024 19:15
@squadgazzz squadgazzz requested a review from a team as a code owner December 27, 2024 19:15
@squadgazzz squadgazzz changed the title Fix driver tests Fix driver tests flakiness Dec 27, 2024
Copy link
Contributor

@MartinquaXD MartinquaXD left a comment

Choose a reason for hiding this comment

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

Hmm, I would have preferred a concrete explanation what causes the tests to hang while running in parallel (e.g. maybe a deadlock? 🤷 ) but given that this is a 0 risk change I'm fine to merge it and observe if this improves the situation.

@squadgazzz squadgazzz enabled auto-merge (squash) December 31, 2024 11:38
@squadgazzz
Copy link
Contributor Author

squadgazzz commented Dec 31, 2024

I would have preferred a concrete explanation what causes the tests to hang while running in parallel

Me too. But I can't catch the error when --no-capture is enabled. It probably slows down the execution and reduces the chances of race conditions/whatever.

@squadgazzz squadgazzz merged commit 9d5a117 into main Dec 31, 2024
11 checks passed
@squadgazzz squadgazzz deleted the fix-driver-tests branch December 31, 2024 11:49
@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2024
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.

3 participants