Skip to content

Commit

Permalink
Pre-compiled image e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Sep 11, 2024
1 parent 81268eb commit e9aab7b
Showing 1 changed file with 23 additions and 28 deletions.
51 changes: 23 additions & 28 deletions .github/workflows/precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,26 @@ jobs:
env:
DIST: "ubuntu22.04"
run: |
echo "SHIVA#############"
docker images
driver_branch_json='${{ needs.set-driver-version-matrix.outputs.driver_branch }}'
driver_branch=$(echo "$driver_versions_json" | jq -r '.[]')
for DRIVER_BRANCH in $driver_branch; do
echo "SHIVA for loop 11"
docker images "${{ env.PRIVATE_REGISTRY }}/nvidia/driver:${DRIVER_BRANCH}-{{ matrix.kernel_version }}-{DIST}"
echo "SHIVA############# ${{ env.PRIVATE_REGISTRY }}/nvidia/driver:${{ matrix.driver-branch }}-${KERNEL_VERSION}-${{ matrix.flavor }}-{DIST}"
docker images
docker images "${{ env.PRIVATE_REGISTRY }}/nvidia/driver:${{ matrix.driver-branch }}-${KERNEL_VERSION}-${{ matrix.flavor }}-{DIST}"
done
echo "SHIVA"
- name: Save build image as a tarball
env:
DIST: "ubuntu22.04"
run: |
echo "SHIVA############# ${{ env.PRIVATE_REGISTRY }}/nvidia/driver:${{ matrix.driver-branch }}-${KERNEL_VERSION}-${{ matrix.flavor }}-{DIST}"
cat kernel_version.txt
docker save "${{ env.PRIVATE_REGISTRY }}/nvidia/driver:${{ matrix.driver-branch }}-${KERNEL_VERSION}-${{ matrix.flavor }}-{DIST}" \
-o driver_images_${{ matrix.driver-branch }}_${{ matrix.flavor }}.tar
docker images
docker images "${{ env.PRIVATE_REGISTRY }}/nvidia/driver:${{ matrix.driver-branch }}-${KERNEL_VERSION}-${{ matrix.flavor }}-{DIST}"
# - name: Upload build image as an artifact
# uses: actions/upload-artifact@v4
# with:
# name: driver-images-${{ matrix.driver-branch }}_${{ matrix.flavor }}
# path: driver_images_${{ matrix.driver-branch }}_${{ matrix.flavor }}.tar

determine-e2e-test-matrix:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -231,23 +239,10 @@ jobs:
KERNEL_VERSION="${{ matrix.kernel_version }}"
echo "KERNEL_VERSION=$KERNEL_VERSION" >> $GITHUB_ENV
- name: Check driver image locally
env:
DIST: "ubuntu22.04"
run: |
echo "SHIVA======"
docker images
driver_branch_json='${{ needs.set-driver-version-matrix.outputs.driver_branch }}'
driver_branch=$(echo "$driver_versions_json" | jq -r '.[]')
for DRIVER_BRANCH in $driver_branch; do
echo "SHIVA for loop 11"
docker images "${{ env.PRIVATE_REGISTRY }}/nvidia/driver:${DRIVER_BRANCH}-{{ matrix.kernel_version }}-{DIST}"
done
echo "SHIVA"
exit 1
# - name: Download Docker image artifact
# uses: actions/download-artifact@v3
# with:
# name: driver-images-${{ matrix.driver-branch }}_${{ matrix.flavor }}

- name: Upgrade the kernel for Precompiled e2e test
env:
Expand Down

0 comments on commit e9aab7b

Please sign in to comment.