Skip to content

Commit

Permalink
Pre 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 22, 2024
1 parent f1c25f5 commit df8f5da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
DRIVER_BRANCH=$(echo "${TARGET_DRIVER_VERSION}" | cut -d '.' -f 1)
source ./tests/scripts/.definitions.sh
mkdir -p logs
./tests/scripts/pull.sh "${SCRIPT_DIR}"/kernel_version.txt logs/kernel_version.txt
./tests/scripts/pull.sh ${LOG_DIR}/kernel_version.txt logs/kernel_version.txt
source logs/kernel_version.txt
DRIVER_VERSION="${DRIVER_BRANCH}-${KERNEL_VERSION}-ubuntu22.04"
./tests/ci-run-e2e.sh ${TEST_CASE} ${DRIVER_VERSION} ${SSH_RETRY} || status=$?
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/findkernelversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ chmod a+x bin/regctl
export PATH=$(pwd)/bin:${PATH}
DRIVER_BRANCH=$(echo "${TARGET_DRIVER_VERSION}" | cut -d '.' -f 1)
KERNEL_FLAVOR=$(uname -r | awk -F'-' '{print $3}')
regctl image get-file ghcr.io/nvidia/driver:base-${BASE_TARGET}-${KERNEL_FLAVOR}-${DRIVER_BRANCH} /var/kernel_version.txt ${SCRIPT_DIR}/kernel_version.txt || true
regctl image get-file ghcr.io/nvidia/driver:base-${BASE_TARGET}-${KERNEL_FLAVOR}-${DRIVER_BRANCH} /var/kernel_version.txt ${LOG_DIR}/kernel_version.txt || true
2 changes: 1 addition & 1 deletion tests/scripts/nvidia-kernel-upgrade-aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source "${SCRIPT_DIR}"/.definitions.sh

# finding kernel version
${SCRIPT_DIR}/findkernelversion.sh
source "${SCRIPT_DIR}"/kernel_version.txt
source "${LOG_DIR}"/kernel_version.txt

echo "Checking current kernel version..."
CURRENT_KERNEL=$(uname -r)
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ source ${SCRIPT_DIR}/.local.sh
# keep alive 60sec and timeout after 30 tries
ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=30 -i ${private_key} ${instance_hostname} "${@}"
ssh_exit_status=$?
if [ $ssh_exit_status -ne 0 ] && [ "$SSH_RETRY" == "1" ];
if [ $ssh_exit_status -ne 0 ] && [ "$SSH_RETRY" == "1" ]; then
remote_retry
fi

0 comments on commit df8f5da

Please sign in to comment.