Skip to content

Commit

Permalink
2. 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 8, 2024
1 parent 7fb052c commit 2096e58
Showing 1 changed file with 18 additions and 36 deletions.
54 changes: 18 additions & 36 deletions .github/workflows/precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ jobs:
# - nvidia
# - oracle
outputs:
# kernel_version_aws: ${{ steps.set_kernel_version.outputs.kernel_version }}
# kernel_version_azure: ${{ steps.set_kernel_version.outputs.kernel_version }}
kernel_version_aws: ${{ steps.set_kernel_version.outputs.kernel_version }}
kernel_version_azure: ${{ steps.set_kernel_version.outputs.kernel_version }}
kernel_version_generic: ${{ steps.set_kernel_version.outputs.kernel_version_generic }}
# kernel_version_nvidia: ${{ steps.set_kernel_version.outputs.kernel_version }}
# kernel_version_oracle: ${{ steps.set_kernel_version.outputs.kernel_version }}
kernel_version_nvidia: ${{ steps.set_kernel_version.outputs.kernel_version }}
kernel_version_oracle: ${{ steps.set_kernel_version.outputs.kernel_version }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -137,23 +137,16 @@ jobs:
exit 0
fi
export PRIVATE_REGISTRY="nvcr.io"
touch kernel_versions.txt
source kernel_version.txt
source ./tests/scripts/findkernelversion.sh "$BASE_TARGET" "$DIST" "${{ matrix.driver }}"
if [[ "$should_continue" == true ]]; then
kernel_version=$(echo "$KERNEL_VERSION" | tr -d ' \n')
echo "kernel_version_${{ matrix.flavor }}=${kernel_version}" >> $GITHUB_OUTPUT
echo "kernel_version_${{ matrix.flavor }}=${kernel_version}"
echo "kernel_version_${{ matrix.flavor }}=${kernel_version}" >> kernel_versions.txt
echo "SHIVAAAAAA $KERNEL_VERSION "
echo "Proceeding with kernel_version=$kernel_version e2e-tests-nvidiadriver."
else
echo "The last successful e2e-tests-nvidiadriver was on the same tag ($KERNEL_VERSION). Skipping e2e-tests-nvidiadriver."
fi
# - name: Print all outputs
# run: cat kernel_versions.txt

aggregate_kernel_version:
runs-on: ubuntu-latest
needs: pre-compiled
Expand All @@ -165,32 +158,21 @@ jobs:
- name: get kernel versions
id: get_kernel_versions
run: |
echo "SHIBA1"
v=$(echo '${{ needs.pre-compiled.outputs.kernel_version_generic }}')
echo $v
# - name: get kernel versions
# # id: get_kernel_versions
# run: |
# echo "SHIVA"
# echo "kernel_version_generic: ${{ fromJson(needs.pre-compiled.outputs.kernel_version_generic) }}"
# # echo "==============="
# # echo "kernel_version_aws: ${{ fromJson(needs.pre-compiled.outputs.kernel_version_aws) }}"
# # echo "==============="
# # echo "kernel_version_not_empty=0" >> $GITHUB_OUTPUT
# # currently azure image upgrade is failing
# # ("${{ steps.set_kernel_versions.outputs.kernel_version_azure }}") \
# # kernel_versions=("${{ steps.set_kernel_versions.outputs.kernel_version_aws }}") \
# # ("${{ steps.set_kernel_versions.outputs.kernel_version_generic }}") \
# # ("${{ steps.set_kernel_versions.outputs.kernel_version_nvidia }}") \
# # ("${{ steps.set_kernel_versions.outputs.kernel_version_oracle }}")
# # # Convert array to JSON format and assign
# # echo "[]" > $GITHUB_WORKSPACE/matrix_values.json
# # printf '%s\n' "${kernel_versions[@]}" | jq -R . | jq -s . > $GITHUB_WORKSPACE/matrix_values.json
# # echo "kernel_versions=$(cat $GITHUB_WORKSPACE/matrix_values.json | jq -c .)" >> $GITHUB_OUTPUT
# # if [ ${#kernel_versions[@]} -ne 0 ]; then
# # echo "kernel_version_not_empty=1" >> $GITHUB_OUTPUT
# # fi
echo "SHIVA $v"
echo "kernel_version_not_empty=0" >> $GITHUB_OUTPUT
kernel_versions=("${{ needs.pre-compiled.outputs.kernel_version_aws }}") \
("${{ needs.pre-compiled.outputs.kernel_version_generic }}") \
("${{ steps.set_kernel_versions.outputs.kernel_version_nvidia }}") \
("${{ steps.set_kernel_versions.outputs.kernel_version_oracle }}")
# currently azure image upgrade is failing
# ("${{ needs.pre-compiled.outputs.kernel_version_azure }}") \
echo "[]" > $GITHUB_WORKSPACE/matrix_values.json
printf '%s\n' "${kernel_versions[@]}" | jq -R . | jq -s . > $GITHUB_WORKSPACE/matrix_values.json
if [ ${#kernel_versions[@]} -ne 0 ]; then
echo "kernel_version_not_empty=1" >> $GITHUB_OUTPUT
fi
e2e-tests-nvidiadriver:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2096e58

Please sign in to comment.