|
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:
|
@@ -170,7 +170,7 @@ jobs:
|
170 | 170 | export USE_HOST_DEPS=1
|
171 | 171 | pushd .
|
172 | 172 | cd tests/py/dynamo
|
173 |
| - python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py |
| 173 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py |
174 | 174 | popd
|
175 | 175 |
|
176 | 176 | tests-py-torch-compile-be:
|
@@ -198,9 +198,9 @@ jobs:
|
198 | 198 | export USE_HOST_DEPS=1
|
199 | 199 | pushd .
|
200 | 200 | cd tests/py/dynamo
|
201 |
| - python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/ |
202 |
| - python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_complete_be_e2e_test_results.xml --ir torch_compile models/test_models.py |
203 |
| - python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py |
| 201 | + python -m pytest -ra -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/ |
| 202 | + 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 |
| 203 | + python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py |
204 | 204 | popd
|
205 | 205 |
|
206 | 206 | tests-py-dynamo-core:
|
@@ -228,9 +228,39 @@ jobs:
|
228 | 228 | export USE_HOST_DEPS=1
|
229 | 229 | pushd .
|
230 | 230 | cd tests/py/dynamo
|
231 |
| - python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/ |
232 |
| - python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/ |
233 |
| - python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/ |
| 231 | + 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/ |
| 232 | + python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/ |
| 233 | + python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/ |
| 234 | + popd |
| 235 | +
|
| 236 | + tests-py-dynamo-cudagraphs: |
| 237 | + name: Test dynamo cudagraphs [Python] |
| 238 | + needs: [generate-matrix, build] |
| 239 | + strategy: |
| 240 | + fail-fast: false |
| 241 | + matrix: |
| 242 | + include: |
| 243 | + - repository: pytorch/tensorrt |
| 244 | + package-name: torch_tensorrt |
| 245 | + pre-script: packaging/pre_build_script.sh |
| 246 | + post-script: packaging/post_build_script.sh |
| 247 | + smoke-test-script: packaging/smoke_test_script.sh |
| 248 | + uses: ./.github/workflows/linux-test.yml |
| 249 | + with: |
| 250 | + job-name: tests-py-dynamo-cudagraphs |
| 251 | + repository: "pytorch/tensorrt" |
| 252 | + ref: "" |
| 253 | + test-infra-repository: pytorch/test-infra |
| 254 | + test-infra-ref: main |
| 255 | + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} |
| 256 | + pre-script: ${{ matrix.pre-script }} |
| 257 | + script: | |
| 258 | + export USE_HOST_DEPS=1 |
| 259 | + pushd . |
| 260 | + cd tests/py/dynamo |
| 261 | + nvidia-smi |
| 262 | + 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 |
| 263 | + 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 |
234 | 264 | popd
|
235 | 265 |
|
236 | 266 | tests-py-core:
|
@@ -258,7 +288,7 @@ jobs:
|
258 | 288 | export USE_HOST_DEPS=1
|
259 | 289 | pushd .
|
260 | 290 | cd tests/py/core
|
261 |
| - python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_core_test_results.xml . |
| 291 | + python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_core_test_results.xml . |
262 | 292 | popd
|
263 | 293 |
|
264 | 294 | concurrency:
|
|
0 commit comments