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/k8s: make kafka tests more reliable #26121

Merged
merged 1 commit into from Jun 13, 2023
Merged

Conversation

aanm
Copy link
Member

@aanm aanm commented Jun 12, 2023

Waiting until the Kafka command succeeds will prevent any flakiness in the tests.

Fixes #26009

Tested locally plenty of times.

@aanm aanm added the release-note/misc This PR makes changes that have no direct user impact. label Jun 12, 2023
@aanm aanm requested review from a team as code owners June 12, 2023 13:29
@aanm aanm requested review from jrajahalme and tklauser June 12, 2023 13:29
@aanm
Copy link
Member Author

aanm commented Jun 12, 2023

/test

waitUntilSucceed := func(pod, arg, description string) {
var errBody error
body := func() bool {
errBody = kubectl.ExecKafkaPodCmd(helpers.DefaultNamespace, pod, prodHqAnnounce)
Copy link
Member

Choose a reason for hiding this comment

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

Should use arg in exec instead of prodHqAnnounce!

@aanm
Copy link
Member Author

aanm commented Jun 13, 2023

/test

@aanm aanm marked this pull request as draft June 13, 2023 09:26
@aanm
Copy link
Member Author

aanm commented Jun 13, 2023

/ci-ginkgo

@aanm
Copy link
Member Author

aanm commented Jun 13, 2023

/ci-ginkgo

Waiting until the Kafka command succeeds will prevent any flakiness
in the tests.

Signed-off-by: André Martins <andre@cilium.io>
@aanm
Copy link
Member Author

aanm commented Jun 13, 2023

/ci-ginkgo

@aanm aanm marked this pull request as ready for review June 13, 2023 11:20
@aanm aanm merged commit 66ad757 into cilium:main Jun 13, 2023
43 checks passed
@aanm aanm added the area/CI Continuous Integration testing issue or flake label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake 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.

CI: E2E Test (1.27, f20-kafka) - K8sKafkaPolicyTest Kafka Policy Tests: KafkaPolicies
3 participants