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

clustermesh: improve reliability of TestClusterMesh #26370

Merged
merged 1 commit into from Jun 21, 2023

Conversation

giorio94
Copy link
Member

Currently, TestClusterMesh is subject to possible race conditions caused by the conjoint usage of defer (i.e., to stop the identity allocator) and Cleanup (i.e., to execute the stop hook of the clustermesh subsystem). Additionally, some cluster ID reservation assertions may fail due race conditions as they are not "eventually" tested.

Let's fix this possible issues to improve the reliability of the test. While at it, let's also convert it to leverage the testing framework.

Currently, TestClusterMesh is subject to possible race conditions caused
by the conjoint usage of defer (i.e., to stop the identity allocator)
and Cleanup (i.e., to execute the stop hook of the clustermesh
subsystem). Additionally, some cluster ID reservation assertions may
fail due race conditions as they are not "eventually" tested.

Let's fix this possible issues to improve the reliability of the test.
While at it, let's also convert it to leverage the testing framework.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 added kind/bug/CI This is a bug in the testing code. area/clustermesh Relates to multi-cluster routing functionality in Cilium. release-note/misc This PR makes changes that have no direct user impact. labels Jun 20, 2023
@giorio94 giorio94 requested a review from a team as a code owner June 20, 2023 09:21
@giorio94
Copy link
Member Author

/test

Copy link
Member

@YutaroHayakawa YutaroHayakawa left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thanks!

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 21, 2023
@borkmann borkmann merged commit 5409bc5 into cilium:main Jun 21, 2023
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/clustermesh Relates to multi-cluster routing functionality in Cilium. kind/bug/CI This is a bug in the testing code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants