|
8 | 8 | - nightly
|
9 | 9 | - release/*
|
10 | 10 | tags:
|
11 |
| - # NOTE: Binary build pipelines should only get triggered on release candidate builds |
12 |
| - # Release candidate tags look like: v1.11.0-rc1 |
13 |
| - - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ |
| 11 | + # NOTE: Binary build pipelines should only get triggered on release candidate builds |
| 12 | + # Release candidate tags look like: v1.11.0-rc1 |
| 13 | + - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ |
14 | 14 | workflow_dispatch:
|
15 | 15 |
|
16 | 16 | jobs:
|
|
84 | 84 | popd
|
85 | 85 | pushd .
|
86 | 86 | cd tests/py/ts
|
87 |
| - python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/ |
88 |
| - python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/ |
89 |
| - python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/ |
| 87 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/ |
| 88 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/ |
| 89 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/ |
90 | 90 | popd
|
91 | 91 |
|
92 | 92 | tests-py-dynamo-converters:
|
@@ -114,7 +114,7 @@ jobs:
|
114 | 114 | export USE_HOST_DEPS=1
|
115 | 115 | pushd .
|
116 | 116 | cd tests/py/dynamo
|
117 |
| - python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 10 conversion/ |
| 117 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 8 conversion/ |
118 | 118 | popd
|
119 | 119 |
|
120 | 120 | tests-py-dynamo-fe:
|
@@ -142,8 +142,8 @@ jobs:
|
142 | 142 | export USE_HOST_DEPS=1
|
143 | 143 | pushd .
|
144 | 144 | cd tests/py/dynamo
|
145 |
| - python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_fe_test_results.xml --ir dynamo models/test_models_export.py |
146 |
| - python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/test_dyn_models.py |
| 145 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_fe_test_results.xml --ir dynamo models/test_models_export.py |
| 146 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/test_dyn_models.py |
147 | 147 | popd
|
148 | 148 |
|
149 | 149 | tests-py-dynamo-serde:
|
@@ -171,7 +171,7 @@ jobs:
|
171 | 171 | export USE_HOST_DEPS=1
|
172 | 172 | pushd .
|
173 | 173 | cd tests/py/dynamo
|
174 |
| - python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py |
| 174 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py |
175 | 175 | popd
|
176 | 176 |
|
177 | 177 | tests-py-torch-compile-be:
|
@@ -199,9 +199,9 @@ jobs:
|
199 | 199 | export USE_HOST_DEPS=1
|
200 | 200 | pushd .
|
201 | 201 | cd tests/py/dynamo
|
202 |
| - python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/ |
203 |
| - python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_complete_be_e2e_test_results.xml --ir torch_compile models/test_models.py |
204 |
| - python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py |
| 202 | + python -m pytest -ra -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/ |
| 203 | + python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_complete_be_e2e_test_results.xml --ir torch_compile models/test_models.py |
| 204 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py |
205 | 205 | popd
|
206 | 206 |
|
207 | 207 | tests-py-dynamo-core:
|
@@ -229,9 +229,39 @@ jobs:
|
229 | 229 | export USE_HOST_DEPS=1
|
230 | 230 | pushd .
|
231 | 231 | cd tests/py/dynamo
|
232 |
| - python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/ |
233 |
| - python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/ |
234 |
| - python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/ |
| 232 | + python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml --ignore runtime/test_002_cudagraphs_py.py --ignore runtime/test_002_cudagraphs_cpp.py runtime/ |
| 233 | + python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/ |
| 234 | + python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/ |
| 235 | + popd |
| 236 | +
|
| 237 | + tests-py-dynamo-cudagraphs: |
| 238 | + name: Test dynamo cudagraphs [Python] |
| 239 | + needs: [generate-matrix, build] |
| 240 | + strategy: |
| 241 | + fail-fast: false |
| 242 | + matrix: |
| 243 | + include: |
| 244 | + - repository: pytorch/tensorrt |
| 245 | + package-name: torch_tensorrt |
| 246 | + pre-script: packaging/pre_build_script.sh |
| 247 | + post-script: packaging/post_build_script.sh |
| 248 | + smoke-test-script: packaging/smoke_test_script.sh |
| 249 | + uses: ./.github/workflows/linux-test.yml |
| 250 | + with: |
| 251 | + job-name: tests-py-dynamo-cudagraphs |
| 252 | + repository: "pytorch/tensorrt" |
| 253 | + ref: "" |
| 254 | + test-infra-repository: pytorch/test-infra |
| 255 | + test-infra-ref: main |
| 256 | + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} |
| 257 | + pre-script: ${{ matrix.pre-script }} |
| 258 | + script: | |
| 259 | + export USE_HOST_DEPS=1 |
| 260 | + pushd . |
| 261 | + cd tests/py/dynamo |
| 262 | + nvidia-smi |
| 263 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_cudagraphs_cpp_test_results.xml runtime/test_002_cudagraphs_cpp.py || true |
| 264 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_cudagraphs_py_test_results.xml runtime/test_002_cudagraphs_py.py || true |
235 | 265 | popd
|
236 | 266 |
|
237 | 267 | tests-py-core:
|
@@ -259,7 +289,7 @@ jobs:
|
259 | 289 | export USE_HOST_DEPS=1
|
260 | 290 | pushd .
|
261 | 291 | cd tests/py/core
|
262 |
| - python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_core_test_results.xml . |
| 292 | + python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_core_test_results.xml . |
263 | 293 | popd
|
264 | 294 |
|
265 | 295 | concurrency:
|
|
0 commit comments