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

kvstore: fix TestWorkqueueSyncStoreMetrics flake #25706

Merged
merged 1 commit into from May 26, 2023

Conversation

giorio94
Copy link
Member

This PR addresses a flake observed in the CI:

Error Trace:	/home/travis/gopath/src/github.com/cilium/cilium/pkg/kvstore/store/syncstore_test.go:392
Error:      Not equal:
            expected: 1
            actual  : 2
Test:       TestWorkqueueSyncStoreMetrics

This flake was caused by a race condition concerning setting and reading the metric, and it is addressed asserting that the metric eventually matches the expected value.

Additionally, all timeouts are raised to prevent the occurrence of flakes when running in a noisy CI environment.

This commit addresses a flake observed in the CI:

Error Trace:	/home/travis/gopath/src/github.com/cilium/cilium/pkg/kvstore/store/syncstore_test.go:392
Error:      	Not equal:
              	expected: 1
             	actual  : 2
Test:       	TestWorkqueueSyncStoreMetrics

This flake was caused by a race condition concerning setting and reading
the metric, and it is addressed asserting that the metric *eventually*
matches the expected value.

Additionally, all timeouts are raised to prevent the occurrence of flakes
when running in a noisy CI environment.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94 giorio94 added release-note/ci This PR makes changes to the CI. ci/flake This is a known failure that occurs in the tree. Please investigate me! sig/kvstore Impacts the KVStore package interactions. labels May 26, 2023
@giorio94 giorio94 requested a review from a team as a code owner May 26, 2023 08:14
@giorio94 giorio94 requested a review from tklauser May 26, 2023 08:14
@giorio94
Copy link
Member Author

/test-runtime

@giorio94
Copy link
Member Author

This PR only touches integration tests, and the all the related suites completed successfully. Review is in. Marking as ready to merge without running the full E2E suites.

@giorio94 giorio94 added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 26, 2023
@squeed squeed merged commit 85a9ed2 into cilium:main May 26, 2023
47 checks passed
@ti-mo
Copy link
Contributor

ti-mo commented May 26, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/flake This is a known failure that occurs in the tree. Please investigate me! ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI. sig/kvstore Impacts the KVStore package interactions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants