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: Fix skipping of NodePort tests #11186

Merged
merged 2 commits into from Apr 29, 2020

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented Apr 28, 2020

These issues were found while running tests locally with option combinations that are not tested in our CI pipelines.

The first commit skips BPF-based NodePort tests when running with kube-proxy enabled (found while running NETNEXT=1 K8S_VERSION=1.11 ginkgo --focus="K8s*").
The second commit skips one test that uses the third-node, the node without Cilium, when that node isn't available (found while running KUBEPROXY=0 NETNEXT=1 K8S_VERSION=1.11 ginkgo --focus="K8s*").

Test results with KUBEPROXY=1 and the net-next kernel can be observed at #11118.

/cc @brb

This change avoids the following errors when running with the net-next
kernel and KUBEPROXY=1:

  Suite-k8s-1.11.K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with vxlan Tests NodePort
  Suite-k8s-1.11.K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with vxlan Tests HostPort
  Suite-k8s-1.11.K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with direct routing Tests HostPort
  Suite-k8s-1.11.K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with direct  routing Tests with MetalLB Connectivity to endpoint via LB
  Suite-k8s-1.11.K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with direct routing and DSR
  Suite-k8s-1.11.K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with XDP, direct routing and Hybrid
  Suite-k8s-1.11.K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with XDP, direct routing and DSR
  Suite-k8s-1.11.K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with TC, direct routing and Hybrid
  Suite-k8s-1.11.K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with TC, direct routing and DSR

Signed-off-by: Paul Chaignon <paul@cilium.io>
Test 'K8sServicesTest - Tests GH#10983' requires the third node to
exist, but isn't skipped if it doesn't exist. This commit fixes it.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno added area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/misc This PR makes changes that have no direct user impact. labels Apr 28, 2020
@pchaigno pchaigno requested a review from brb April 28, 2020 10:53
@pchaigno pchaigno requested a review from a team as a code owner April 28, 2020 10:53
@pchaigno
Copy link
Member Author

test-me-please

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 44.637% when pulling 025ff4f on pr/pchaigno/skip-more-tests-kubeproxy into 88d1d93 on master.

@nebril
Copy link
Member

nebril commented Apr 28, 2020

test-with-kernel

@aanm aanm added area/CI-improvement Topic or proposal to improve the Continuous Integration workflow and removed area/CI-improvement Topic or proposal to improve the Continuous Integration workflow labels Apr 29, 2020
Copy link
Member

@brb brb left a comment

Choose a reason for hiding this comment

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

Thanks!

@qmonnet qmonnet merged commit 6e90d47 into master Apr 29, 2020
@qmonnet qmonnet deleted the pr/pchaigno/skip-more-tests-kubeproxy branch April 29, 2020 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI-improvement Topic or proposal to improve the Continuous Integration workflow 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

6 participants