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

functest: add retry for rdma functionel test #817

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

SchSeba
Copy link
Collaborator

@SchSeba SchSeba commented Dec 16, 2024

this is needed because after a reboot on a single node the operator webhook may not be ready

Copy link

Thanks for your PR,
To run vendors CIs, Maintainers can use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs, Maintainers can use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@SchSeba SchSeba force-pushed the add_retry_on_delete branch from 704d7ec to f68bdf1 Compare December 16, 2024 15:21
@coveralls
Copy link

coveralls commented Dec 16, 2024

Pull Request Test Coverage Report for Build 12373006144

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 6 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 47.244%

Files with Coverage Reduction New Missed Lines %
controllers/drain_controller_helper.go 1 63.59%
controllers/generic_network_controller.go 5 74.38%
Totals Coverage Status
Change from base Build 12298677979: -0.02%
Covered Lines: 7201
Relevant Lines: 15242

💛 - Coveralls

Comment on lines 103 to 109
output, _, err = runCommandOnConfigDaemon(testNode, "/bin/bash", "-c", "cat /host/proc/cmdline | grep ib_core.netns_mode=0 | wc -l")
Expect(err).ToNot(HaveOccurred())
Expect(strings.HasPrefix(output, "0")).To(BeTrue())
Expect(strings.HasPrefix(output, "0")).To(BeTrue(), fmt.Sprintf("kernel args are not right, printing current kernel args %s", cmdlineOutput))

output, _, err = runCommandOnConfigDaemon(testNode, "/bin/bash", "-c", "cat /host/proc/cmdline | grep ib_core.netns_mode=1 | wc -l")
Expect(err).ToNot(HaveOccurred())
Expect(strings.HasPrefix(output, "1")).To(BeTrue())
Expect(strings.HasPrefix(output, "1")).To(BeTrue(), fmt.Sprintf("kernel args are not right, printing current kernel args %s", cmdlineOutput))
Copy link
Member

Choose a reason for hiding this comment

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

can we refactor this to?

Expect(cmdlineOutput).To(ContainSubstring("ib_core.netns_mode=1"))
Expect(cmdlineOutput).ToNot(ContainSubstring("ib_core.netns_mode=0"))

The same for the other /host/proc/cmdline asssertion

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you are right less execs!

this is needed because after a reboot on a single node
the operator webhook may not be ready

Signed-off-by: Sebastian Sch <[email protected]>
@SchSeba SchSeba force-pushed the add_retry_on_delete branch from f68bdf1 to 0c4edb3 Compare December 17, 2024 12:27
Copy link
Member

@zeeke zeeke left a comment

Choose a reason for hiding this comment

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

LGTM!

@SchSeba SchSeba merged commit cfd160f into k8snetworkplumbingwg:master Dec 18, 2024
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants