|
75 | 75 | smoke-test-script: ${{ matrix.smoke-test-script }} |
76 | 76 | trigger-event: ${{ github.event_name }} |
77 | 77 |
|
| 78 | + tests-py-fail-fast: |
| 79 | + name: Test fail fast [Python] |
| 80 | + needs: [filter-matrix, build] |
| 81 | + strategy: |
| 82 | + fail-fast: false |
| 83 | + matrix: |
| 84 | + include: |
| 85 | + - repository: pytorch/tensorrt |
| 86 | + package-name: torch_tensorrt |
| 87 | + pre-script: packaging/pre_build_script.sh |
| 88 | + post-script: packaging/post_build_script.sh |
| 89 | + smoke-test-script: packaging/smoke_test_script.sh |
| 90 | + uses: ./.github/workflows/linux-test.yml |
| 91 | + with: |
| 92 | + job-name: tests-py-critical-fail-fast |
| 93 | + repository: "pytorch/tensorrt" |
| 94 | + ref: "" |
| 95 | + test-infra-repository: pytorch/test-infra |
| 96 | + test-infra-ref: main |
| 97 | + build-matrix: ${{ needs.filter-matrix.outputs.matrix }} |
| 98 | + pre-script: ${{ matrix.pre-script }} |
| 99 | + script: | |
| 100 | + export USE_HOST_DEPS=1 |
| 101 | + export CI_BUILD=1 |
| 102 | + export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH |
| 103 | + pushd . |
| 104 | + cd tests/py |
| 105 | + python -m pip install -r requirements.txt |
| 106 | +
|
| 107 | + # test dynamo |
| 108 | + python -m pytest -m critical --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_backend_test_results.xml -n 4 dynamo/backend/ |
| 109 | + python -m pytest -m critical -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_models_result.xml --ir dynamo dynamo/models/ |
| 110 | + python -m pytest -m critical --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_automatic_plugin_results.xml dynamo/automatic_plugin/ |
| 111 | + python -m pytest -m critical --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_partitioning_results.xml dynamo/partitioning/ |
| 112 | + python -m pytest -m critical --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_lowering_results.xml dynamo/lowering/ |
| 113 | + python -m pytest -m critical --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_runtime_results.xml dynamo/runtime/ |
| 114 | +
|
| 115 | + # test core |
| 116 | + python -m pytest -m critical --junitxml=${RUNNER_TEST_RESULTS_DIR}/core_test_results.xml core/ |
| 117 | + popd |
| 118 | +
|
78 | 119 | tests-py-torchscript-fe: |
79 | 120 | name: Test torchscript frontend [Python] |
80 | | - needs: [filter-matrix, build] |
| 121 | + needs: [filter-matrix, build, tests-py-fail-fast] |
81 | 122 | strategy: |
82 | 123 | fail-fast: false |
83 | 124 | matrix: |
@@ -113,7 +154,7 @@ jobs: |
113 | 154 |
|
114 | 155 | tests-py-dynamo-converters: |
115 | 156 | name: Test dynamo converters [Python] |
116 | | - needs: [filter-matrix, build] |
| 157 | + needs: [filter-matrix, build, tests-py-fail-fast] |
117 | 158 | strategy: |
118 | 159 | fail-fast: false |
119 | 160 | matrix: |
@@ -148,7 +189,7 @@ jobs: |
148 | 189 |
|
149 | 190 | tests-py-dynamo-fe: |
150 | 191 | name: Test dynamo frontend [Python] |
151 | | - needs: [filter-matrix, build] |
| 192 | + needs: [filter-matrix, build, tests-py-fail-fast] |
152 | 193 | strategy: |
153 | 194 | fail-fast: false |
154 | 195 | matrix: |
@@ -180,7 +221,7 @@ jobs: |
180 | 221 |
|
181 | 222 | tests-py-dynamo-serde: |
182 | 223 | name: Test dynamo export serde [Python] |
183 | | - needs: [filter-matrix, build] |
| 224 | + needs: [filter-matrix, build, tests-py-fail-fast] |
184 | 225 | strategy: |
185 | 226 | fail-fast: false |
186 | 227 | matrix: |
@@ -245,7 +286,7 @@ jobs: |
245 | 286 |
|
246 | 287 | tests-py-dynamo-core: |
247 | 288 | name: Test dynamo core [Python] |
248 | | - needs: [filter-matrix, build] |
| 289 | + needs: [filter-matrix, build, tests-py-fail-fast] |
249 | 290 | strategy: |
250 | 291 | fail-fast: false |
251 | 292 | matrix: |
@@ -278,7 +319,7 @@ jobs: |
278 | 319 |
|
279 | 320 | tests-py-dynamo-cudagraphs: |
280 | 321 | name: Test dynamo cudagraphs [Python] |
281 | | - needs: [filter-matrix, build] |
| 322 | + needs: [filter-matrix, build, tests-py-fail-fast] |
282 | 323 | strategy: |
283 | 324 | fail-fast: false |
284 | 325 | matrix: |
@@ -311,7 +352,7 @@ jobs: |
311 | 352 |
|
312 | 353 | tests-py-core: |
313 | 354 | name: Test core [Python] |
314 | | - needs: [filter-matrix, build] |
| 355 | + needs: [filter-matrix, build, tests-py-fail-fast] |
315 | 356 | strategy: |
316 | 357 | fail-fast: false |
317 | 358 | matrix: |
|
0 commit comments