Skip to content

Commit

Permalink
enhance e2e test and publish image
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Sep 18, 2024
1 parent f0f49d5 commit 14e046c
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,34 +227,35 @@ jobs:
echo "DIST=ubuntu22.04" >> $GITHUB_ENV
driver_branch_json='${{ needs.set-driver-version-matrix.outputs.driver_branch }}'
echo "SHIVA ======== $driver_branch_json"
DRIVER_BRANCHES=$(echo "$driver_branch_json" | jq -r '.[]') >> $GITHUB_ENV
DRIVER_BRANCHES=($(echo "$driver_branch_json" | jq -r '.[]')) >> $GITHUB_ENV
echo "SHIVA ======== DRIVER_BRANCHES=$(echo "$driver_branch_json" | jq -r '.[]') "
- name: Install GitHub CLI
run: |
sudo apt-get update
sudo apt-get install -y gh
- name: Upgrade the kernel for Precompiled e2e test
env:
UPGRADE_KERNEL_SCRIPT: "./tests/scripts/upgrade-kernel.sh"
run: |
status=0
./tests/ci-remote-exec.sh "${UPGRADE_KERNEL_SCRIPT}" "${KERNEL_VERSION}" || status=$?
# On the target system, all scripts/test-case exit with code 1 for error handling.
# However, since reboot-related disconnections break the SSH connection
# and can cause the entire job to exit, we should ignore all errors except
# exit code 1. During a reboot, exit code 1 will not be thrown, so handling
# other errors as code 1 will ensure proper management of reboot scenarios
if [ $status -eq 1 ]; then
echo "Kernel version $KERNEL_VERSION upgrade failed"
exit 1
fi
./tests/scripts/remote_retry.sh || status=$?
if [ $status -ne 0 ]; then
echo "Failed to connect to remote instance"
exit $status
fi
# SHIVA
# - name: Upgrade the kernel for Precompiled e2e test
# env:
# UPGRADE_KERNEL_SCRIPT: "./tests/scripts/upgrade-kernel.sh"
# run: |
# status=0
# ./tests/ci-remote-exec.sh "${UPGRADE_KERNEL_SCRIPT}" "${KERNEL_VERSION}" || status=$?
# # On the target system, all scripts/test-case exit with code 1 for error handling.
# # However, since reboot-related disconnections break the SSH connection
# # and can cause the entire job to exit, we should ignore all errors except
# # exit code 1. During a reboot, exit code 1 will not be thrown, so handling
# # other errors as code 1 will ensure proper management of reboot scenarios
# if [ $status -eq 1 ]; then
# echo "Kernel version $KERNEL_VERSION upgrade failed"
# exit 1
# fi
# ./tests/scripts/remote_retry.sh || status=$?
# if [ $status -ne 0 ]; then
# echo "Failed to connect to remote instance"
# exit $status
# fi

- name: Precompiled e2e test gpu driver validation
env:
Expand Down

0 comments on commit 14e046c

Please sign in to comment.