From cda587b2836e96486d74ae1a1f967ebf41f937e0 Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Sat, 24 Aug 2024 22:24:27 +0530 Subject: [PATCH] 8.Pre-compiled end-to-end gpu driver validation Signed-off-by: shiva kumar --- .github/workflows/ci.yaml | 1 + tests/ci-run-e2e.sh | 2 ++ tests/local.sh | 1 + tests/scripts/install-operator.sh | 2 ++ 4 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e8445c84..1e3369ac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -81,6 +81,7 @@ jobs: for driver_version in ${DRIVER_VERSIONS}; do echo "Running e2e for DRIVER_VERSION=$driver_version" status=0 + echo "SHIVA==== ${OPERATOR_OPTIONS}" ./tests/ci-run-e2e.sh "${TEST_CASE}" "${COMMIT_SHORT_SHA}-${driver_version}" "${OPERATOR_OPTIONS}" || status=$? if [ $status -ne 0 ]; then echo "e2e validation failed for driver version $driver_version with status $status" diff --git a/tests/ci-run-e2e.sh b/tests/ci-run-e2e.sh index 7ff11352..a54ecfa1 100755 --- a/tests/ci-run-e2e.sh +++ b/tests/ci-run-e2e.sh @@ -11,6 +11,8 @@ export TEST_CASE="${1}" export TARGET_DRIVER_VERSION="${2}" export OPERATOR_OPTIONS="${3}" +echo "SHIVA===== ${OPERATOR_OPTIONS}" + TEST_DIR="$(pwd)/tests" ${TEST_DIR}/local.sh diff --git a/tests/local.sh b/tests/local.sh index 67167522..318234c3 100755 --- a/tests/local.sh +++ b/tests/local.sh @@ -21,6 +21,7 @@ remote SKIP_PREREQUISITES="${SKIP_PREREQUISITES}" ./tests/scripts/prerequisites. # We trigger the specified test case on the remote instance. # Note: We need to ensure that the required environment variables # are forwarded to the remote shell. +echo "SHIVA====== ${OPERATOR_OPTIONS}" remote \ PROJECT="${PROJECT}" \ TARGET_DRIVER_VERSION="${TARGET_DRIVER_VERSION}" \ diff --git a/tests/scripts/install-operator.sh b/tests/scripts/install-operator.sh index 010e3fec..89778498 100755 --- a/tests/scripts/install-operator.sh +++ b/tests/scripts/install-operator.sh @@ -12,6 +12,7 @@ echo "Current kernel version: $CURRENT_KERNEL" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source ${SCRIPT_DIR}/.definitions.sh +echo "SHIVA=== ${OPERATOR_OPTIONS}" OPERATOR_OPTIONS="${OPERATOR_OPTIONS} --set driver.version=${TARGET_DRIVER_VERSION}" # add helm driver repo @@ -20,6 +21,7 @@ helm repo add nvidia ${HELM_NVIDIA_REPO} && helm repo update # Create the test namespace kubectl create namespace "${TEST_NAMESPACE}" +echo "SHIVA== ${OPERATOR_OPTIONS}" # Run the helm install command ${HELM} install gpu-operator nvidia/gpu-operator \ -n "${TEST_NAMESPACE}" \