Skip to content

Draft aws driver kernel validation #56

Draft aws driver kernel validation

Draft aws driver kernel validation #56

Workflow file for this run

# Copyright 2024 NVIDIA CORPORATION
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: CI
permissions:
id-token: write
contents: read
on:
workflow_run:
workflows: [image]
types:
- success
branches:
- draftawsvalidation
pull_request:
types:
- opened
- synchronize
branches:
- main
# - release-*
# - drivervalidation
# - draftawsvalidation
push:
branches:
- main
# - release-*
# - drivervalidation
# - draftawsvalidation
jobs:
e2e-tests-nvidiadriver:
runs-on: ubuntu-latest
strategy:
matrix:
driver:
- 535.183.06
- 550.90.07
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: "us-east-2"
role-duration-seconds: 1800
- name: check aws env
run: |
aws ec2 describe-key-pairs --query 'KeyPairs[*].KeyName' --output text
# - name: Set up Holodeck
# uses: NVIDIA/holodeck@main
# 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 }}
# AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
# 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: Set and Calculate test vars
# run: |
# echo "instance_hostname=ubuntu@${{ steps.get_public_dns_name.outputs.result }}" >> $GITHUB_ENV
# echo "private_key=${{ github.workspace }}/key.pem" >> $GITHUB_ENV
# # echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
# echo "COMMIT_SHORT_SHA=f0d936d3" >> $GITHUB_ENV
# - name: Validate gpu driver
# env:
# TEST_CASE: "./tests/cases/nvidia-driver.sh"
# run: |
# sudo chmod 644 ${{ github.workspace }}/.cache/key
# echo "${{ secrets.AWS_SSH_KEY }}" > ${private_key} && chmod 400 ${private_key}
# ./tests/ci-run-e2e.sh ${TEST_CASE} ${COMMIT_SHORT_SHA}-${{ matrix.driver }}