Skip to content

Commit 0fd94e6

Browse files
committed
test
1 parent 7102fa5 commit 0fd94e6

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

.github/workflows/build-tensorrt-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
TENSORRT_VERSION: ${{ matrix.tensorrt.version }}
9393
TENSORRT_URLS: ${{ matrix.tensorrt.urls }}
9494
TENSORRT_SHA256: ${{ matrix.tensorrt.sha256 }}
95-
UPLOAD_ARTIFACT_NAME: torch_tensorrt_${{ matrix.tensorrt.version }}_py${{ matrix.python_version }}_${{ matrix.desired_cuda }}
95+
UPLOAD_ARTIFACT_NAME: pytorch_tensorrt_${{ matrix.tensorrt.version }}_${{ matrix.python_version }}_${{ matrix.desired_cuda }}_${{ inputs.architecture }}
9696
name: build_tensorrt${{ matrix.tensorrt.version }}_py${{matrix.python_version}}_${{matrix.desired_cuda}}
9797
runs-on: ${{ matrix.validation_runner }}
9898
container:

.github/workflows/build-test-tensorrt-linux.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
smoke-test-script: packaging/smoke_test_script.sh
8383
uses: ./.github/workflows/linux-test.yml
8484
with:
85-
job-name: tests-py-torchscript-fe-tensorrt-${{ needs.generate-tensorrt-matrix.outputs.matrix.tensorrt.version }}-py${{ needs.generate-tensorrt-matrix.outputs.matrix.python_version }}
85+
job-name: tests-py-torchscript-fe
8686
repository: "pytorch/tensorrt"
8787
ref: ""
8888
test-infra-repository: pytorch/test-infra
@@ -103,3 +103,34 @@ jobs:
103103
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
104104
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
105105
popd
106+
107+
tests-py-dynamo-core:
108+
name: Test dynamo core [Python]
109+
needs: [generate-tensorrt-matrix, build]
110+
strategy:
111+
fail-fast: false
112+
matrix:
113+
include:
114+
- repository: pytorch/tensorrt
115+
package-name: torch_tensorrt
116+
pre-script: packaging/pre_build_script.sh
117+
post-script: packaging/post_build_script.sh
118+
smoke-test-script: packaging/smoke_test_script.sh
119+
uses: ./.github/workflows/linux-test.yml
120+
with:
121+
job-name: tests-py-dynamo-core
122+
repository: "pytorch/tensorrt"
123+
ref: ""
124+
test-infra-repository: pytorch/test-infra
125+
test-infra-ref: main
126+
build-matrix: ${{ needs.generate-tensorrt-matrix.outputs.matrix }}
127+
pre-script: ${{ matrix.pre-script }}
128+
script: |
129+
export USE_HOST_DEPS=1
130+
export CI_BUILD=1
131+
pushd .
132+
cd tests/py/dynamo
133+
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/test_000_*
134+
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
135+
python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
136+
popd

.github/workflows/linux-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ jobs:
6868
SCRIPT: ${{ inputs.script }}
6969
RUNNER_TEST_RESULTS_DIR: /tmp/test_results
7070
ARCH: ${{ inputs.architecture }}
71-
DOWNLOAD_ARTIFACT_NAME: torch_tensorrt_${{ matrix.tensorrt.version }}_py${{ matrix.python_version }}_${{ matrix.desired_cuda }}
72-
name: ${{ inputs.job-name }}-${{ matrix.desired_cuda }}
71+
DOWNLOAD_ARTIFACT_NAME: pytorch_tensorrt_${{ matrix.tensorrt.version }}_${{ matrix.python_version }}_${{ matrix.desired_cuda }}_${{ inputs.architecture }}
72+
name: ${{ inputs.job-name }}-${{ matrix.tensorrt.version }}-${{ matrix.python_version }}-${{ matrix.desired_cuda }}
7373
runs-on: ${{ matrix.validation_runner }}
7474
container:
7575
image: ${{ matrix.container_image }}

0 commit comments

Comments
 (0)