@@ -30,10 +30,12 @@ jobs:
3030 tests/examples/**
3131
3232 # #### PyTorch Example Tests (speculative_decoding requires 26.01 image) #####
33- torch-pr :
33+ torch :
3434 needs : [pr-gate]
35- if : startsWith(github.ref, 'refs/heads/pull-request/') && needs.pr-gate.outputs.any_changed == 'true'
36- strategy : &torch_strategy
35+ if : >-
36+ needs.pr-gate.outputs.any_changed == 'true' ||
37+ !startsWith(github.ref, 'refs/heads/pull-request/')
38+ strategy :
3739 fail-fast : false
3840 matrix :
3941 example : [llm_distill, llm_qat, llm_sparsity, diffusers_sparsity]
4749 example : ${{ matrix.example }}
4850 timeout_minutes : 30
4951 pip_install_extras : " [hf,dev-test]"
50- runner : linux-amd64-gpu-rtxpro6000-latest-1
51-
52- torch-non-pr :
53- if : ${{ !startsWith(github.ref, 'refs/heads/pull-request/') }}
54- strategy : *torch_strategy
55- uses : ./.github/workflows/_example_tests_runner.yml
56- secrets : inherit
57- with :
58- docker_image : " nvcr.io/nvidia/pytorch:${{ matrix.docker_image || '26.03' }}-py3"
59- example : ${{ matrix.example }}
60- timeout_minutes : 30
61- pip_install_extras : " [hf,dev-test]"
62- runner : linux-amd64-gpu-rtxpro6000-latest-2
52+ runner : ${{ startsWith(github.ref, 'refs/heads/pull-request/') && 'linux-amd64-gpu-rtxpro6000-latest-1' || 'linux-amd64-gpu-rtxpro6000-latest-2' }}
6353
64- # #### TensorRT-LLM Example Tests #####
54+ # #### TensorRT-LLM Example Tests (pr/non-pr split: non-pr runs extra autodeploy+eval examples) #####
6555 trtllm-pr :
6656 needs : [pr-gate]
6757 if : startsWith(github.ref, 'refs/heads/pull-request/') && needs.pr-gate.outputs.any_changed == 'true'
@@ -92,39 +82,27 @@ jobs:
9282 runner : linux-amd64-gpu-rtxpro6000-latest-2
9383
9484 # #### Megatron Example Tests #####
95- megatron-pr :
85+ megatron :
9686 needs : [pr-gate]
97- if : startsWith(github.ref, 'refs/heads/pull-request/') && needs.pr-gate.outputs.any_changed == 'true'
98- strategy : &nemo_strategy
99- fail-fast : false
100- matrix :
101- example : [megatron_bridge]
102- uses : ./.github/workflows/_example_tests_runner.yml
103- secrets : inherit
104- with :
105- docker_image : " nvcr.io/nvidia/nemo:26.02"
106- example : ${{ matrix.example }}
107- timeout_minutes : 30
108- pip_install_extras : " [hf,puzzletron,dev-test]"
109- runner : linux-amd64-gpu-rtxpro6000-latest-1
110-
111- megatron-non-pr :
112- if : ${{ !startsWith(github.ref, 'refs/heads/pull-request/') }}
113- strategy : *nemo_strategy
87+ if : >-
88+ needs.pr-gate.outputs.any_changed == 'true' ||
89+ !startsWith(github.ref, 'refs/heads/pull-request/')
11490 uses : ./.github/workflows/_example_tests_runner.yml
11591 secrets : inherit
11692 with :
11793 docker_image : " nvcr.io/nvidia/nemo:26.02"
118- example : ${{ matrix.example }}
94+ example : megatron_bridge
11995 timeout_minutes : 30
12096 pip_install_extras : " [hf,puzzletron,dev-test]"
121- runner : linux-amd64-gpu-rtxpro6000-latest-2
97+ runner : ${{ startsWith(github.ref, 'refs/heads/pull-request/') && ' linux-amd64-gpu-rtxpro6000-latest-1' || 'linux-amd64-gpu-rtxpro6000-latest-2' }}
12298
12399 # #### ONNX/TensorRT Example Tests #####
124- onnx-pr :
100+ onnx :
125101 needs : [pr-gate]
126- if : startsWith(github.ref, 'refs/heads/pull-request/') && needs.pr-gate.outputs.any_changed == 'true'
127- strategy : &onnx_strategy
102+ if : >-
103+ needs.pr-gate.outputs.any_changed == 'true' ||
104+ !startsWith(github.ref, 'refs/heads/pull-request/')
105+ strategy :
128106 fail-fast : false
129107 matrix :
130108 example : [diffusers, torch_onnx]
@@ -134,33 +112,22 @@ jobs:
134112 docker_image : " nvcr.io/nvidia/tensorrt:26.02-py3"
135113 example : ${{ matrix.example }}
136114 pip_install_extras : " [onnx,hf,dev-test]"
137- runner : linux-amd64-gpu-rtxpro6000-latest-1
138-
139- onnx-non-pr :
140- if : ${{ !startsWith(github.ref, 'refs/heads/pull-request/') }}
141- strategy : *onnx_strategy
142- uses : ./.github/workflows/_example_tests_runner.yml
143- secrets : inherit
144- with :
145- docker_image : " nvcr.io/nvidia/tensorrt:26.02-py3"
146- example : ${{ matrix.example }}
147- pip_install_extras : " [onnx,hf,dev-test]"
148- runner : linux-amd64-gpu-rtxpro6000-latest-2
115+ runner : ${{ startsWith(github.ref, 'refs/heads/pull-request/') && 'linux-amd64-gpu-rtxpro6000-latest-1' || 'linux-amd64-gpu-rtxpro6000-latest-2' }}
149116
150117 # #### Required Check for PR #####
151118 example-pr-required-check :
152119 # Run even if example tests are skipped
153120 if : ${{ startsWith(github.ref, 'refs/heads/pull-request/') && always() }}
154- needs : [pr-gate, torch-pr , trtllm-pr, megatron-pr , onnx-pr ]
121+ needs : [pr-gate, torch, trtllm-pr, megatron, onnx]
155122 runs-on : ubuntu-latest
156123 steps :
157- - name : Required GPU tests did not succeed
124+ - name : Required example tests did not succeed
158125 if : |
159126 needs.pr-gate.result != 'success' ||
160127 (needs.pr-gate.outputs.any_changed == 'true' && (
161- needs.torch-pr .result != 'success' ||
128+ needs.torch.result != 'success' ||
162129 needs.trtllm-pr.result != 'success' ||
163- needs.megatron-pr .result != 'success' ||
164- needs.onnx-pr .result != 'success'
130+ needs.megatron.result != 'success' ||
131+ needs.onnx.result != 'success'
165132 ))
166133 run : exit 1
0 commit comments