@@ -30,10 +30,10 @@ 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 : needs.pr-gate.outputs.any_changed == 'true'
36+ strategy :
3737 fail-fast : false
3838 matrix :
3939 example : [llm_distill, llm_qat, llm_sparsity, diffusers_sparsity]
4747 example : ${{ matrix.example }}
4848 timeout_minutes : 30
4949 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
50+ runner : ${{ startsWith(github.ref, 'refs/heads/pull-request/') && 'linux-amd64-gpu-rtxpro6000-latest-1' || 'linux-amd64-gpu-rtxpro6000-latest-2' }}
6351
64- # #### TensorRT-LLM Example Tests #####
52+ # #### TensorRT-LLM Example Tests (pr/non-pr split: non-pr runs extra autodeploy+eval examples) #####
6553 trtllm-pr :
6654 needs : [pr-gate]
6755 if : startsWith(github.ref, 'refs/heads/pull-request/') && needs.pr-gate.outputs.any_changed == 'true'
@@ -92,39 +80,23 @@ jobs:
9280 runner : linux-amd64-gpu-rtxpro6000-latest-2
9381
9482 # #### Megatron Example Tests #####
95- megatron-pr :
83+ megatron :
9684 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
85+ if : needs.pr-gate.outputs.any_changed == 'true'
11486 uses : ./.github/workflows/_example_tests_runner.yml
11587 secrets : inherit
11688 with :
11789 docker_image : " nvcr.io/nvidia/nemo:26.02"
118- example : ${{ matrix.example }}
90+ example : megatron_bridge
11991 timeout_minutes : 30
12092 pip_install_extras : " [hf,puzzletron,dev-test]"
121- runner : linux-amd64-gpu-rtxpro6000-latest-2
93+ runner : ${{ startsWith(github.ref, 'refs/heads/pull-request/') && ' linux-amd64-gpu-rtxpro6000-latest-1' || 'linux-amd64-gpu-rtxpro6000-latest-2' }}
12294
12395 # #### ONNX/TensorRT Example Tests #####
124- onnx-pr :
96+ onnx :
12597 needs : [pr-gate]
126- if : startsWith(github.ref, 'refs/heads/pull-request/') && needs.pr-gate.outputs.any_changed == 'true'
127- strategy : &onnx_strategy
98+ if : needs.pr-gate.outputs.any_changed == 'true'
99+ strategy :
128100 fail-fast : false
129101 matrix :
130102 example : [diffusers, torch_onnx]
@@ -134,33 +106,22 @@ jobs:
134106 docker_image : " nvcr.io/nvidia/tensorrt:26.02-py3"
135107 example : ${{ matrix.example }}
136108 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
109+ runner : ${{ startsWith(github.ref, 'refs/heads/pull-request/') && 'linux-amd64-gpu-rtxpro6000-latest-1' || 'linux-amd64-gpu-rtxpro6000-latest-2' }}
149110
150111 # #### Required Check for PR #####
151112 example-pr-required-check :
152113 # Run even if example tests are skipped
153114 if : ${{ startsWith(github.ref, 'refs/heads/pull-request/') && always() }}
154- needs : [pr-gate, torch-pr , trtllm-pr, megatron-pr , onnx-pr ]
115+ needs : [pr-gate, torch, trtllm-pr, megatron, onnx]
155116 runs-on : ubuntu-latest
156117 steps :
157- - name : Required GPU tests did not succeed
118+ - name : Required example tests did not succeed
158119 if : |
159120 needs.pr-gate.result != 'success' ||
160121 (needs.pr-gate.outputs.any_changed == 'true' && (
161- needs.torch-pr .result != 'success' ||
122+ needs.torch.result != 'success' ||
162123 needs.trtllm-pr.result != 'success' ||
163- needs.megatron-pr .result != 'success' ||
164- needs.onnx-pr .result != 'success'
124+ needs.megatron.result != 'success' ||
125+ needs.onnx.result != 'success'
165126 ))
166127 run : exit 1
0 commit comments