Skip to content

Commit 1a4b2ce

Browse files
authored
Fix GPU addon integ test workflow (#1986)
1 parent c6341af commit 1a4b2ce

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

.github/workflows/test-artifacts.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,10 @@ jobs:
13281328
aws-region: us-west-2
13291329
role-duration-seconds: ${{ env.TERRAFORM_AWS_ASSUME_ROLE_DURATION }}
13301330

1331+
- name: Login ECR
1332+
id: login-ecr
1333+
uses: aws-actions/amazon-ecr-login@v2
1334+
13311335
- name: Install Terraform
13321336
uses: hashicorp/setup-terraform@v3
13331337
with:
@@ -1357,29 +1361,6 @@ jobs:
13571361
terraform destroy -auto-approve && exit 1
13581362
fi
13591363
1360-
- name: Run Go tests with retry
1361-
uses: nick-fields/retry@v2
1362-
with:
1363-
max_attempts: 5
1364-
timeout_minutes: 60
1365-
retry_wait_seconds: 30
1366-
command: |
1367-
if [ "${{ matrix.arrays.terraform_dir }}" != "" ]; then
1368-
cd "${{ matrix.arrays.terraform_dir }}"
1369-
else
1370-
cd terraform/eks/addon/gpu
1371-
fi
1372-
echo "Getting EKS cluster name"
1373-
EKS_CLUSTER_NAME=$(terraform output -raw eks_cluster_name)
1374-
echo "Cluster name is ${EKS_CLUSTER_NAME}"
1375-
1376-
if go test ${{ matrix.arrays.test_dir }} -eksClusterName ${EKS_CLUSTER_NAME} -computeType=EKS -v -eksDeploymentStrategy=DAEMON -eksGpuType=nvidia; then
1377-
echo "Tests passed"
1378-
else
1379-
echo "Tests failed"
1380-
exit 1
1381-
fi
1382-
13831364
- name: Terraform destroy
13841365
if: always()
13851366
uses: nick-fields/retry@v2

0 commit comments

Comments
 (0)