Skip to content

Commit

Permalink
Sonobuoy e2e tests Enhancement
Browse files Browse the repository at this point in the history
To improve testing efficiency, this commit enables the e2e-parallel
flag for Sonobuoy, allowing e2e tests to be executed in parallel.
This optimization reduces the execution time for different jobs:

* conformance: 60 min -> 26 min
* networkpolicy: 86 min -> 32 min
* ipv6-only-conformance: 24 min -> 20 min
* ipv6-only-networkpolicy: 266 min -> 94 min
* ipv6-ds-conformance: 24 min -> 20 min
* ipv6-ds-networkpolicy: 254 min -> 96 min

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
  • Loading branch information
XinShuYang authored and tnqn committed Sep 14, 2023
1 parent 3b6bdb0 commit 3db6f63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/jenkins/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ WINDOWS_NETWORKPOLICY_FOCUS="\[Feature:NetworkPolicy\]"
WINDOWS_NETWORKPOLICY_SKIP="SCTP"
WINDOWS_NETWORKPOLICY_CONTAINERD_SKIP="\[sig-storage\]|SCTP"
CONFORMANCE_SKIP="\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[sig-cli\]|\[sig-storage\]|\[sig-auth\]|\[sig-api-machinery\]|\[sig-apps\]|\[sig-node\]"
NETWORKPOLICY_SKIP="should allow egress access to server in CIDR block|should enforce except clause while egress access to server in CIDR block"
NETWORKPOLICY_SKIP="NetworkPolicyLegacy|should allow egress access to server in CIDR block|should enforce except clause while egress access to server in CIDR block"

CONTROL_PLANE_NODE_ROLE="master|control-plane"

Expand Down
3 changes: 2 additions & 1 deletion ci/run-k8s-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ KUBECONFIG_OPTION=""
DEFAULT_E2E_CONFORMANCE_FOCUS="\[Conformance\]"
DEFAULT_E2E_CONFORMANCE_SKIP="\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[sig-cli\]|\[sig-storage\]|\[sig-auth\]|\[sig-api-machinery\]|\[sig-apps\]|\[sig-node\]|\[sig-instrumentation\]"
DEFAULT_E2E_NETWORKPOLICY_FOCUS="\[Feature:NetworkPolicy\]"
DEFAULT_E2E_NETWORKPOLICY_SKIP=""
DEFAULT_E2E_NETWORKPOLICY_SKIP="NetworkPolicyLegacy"
DEFAULT_E2E_SIG_NETWORK_FOCUS="\[sig-network\]"
DEFAULT_E2E_SIG_NETWORK_SKIP="\[Slow\]|\[Serial\]|\[Disruptive\]|\[GCE\]|\[Feature:.+\]|\[Feature:IPv6DualStack\]|\[Feature:IPv6DualStackAlphaFeature\]|should create pod that uses dns|should provide Internet connection for containers"
MODE="report"
Expand Down Expand Up @@ -180,6 +180,7 @@ function run_sonobuoy() {
else
$SONOBUOY run --wait \
$KUBECONFIG_OPTION \
--e2e-parallel=true \
$KUBE_CONFORMANCE_IMAGE_VERSION_OPTION \
--e2e-focus "$focus_regex" --e2e-skip "$skip_regex" --image-pull-policy ${IMAGE_PULL_POLICY} \
--sonobuoy-image ${SONOBUOY_IMAGE} --systemd-logs-image ${SYSTEMD_LOGS_IMAGE} --e2e-repo-config ${CONFORMANCE_IMAGE_CONFIG_PATH}
Expand Down

0 comments on commit 3db6f63

Please sign in to comment.