From 07d7e35b130ce75abadce8cf5f994fc47705d0e1 Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Thu, 12 Sep 2024 22:42:34 +0530 Subject: [PATCH] Pre-compiled end-to-end gpu driver validation Signed-off-by: shiva kumar --- .github/workflows/precompiled.yaml | 2 +- tests/cases/nvidia-driver.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/precompiled.yaml b/.github/workflows/precompiled.yaml index 962aaea0..12812db2 100644 --- a/.github/workflows/precompiled.yaml +++ b/.github/workflows/precompiled.yaml @@ -283,7 +283,7 @@ jobs: - name: Precompiled e2e test gpu driver validation env: TEST_CASE: "./tests/cases/nvidia-driver.sh" - GPU_OPERATOR_OPTIONS: "--set driver.repository=${{ env.PRIVATE_REGISTRY }}/nvidia --set driver.usePrecompiled=true" + GPU_OPERATOR_OPTIONS: "--set driver.repository=${{ env.PRIVATE_REGISTRY }}/nvidia --set driver.usePrecompiled=true --set driver.imagePullPolicy=Never" run: | rc=0 # for precompiled driver we are setting driver branch as driver version diff --git a/tests/cases/nvidia-driver.sh b/tests/cases/nvidia-driver.sh index ac3f5402..8ddafad0 100755 --- a/tests/cases/nvidia-driver.sh +++ b/tests/cases/nvidia-driver.sh @@ -10,7 +10,7 @@ fi export TEST_CASE_ARGS="$1" if [[ $# -eq 2 ]]; then export IMAGE_PATH="$2" - docker load -i "$IMAGE_PATH" + sudo ctr -n k8s.io images import "$IMAGE_PATH" fi SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../scripts && pwd )"