From 4cdaec045569771420765fda53ff1e095b1263aa Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Sat, 24 Aug 2024 12:56:32 +0530 Subject: [PATCH] 2.Pre-compiled end-to-end gpu driver validation Signed-off-by: shiva kumar --- .github/workflows/ci_precompiled.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_precompiled.yaml b/.github/workflows/ci_precompiled.yaml index 2fc5294d..13867eb5 100644 --- a/.github/workflows/ci_precompiled.yaml +++ b/.github/workflows/ci_precompiled.yaml @@ -63,12 +63,12 @@ jobs: aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws_ssh_key: ${{ secrets.AWS_SSH_KEY }} holodeck_config: "tests/holodeck.yaml" - + - name: Get public dns name id: get_public_dns_name uses: mikefarah/yq@master with: - cmd: yq '.status.properties[] | select(.name == "public-dns-name") | .value' /github/workspace/.cache/holodeck.yaml + cmd: yq '.status.properties[] | select(.name == "public-dns-name") | .value' /github/workspace/.cache/holodeck.yaml - name: Set and Calculate test vars run: | @@ -79,18 +79,21 @@ jobs: DRIVER_VERSIONS=$(grep '^DRIVER_VERSIONS ?=' versions.mk | awk -F' ?= ' '{print $2}') echo "DRIVER_VERSIONS=$DRIVER_VERSIONS" >> $GITHUB_ENV echo "PRIVATE_REGISTRY=ghcr.io" >>$GITHUB_ENV - + - name: Precompiled e2e test- upgrade kernel and Validate gpu driver env: TEST_CASE_KERNEL_UPGRADE: "./tests/cases/nvidia-kernel-upgrade.sh" TEST_CASE: "./tests/cases/nvidia-driver.sh" - OPERATOR_OPTIONS: "--set driver.usePrecompiled=true --set driver.repository=${PRIVATE_REGISTRY}/nvidia" + OPERATOR_OPTIONS: "--set driver.usePrecompiled=true --set driver.repository=${{ env.PRIVATE_REGISTRY }}/nvidia" run: | + echo "shiva1" rc=0 for driver_version in ${DRIVER_VERSIONS}; do echo "Running e2e for DRIVER_VERSION=$driver_version" status=0 + echo "shiva2" ./tests/ci-run-e2e.sh "${TEST_CASE_KERNEL_UPGRADE}" "${driver_version} "${OPERATOR_OPTIONS}" || status=$? + echo "shiva3" if [ $status -ne 0 ]; then echo "Kernel upgrade failed" rc=$status