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 af1d66c commit 993b95c
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,23 +212,23 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Holodeck
uses: NVIDIA/[email protected]
env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SSH_KEY: ${{ secrets.AWS_SSH_KEY }}
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_ssh_key: ${{ secrets.AWS_SSH_KEY }}
holodeck_config: "tests/holodeck.yaml"
# - name: Set up Holodeck
# uses: NVIDIA/[email protected]
# env:
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SSH_KEY: ${{ secrets.AWS_SSH_KEY }}
# with:
# aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws_ssh_key: ${{ secrets.AWS_SSH_KEY }}
# holodeck_config: "tests/holodeck.yaml"

- name: Get public dns name
id: get_public_dns_name
uses: mikefarah/yq@master
with:
cmd: yq '.status.properties[] | select(.name == "public-dns-name") | .value' /github/workspace/.cache/holodeck.yaml
# - name: Get public dns name
# id: get_public_dns_name
# uses: mikefarah/yq@master
# with:
# cmd: yq '.status.properties[] | select(.name == "public-dns-name") | .value' /github/workspace/.cache/holodeck.yaml
- name: Set and Calculate test vars
run: |
echo "instance_hostname=ubuntu@${{ steps.get_public_dns_name.outputs.result }}" >> $GITHUB_ENV
Expand All @@ -252,9 +252,6 @@ jobs:
driver_branch=$(echo "$driver_branch_json" | jq -r '.[]')
for DRIVER_BRANCH in $driver_branch; do
echo "Downloading driver-images-${DRIVER_BRANCH}-${KERNEL_VERSION}-${DIST}"
echo \"gh api --method GET "/repos/${{ github.repository }}/actions/artifacts" \
jq ".artifacts[] | select(.name == \"$driver-images-${DRIVER_BRANCH}-${KERNEL_VERSION}-${DIST}\") | .archive_download_url" | \
xargs curl -o ./artifacts/$image.tar -L\"
gh api --method GET "/repos/${{ github.repository }}/actions/artifacts" \
jq ".artifacts[] | select(.name == \"$driver-images-${DRIVER_BRANCH}-${KERNEL_VERSION}-${DIST}\") | .archive_download_url" | \
xargs curl -o ./artifacts/$image.tar -L
Expand Down

0 comments on commit 993b95c

Please sign in to comment.