Skip to content

Commit

Permalink
e2e conformance: add the env var RUN_ON_ARM64_INFRA
Browse files Browse the repository at this point in the history
Set the RUN_ON_ARM64_INFRA to make the conformance
tests run without the tests that are not supported on
the Arm64 test infrastructure.

Signed-off-by: howard zhang <[email protected]>
  • Loading branch information
zhlhahaha committed Oct 26, 2023
1 parent c88dd5f commit 4624369
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ functest-image-push: functest-image-build
hack/func-tests-image.sh push

conformance:
hack/dockerized "export KUBEVIRT_PROVIDER=${KUBEVIRT_PROVIDER} SKIP_OUTSIDE_CONN_TESTS=${SKIP_OUTSIDE_CONN_TESTS} KUBEVIRT_E2E_FOCUS=${KUBEVIRT_E2E_FOCUS} DOCKER_PREFIX=${DOCKER_PREFIX} DOCKER_TAG=${DOCKER_TAG} && hack/conformance.sh"
hack/dockerized "export KUBEVIRT_PROVIDER=${KUBEVIRT_PROVIDER} SKIP_OUTSIDE_CONN_TESTS=${SKIP_OUTSIDE_CONN_TESTS} RUN_ON_ARM64_INFRA=${RUN_ON_ARM64_INFRA} KUBEVIRT_E2E_FOCUS=${KUBEVIRT_E2E_FOCUS} DOCKER_PREFIX=${DOCKER_PREFIX} DOCKER_TAG=${DOCKER_TAG} && hack/conformance.sh"

perftest: build-functests
hack/perftests.sh
Expand Down
8 changes: 8 additions & 0 deletions docs/conformance.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ To run without outside connectivity tests add the argument:
SKIP_OUTSIDE_CONN_TESTS=true make conformance
```

The following argument is only used for running the conformance tests on the Arm64 test infrastructure in KubeVirtCI.
This is necessary because some specific setups, such as IPv6, are not enabled on the Arm64 test infrastructure.
By adding the argument, we can skip the unsupported tests.

```bash
RUN_ON_ARM64_INFRA=true make conformance
```

To focus on specific tests pass KUBEVIRT_E2E_FOCUS argument:

```bash
Expand Down
4 changes: 4 additions & 0 deletions hack/conformance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ if [[ ! -z "$SKIP_OUTSIDE_CONN_TESTS" ]]; then
sonobuoy_args="${sonobuoy_args} --plugin-env kubevirt-conformance.E2E_SKIP=\[outside_connectivity\]"
fi

if [[ ! -z "$RUN_ON_ARM64_INFRA" ]]; then
sonobuoy_args="${sonobuoy_args} --plugin-env kubevirt-conformance.E2E_SKIP=.*(\[outside_connectivity\].*\[IPv6\].*|\[IPv6\].*\[outside_connectivity\].*).*"
fi

if [[ ! -z "$KUBEVIRT_PROVIDER" ]]; then
sonobuoy_args="${sonobuoy_args} --plugin-env kubevirt-conformance.KUBEVIRT_PROVIDER=${KUBEVIRT_PROVIDER}"
fi
Expand Down

0 comments on commit 4624369

Please sign in to comment.