Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 4 additions & 23 deletions .github/workflows/test-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,10 @@ jobs:
aws-region: us-west-2
role-duration-seconds: ${{ env.TERRAFORM_AWS_ASSUME_ROLE_DURATION }}

- name: Login ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Install Terraform
uses: hashicorp/setup-terraform@v3
with:
Expand Down Expand Up @@ -1357,29 +1361,6 @@ jobs:
terraform destroy -auto-approve && exit 1
fi

- name: Run Go tests with retry
uses: nick-fields/retry@v2
with:
max_attempts: 5
timeout_minutes: 60
retry_wait_seconds: 30
command: |
if [ "${{ matrix.arrays.terraform_dir }}" != "" ]; then
cd "${{ matrix.arrays.terraform_dir }}"
else
cd terraform/eks/addon/gpu
fi
echo "Getting EKS cluster name"
EKS_CLUSTER_NAME=$(terraform output -raw eks_cluster_name)
echo "Cluster name is ${EKS_CLUSTER_NAME}"

if go test ${{ matrix.arrays.test_dir }} -eksClusterName ${EKS_CLUSTER_NAME} -computeType=EKS -v -eksDeploymentStrategy=DAEMON -eksGpuType=nvidia; then
echo "Tests passed"
else
echo "Tests failed"
exit 1
fi

- name: Terraform destroy
if: always()
uses: nick-fields/retry@v2
Expand Down
Loading