From 55a3772032cf55fdeb0c20f60c7018e61ae5ad16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Fri, 27 Mar 2026 11:49:59 +0100 Subject: [PATCH] ci.ocp: Add note about external tests to README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to run all the tests that are running in CI we need to enable external tests. This can be a bit tricky so add it into our documentation. Signed-off-by: Lukáš Doktor --- ci/openshift-ci/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ci/openshift-ci/README.md b/ci/openshift-ci/README.md index f977ef0819..fa75cd4a3e 100644 --- a/ci/openshift-ci/README.md +++ b/ci/openshift-ci/README.md @@ -37,6 +37,23 @@ oc adm policy add-scc-to-group anyuid system:authenticated system:serviceaccount oc label --overwrite ns default pod-security.kubernetes.io/enforce=privileged pod-security.kubernetes.io/warn=baseline pod-security.kubernetes.io/audit=baseline ``` +The e2e suite uses a combination of built-in (origin) and external tests. External +tests include Kubernetes upstream conformance tests from the `hyperkube` image. + +To enable external tests, export a variable matching your cluster version: + +```bash +export EXTENSIONS_PAYLOAD_OVERRIDE=$(oc get clusterversion version -o jsonpath='{.status.desired.image}') +# Optional: limit to hyperkube only (k8s conformance tests, avoids downloading all operator extensions) +export EXTENSION_BINARY_OVERRIDE_INCLUDE_TAGS="hyperkube" +``` + +Alternatively, skip external tests entirely (only OpenShift-specific tests from origin): + +```bash +export OPENSHIFT_SKIP_EXTERNAL_TESTS=1 +``` + Now you should be ready to run the openshift-tests. Our CI only uses a subset of tests, to get the current ``TEST_SKIPS`` see [the pipeline config](https://github.com/openshift/release/tree/master/ci-operator/config/kata-containers/kata-containers).