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

run-k8s-e2e-tests.sh --e2e-all does not run any NetworkPolicy tests #3172

Closed
tnqn opened this issue Jan 5, 2022 · 0 comments · Fixed by #3173
Closed

run-k8s-e2e-tests.sh --e2e-all does not run any NetworkPolicy tests #3172

tnqn opened this issue Jan 5, 2022 · 0 comments · Fixed by #3173
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@tnqn
Copy link
Member

tnqn commented Jan 5, 2022

Describe the bug

run-k8s-e2e-tests.sh --e2e-all is supposed to run both Conformance and NetworkPolicy tests:

        --e2e-all                                                 Run both Conformance and Network Policy tests.

But actually it doesn't run any NetworkPolicy tests:

Running tests with sonobuoy. While test is running, check logs with: /usr/local/bin/sonobuoy  logs -f.
+ [[ \[Feature:NetworkPolicy\] == '' ]]
+ /usr/local/bin/sonobuoy run --wait --kube-conformance-image-version v1.19.4 --e2e-focus '\[Feature:NetworkPolicy\]' --e2e-skip '\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[sig-cli\]|\[sig-storage\]|\[sig-auth\]|\[sig-api-machinery\]|\[sig-apps\]|\[sig-node\]|\[sig-instrumentation\]' --image-pull-policy Always --sonobuoy-image projects.registry.vmware.com/sonobuoy/sonobuoy:v0.19.0 --e2e-repo-config /root/antrea/ci/conformance-image-config.yaml
WARN[0000] The maximum supported Kubernetes version is 1.19.99, but the server version is v1.23.1. Sonobuoy will continue but unexpected results may occur.
INFO[0000] created object                                name=sonobuoy namespace= resource=namespaces
INFO[0000] created object                                name=sonobuoy-serviceaccount namespace=sonobuoy resource=serviceaccounts
INFO[0000] created object                                name=sonobuoy-serviceaccount-sonobuoy namespace= resource=clusterrolebindings
INFO[0000] created object                                name=sonobuoy-serviceaccount-sonobuoy namespace= resource=clusterroles
INFO[0000] created object                                name=sonobuoy-config-cm namespace=sonobuoy resource=configmaps
INFO[0000] created object                                name=sonobuoy-plugins-cm namespace=sonobuoy resource=configmaps
INFO[0000] created object                                name=sonobuoy namespace=sonobuoy resource=pods
INFO[0000] created object                                name=repolist-cm namespace=sonobuoy resource=configmaps
INFO[0000] created object                                name=sonobuoy-aggregator namespace=sonobuoy resource=services
+ set +x
Plugin: e2e
Status: passed
Total: 5234
Passed: 0
Failed: 0
Skipped: 5234

It was because run_conformance overrided the global RUN_E2E_SKIP variable with DEFAULT_E2E_CONFORMANCE_SKIP.

To Reproduce

Run ./ci/run-k8s-e2e-tests.sh --e2e-all

Expected

Actual behavior

Versions:

Please provide the following information:

  • Antrea version (Docker image tag). ba9c7b3
@tnqn tnqn added the kind/bug Categorizes issue or PR as related to a bug. label Jan 5, 2022
@tnqn tnqn closed this as completed in #3173 Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant