2424 with-rocm : false
2525 with-cpu : false
2626
27- build :
27+ substitute-runner :
2828 needs : generate-matrix
29+ outputs :
30+ matrix : ${{ steps.substitute.outputs.matrix }}
31+ runs-on : ubuntu-latest
32+ steps :
33+ - name : Substitute runner
34+ id : substitute
35+ run : |
36+ echo matrix="$(echo '${{ needs.generate-matrix.outputs.matrix }}' | sed -e 's/windows.8xlarge.nvidia.gpu/windows.g5.4xlarge.nvidia.gpu/g')" >> ${GITHUB_OUTPUT}
37+
38+ build :
39+ needs : substitute-runner
2940 permissions :
3041 id-token : write
3142 contents : read
3546 include :
3647 - repository : pytorch/tensorrt
3748 pre-script : packaging/pre_build_script_windows.sh
49+ env-script : packaging/vc_env_helper.bat
3850 smoke-test-script : packaging/smoke_test_windows.py
3951 package-name : torch_tensorrt
4052 name : Build torch-tensorrt whl package
@@ -44,12 +56,44 @@ jobs:
4456 ref : " "
4557 test-infra-repository : pytorch/test-infra
4658 test-infra-ref : main
47- build-matrix : ${{ needs.generate-matrix .outputs.matrix }}
59+ build-matrix : ${{ needs.substitute-runner .outputs.matrix }}
4860 pre-script : ${{ matrix.pre-script }}
61+ env-script : ${{ matrix.env-script }}
4962 smoke-test-script : ${{ matrix.smoke-test-script }}
5063 package-name : ${{ matrix.package-name }}
5164 trigger-event : ${{ github.event_name }}
5265
66+ tests-py-torchscript-fe :
67+ name : Test torchscript frontend [Python]
68+ needs : [generate-matrix, build]
69+ strategy :
70+ fail-fast : false
71+ matrix :
72+ include :
73+ - repository : pytorch/tensorrt
74+ package-name : torch_tensorrt
75+ uses : ./.github/workflows/windows-test.yml
76+ with :
77+ job-name : tests-py-torchscript-fe
78+ repository : ${{ matrix.repository }}
79+ ref : " "
80+ test-infra-repository : pytorch/test-infra
81+ test-infra-ref : main
82+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
83+ pre-script : packaging/driver_upgrade.bat
84+ script : |
85+ export USE_HOST_DEPS=1
86+ pushd .
87+ cd tests/modules
88+ python hub.py
89+ popd
90+ pushd .
91+ cd tests/py/ts
92+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/
93+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
94+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
95+ popd
96+
5397 tests-py-dynamo-converters :
5498 name : Test dynamo converters [Python]
5599 needs : [generate-matrix, build]
62106 uses : ./.github/workflows/windows-test.yml
63107 with :
64108 job-name : tests-py-dynamo-converters
65- repository : " pytorch/tensorrt "
109+ repository : ${{ matrix.repository }}
66110 ref : " "
67111 test-infra-repository : pytorch/test-infra
68112 test-infra-ref : main
72116 export USE_HOST_DEPS=1
73117 pushd .
74118 cd tests/py/dynamo
75- ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 10 conversion/
119+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 10 conversion/
76120 popd
77121
78122 tests-py-dynamo-fe :
@@ -87,7 +131,33 @@ jobs:
87131 uses : ./.github/workflows/windows-test.yml
88132 with :
89133 job-name : tests-py-dynamo-fe
90- repository : " pytorch/tensorrt"
134+ repository : ${{ matrix.repository }}
135+ ref : " "
136+ test-infra-repository : pytorch/test-infra
137+ test-infra-ref : main
138+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
139+ pre-script : packaging/driver_upgrade.bat
140+ script : |
141+ export USE_HOST_DEPS=1
142+ pushd .
143+ cd tests/py/dynamo
144+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_fe_test_results.xml --ir dynamo models/test_models_export.py
145+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/test_dyn_models.py
146+ popd
147+
148+ tests-py-dynamo-serde :
149+ name : Test dynamo export serde [Python]
150+ needs : [generate-matrix, build]
151+ strategy :
152+ fail-fast : false
153+ matrix :
154+ include :
155+ - repository : pytorch/tensorrt
156+ package-name : torch_tensorrt
157+ uses : ./.github/workflows/windows-test.yml
158+ with :
159+ job-name : tests-py-dynamo-serde
160+ repository : ${{ matrix.repository }}
91161 ref : " "
92162 test-infra-repository : pytorch/test-infra
93163 test-infra-ref : main
97167 export USE_HOST_DEPS=1
98168 pushd .
99169 cd tests/py/dynamo
100- ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_fe_test_results.xml --ir dynamo models/test_models_export.py
101- ${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dyn_models_export.xml --ir dynamo models/test_dyn_models.py
170+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/export_serde_test_results.xml --ir dynamo models/test_export_serde.py
102171 popd
103172
104173 tests-py-torch-compile-be :
@@ -117,14 +186,15 @@ jobs:
117186 ref : " "
118187 test-infra-repository : pytorch/test-infra
119188 test-infra-ref : main
120- pre-script : packaging/driver_upgrade.bat
121189 build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
190+ pre-script : packaging/driver_upgrade.bat
122191 script : |
123192 export USE_HOST_DEPS=1
124193 pushd .
125194 cd tests/py/dynamo
126- ${CONDA_RUN} python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/
127- ${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_comple_be_e2e_test_results.xml --ir torch_compile models/test_models.py
195+ python -m pytest -n 10 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_be_test_results.xml backend/
196+ python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_comple_be_e2e_test_results.xml --ir torch_compile models/test_models.py
197+ python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/torch_compile_dyn_models_export.xml --ir torch_compile models/test_dyn_models.py
128198 popd
129199
130200 tests-py-dynamo-core :
@@ -139,7 +209,7 @@ jobs:
139209 uses : ./.github/workflows/windows-test.yml
140210 with :
141211 job-name : tests-py-dynamo-core
142- repository : " pytorch/tensorrt "
212+ repository : ${{ matrix.repository }}
143213 ref : " "
144214 test-infra-repository : pytorch/test-infra
145215 test-infra-ref : main
@@ -149,11 +219,36 @@ jobs:
149219 export USE_HOST_DEPS=1
150220 pushd .
151221 cd tests/py/dynamo
152- ${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/
153- ${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
154- ${CONDA_RUN} python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
222+ python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/
223+ python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
224+ python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
225+ popd
226+
227+ tests-py-core :
228+ name : Test core [Python]
229+ needs : [generate-matrix, build]
230+ strategy :
231+ fail-fast : false
232+ matrix :
233+ include :
234+ - repository : pytorch/tensorrt
235+ package-name : torch_tensorrt
236+ uses : ./.github/workflows/windows-test.yml
237+ with :
238+ job-name : tests-py-core
239+ repository : ${{ matrix.repository }}
240+ ref : " "
241+ test-infra-repository : pytorch/test-infra
242+ test-infra-ref : main
243+ build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
244+ pre-script : packaging/driver_upgrade.bat
245+ script : |
246+ export USE_HOST_DEPS=1
247+ pushd .
248+ cd tests/py/core
249+ python -m pytest -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_core_test_results.xml .
155250 popd
156251
157252concurrency :
158253 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}
159- cancel-in-progress : true
254+ cancel-in-progress : true
0 commit comments