From 6a58a2f2f98af7355e168e534d6ee86285d5ce90 Mon Sep 17 00:00:00 2001 From: Jeffrey Chien Date: Mon, 22 Jun 2026 18:43:56 -0400 Subject: [PATCH] ci: guard empty matrix categories in integration test workflow --- .github/workflows/test-artifacts.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-artifacts.yml b/.github/workflows/test-artifacts.yml index 2da333ce23..e9f85fe65c 100644 --- a/.github/workflows/test-artifacts.yml +++ b/.github/workflows/test-artifacts.yml @@ -404,6 +404,7 @@ jobs: EC2NvidiaGPUIntegrationTest: needs: [ StartLocalStack, GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_gpu_matrix != '[]' }} name: ${{ matrix.arrays.wip && '[WIP] ' || '' }}${{matrix.arrays.testName}} runs-on: ubuntu-latest strategy: @@ -550,6 +551,7 @@ jobs: EC2LinuxIntegrationTest-0: needs: [ StartLocalStack, GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_linux_matrix_0 != '[]' }} name: 'EC2Linux-0' uses: ./.github/workflows/ec2-integration-test.yml with: @@ -653,7 +655,8 @@ jobs: secrets: inherit LinuxOnPremIntegrationTest: - needs: [GenerateTestMatrix, OutputEnvVariables] + needs: [StartLocalStack, GenerateTestMatrix, OutputEnvVariables] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_linux_onprem_matrix != '[]' }} name: 'OnpremLinux' uses: ./.github/workflows/ec2-integration-test.yml with: @@ -675,6 +678,7 @@ jobs: EC2LinuxIntegrationTestITAR: needs: [ StartLocalStackITAR, GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_linux_itar_matrix != '[]' }} name: 'EC2LinuxITAR' uses: ./.github/workflows/ec2-integration-test.yml with: @@ -695,6 +699,7 @@ jobs: EC2LinuxIntegrationTestCN: needs: [ StartLocalStackCN, GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_linux_china_matrix != '[]' }} name: 'EC2LinuxCN' uses: ./.github/workflows/ec2-integration-test.yml with: @@ -715,6 +720,7 @@ jobs: EC2SELinuxIntegrationTest: needs: [ StartLocalStack, GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_selinux_matrix != '[]' }} name: 'EC2SELinux' uses: ./.github/workflows/ec2-integration-test.yml with: @@ -733,6 +739,7 @@ jobs: EC2WinIntegrationTest: needs: [OutputEnvVariables, GenerateTestMatrix] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_windows_matrix != '[]' }} name: ${{matrix.arrays.testName}} runs-on: ubuntu-latest strategy: @@ -828,6 +835,7 @@ jobs: terraform destroy --auto-approve EC2DarwinIntegrationTest: needs: [GenerateTestMatrix, OutputEnvVariables] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_mac_matrix != '[]' }} name: ${{ matrix.arrays.wip && '[WIP] ' || '' }}${{matrix.arrays.testName}} runs-on: ubuntu-latest strategy: @@ -976,6 +984,7 @@ jobs: name: ${{ matrix.arrays.wip && '[WIP] ' || '' }}${{matrix.arrays.testName}} runs-on: ubuntu-latest needs: [ GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.ecs_ec2_launch_daemon_matrix != '[]' }} strategy: fail-fast: false matrix: @@ -1065,6 +1074,7 @@ jobs: name: ${{ matrix.arrays.wip && '[WIP] ' || '' }}${{matrix.arrays.testName}} runs-on: ubuntu-latest needs: [ GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.ecs_fargate_matrix != '[]' }} strategy: fail-fast: false matrix: @@ -1151,6 +1161,7 @@ jobs: name: ${{ matrix.arrays.wip && '[WIP] ' || '' }}${{matrix.arrays.testName}} runs-on: ubuntu-latest needs: [ GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.eks_daemon_matrix != '[]' }} strategy: fail-fast: false matrix: @@ -1261,6 +1272,7 @@ jobs: name: ${{ matrix.arrays.wip && '[WIP] ' || '' }}${{matrix.arrays.testName}} runs-on: ubuntu-latest needs: [ GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.eks_deployment_matrix != '[]' }} strategy: fail-fast: false matrix: @@ -1346,6 +1358,7 @@ jobs: PerformanceTrackingTest: name: ${{ matrix.arrays.wip && '[WIP] ' || '' }}${{matrix.arrays.testName}} needs: [ GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_performance_matrix != '[]' }} runs-on: ubuntu-latest strategy: fail-fast: false @@ -1428,6 +1441,7 @@ jobs: EC2WinPerformanceTest: name: ${{ matrix.arrays.wip && '[WIP] ' || '' }}${{matrix.arrays.testName}} needs: [ GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_windows_performance_matrix != '[]' }} runs-on: ubuntu-latest strategy: fail-fast: false @@ -1510,6 +1524,7 @@ jobs: StressTrackingTest: name: ${{ matrix.arrays.wip && '[WIP] ' || '' }}${{matrix.arrays.testName}} needs: [GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_stress_matrix != '[]' }} runs-on: ubuntu-latest strategy: fail-fast: false @@ -1593,6 +1608,7 @@ jobs: EC2WinStressTrackingTest: name: ${{ matrix.arrays.wip && '[WIP] ' || '' }}${{matrix.arrays.testName}} needs: [GenerateTestMatrix, OutputEnvVariables] + if: ${{ needs.GenerateTestMatrix.outputs.ec2_windows_stress_matrix != '[]' }} runs-on: ubuntu-latest strategy: fail-fast: false @@ -1677,6 +1693,7 @@ jobs: GPUEndToEndTest: name: ${{matrix.arrays.testName}} needs: [ GenerateTestMatrix, OutputEnvVariables ] + if: ${{ needs.GenerateTestMatrix.outputs.eks_addon_matrix != '[]' }} runs-on: ubuntu-latest strategy: fail-fast: false