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

test(cluster): split tests between parallel and sequential packages #5390

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

ddebko
Copy link
Collaborator

@ddebko ddebko commented Dec 20, 2024

Summary

There are a number of tests in the cluster package that must run sequentially (due to global variables that are being manipulated), but there are also many tests that can run in parallel. The golang sdk does not allow us to configure how we want to run these tests in a specific order. Therefore, I split the tests into two sub packages. This has greatly improved the runtime of the tests, without introducing flaky behaviors.

Before:
Screenshot 2024-12-18 at 2 25 05 PM

After:
Screenshot 2024-12-18 at 2 24 42 PM

@ddebko ddebko requested a review from a team as a code owner December 20, 2024 17:35
@github-actions github-actions bot added the core label Dec 20, 2024
@ddebko ddebko force-pushed the ddebko-split-cluster-tests branch from 7ed2a5a to dd35ca1 Compare December 20, 2024 17:39
Copy link
Collaborator

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

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

🎉 thank you!!

moduli
moduli previously approved these changes Dec 20, 2024
@ddebko ddebko dismissed stale reviews from moduli and johanbrandhorst via 90989fb December 20, 2024 21:25
@ddebko ddebko force-pushed the ddebko-split-cluster-tests branch from 90989fb to 796469c Compare December 20, 2024 21:28
Copy link
Collaborator

@moduli moduli left a comment

Choose a reason for hiding this comment

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

I'm a little confused. Are there some additional changes here that weren't part of the PR previously?

@ddebko
Copy link
Collaborator Author

ddebko commented Dec 20, 2024

I'm a little confused. Are there some additional changes here that weren't part of the PR previously?

Johan asked me to split the PR into two different PRs. We wanted to validate some smaller changes to test if they would improve stability with tests passing consistently.

@ddebko ddebko merged commit 98bb4c8 into main Dec 20, 2024
59 of 63 checks passed
@ddebko ddebko deleted the ddebko-split-cluster-tests branch December 20, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants