Skip to content

Commit

Permalink
1. 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 Sep 10, 2024
1 parent 1283bba commit ebc4bb6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 17 deletions.
4 changes: 2 additions & 2 deletions tests/ci-run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
set -xe

if [[ $# -ne 3 ]]; then
echo "TEST_CASE TARGET_DRIVER_VERSION TEST_CASE_ARGS are required"
echo "TEST_CASE TARGET_DRIVER_VERSION OPERATOR_OPTIONS are required"
exit 1
fi

export TEST_CASE="${1}"
export TARGET_DRIVER_VERSION="${2}"
export TEST_CASE_ARGS="${3}"
export OPERATOR_OPTIONS="${3}"

TEST_DIR="$(pwd)/tests"

Expand Down
2 changes: 1 addition & 1 deletion tests/local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ remote SKIP_PREREQUISITES="${SKIP_PREREQUISITES}" ./tests/scripts/prerequisites.
remote \
PROJECT="${PROJECT}" \
TARGET_DRIVER_VERSION="${TARGET_DRIVER_VERSION}" \
TEST_CASE_ARGS=\"${TEST_CASE_ARGS}\" \
OPERATOR_OPTIONS=\"${OPERATOR_OPTIONS}\" \
${TEST_CASE}
3 changes: 0 additions & 3 deletions tests/remote-exec-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ ${SCRIPT_DIR}/push.sh
# We trigger the installation of prerequisites on the remote instance
remote SKIP_PREREQUISITES="${SKIP_PREREQUISITES}" ./tests/scripts/prerequisites.sh

for arg in "$@"; do
echo "SHIVA $arg"
done
# We trigger the specified script on the remote instance.
# Note: We need to ensure that the required environment variables
# are forwarded to the remote shell.
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/.definitions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CASES_DIR="$( cd "${TEST_DIR}/cases" && pwd )"

: ${LOG_DIR:="/tmp/logs"}

: ${TEST_CASE_ARGS:="--set driver.repository=ghcr.io/nvidia"}
: ${OPERATOR_OPTIONS:="--set driver.repository=ghcr.io/nvidia"}
: ${SYSTEM_ONLINE_CHECK_TIMEOUT:="900"}

: ${BASE_TARGET:="jammy"}
7 changes: 4 additions & 3 deletions tests/scripts/.local.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/env bash

# on target $0: cd ${PROJECT} && PROJECT=${PROJECT_DIR}
# $0 can be env , based on that decide the scripts args
# $1 script to be executed
# $2 script arguments
function remote() {
for arg in "$@"; do
echo "SHIVA == $arg"
done
${SCRIPT_DIR}/remote.sh "cd ${PROJECT} && "$@""
}

Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/install-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ echo "Current kernel version: $CURRENT_KERNEL"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source ${SCRIPT_DIR}/.definitions.sh

OPERATOR_OPTIONS="${TEST_CASE_ARGS} --set driver.version=${TARGET_DRIVER_VERSION}"
OPERATOR_OPTIONS="${OPERATOR_OPTIONS} --set driver.version=${TARGET_DRIVER_VERSION}"

# add helm driver repo
helm repo add nvidia ${HELM_NVIDIA_REPO} && helm repo update
Expand Down
7 changes: 1 addition & 6 deletions tests/scripts/upgrade-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ fi
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../scripts && pwd )"
source "${SCRIPTS_DIR}"/.definitions.sh

for arg in "$@"; do
echo "SHIVA TARGET ****** $arg"
done


# export kernel version and Run an end-to-end test cycle
export KERNEL_VERSION="$$1"
export KERNEL_VERSION="$$2"
"${SCRIPTS_DIR}"/kernel-upgrade-helper.sh

0 comments on commit ebc4bb6

Please sign in to comment.