Skip to content

Commit

Permalink
8.Pre-compiled end-to-end gpu driver validation
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Aug 24, 2024
1 parent d3b1a90 commit cda587b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions tests/ci-run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions tests/local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down
2 changes: 2 additions & 0 deletions tests/scripts/install-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}" \
Expand Down

0 comments on commit cda587b

Please sign in to comment.