Skip to content

Commit 7102fa5

Browse files
committed
test
1 parent a554285 commit 7102fa5

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

.github/scripts/generate-tensorrt-test-matrix.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def main(args: list[str]) -> None:
6666

6767
options = parser.parse_args(args)
6868
if options.matrix == "":
69-
raise Exception(f"--matrix is empty, please provide the matrix json str")
69+
raise Exception("--matrix is empty, please provide the matrix json str")
7070

7171
matrix_dict = json.loads(options.matrix)
7272
includes = matrix_dict["include"]

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

+2-2
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-
ARTIFACT_NAME: torch_tensorrt_${{ matrix.tensorrt.version }}_py${{ matrix.python_version }}_${{ matrix.desired_cuda }}
95+
UPLOAD_ARTIFACT_NAME: torch_tensorrt_${{ matrix.tensorrt.version }}_py${{ matrix.python_version }}_${{ matrix.desired_cuda }}
9696
name: build_tensorrt${{ matrix.tensorrt.version }}_py${{matrix.python_version}}_${{matrix.desired_cuda}}
9797
runs-on: ${{ matrix.validation_runner }}
9898
container:
@@ -214,7 +214,7 @@ jobs:
214214
continue-on-error: true
215215
uses: actions/upload-artifact@v3
216216
with:
217-
name: ${{ env.ARTIFACT_NAME }}
217+
name: ${{ env.UPLOAD_ARTIFACT_NAME }}
218218
path: ${{ inputs.repository }}/dist
219219

220220
concurrency:

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

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ jobs:
8989
test-infra-ref: main
9090
build-matrix: ${{ needs.generate-tensorrt-matrix.outputs.matrix }}
9191
pre-script: ${{ matrix.pre-script }}
92-
download-artifact: ${{ needs.generate-tensorrt-matrix.outputs.matrix.tensorrt.version }}_py${{ needs.generate-tensorrt-matrix.outputs.matrix.python_version }}_${{ needs.generate-tensorrt-matrix.outputs.matrix.desired_cuda }}
9392
script: |
9493
export USE_HOST_DEPS=1
9594
export CI_BUILD=1

.github/workflows/linux-test.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ on:
4949
description: "Prevents a job from failing when a step fails. Set to true to allow a job to pass when exec script step fails."
5050
default: false
5151
type: boolean
52-
download-artifact:
53-
description: 'Name of the artifacts to be downloaded'
54-
default: ''
55-
type: string
5652
upload-artifact:
5753
description: 'Name to give artifacts uploaded from ${RUNNER_ARTIFACT_DIR}'
5854
default: ''
@@ -72,6 +68,7 @@ jobs:
7268
SCRIPT: ${{ inputs.script }}
7369
RUNNER_TEST_RESULTS_DIR: /tmp/test_results
7470
ARCH: ${{ inputs.architecture }}
71+
DOWNLOAD_ARTIFACT_NAME: torch_tensorrt_${{ matrix.tensorrt.version }}_py${{ matrix.python_version }}_${{ matrix.desired_cuda }}
7572
name: ${{ inputs.job-name }}-${{ matrix.desired_cuda }}
7673
runs-on: ${{ matrix.validation_runner }}
7774
container:
@@ -116,16 +113,16 @@ jobs:
116113
repository: ${{ inputs.repository }}
117114
script: ${{ inputs.pre-script }}
118115
- name: Download artifacts
119-
if: ${{ inputs.download-artifact == '' }}
116+
if: ${{ matrix.tensorrt == '' }}
120117
uses: actions/download-artifact@v3
121118
with:
122119
name: ${{ env.ARTIFACT_NAME }}
123120
path: /opt/torch-tensorrt-builds/
124121
- name: Download artifacts
125-
if: ${{ inputs.download-artifact != '' }}
122+
if: ${{ matrix.tensorrt != '' }}
126123
uses: actions/download-artifact@v3
127124
with:
128-
name: ${{ inputs.download-artifact }}
125+
name: ${{ env.DOWNLOAD_ARTIFACT_NAME }}
129126
path: /opt/torch-tensorrt-builds/
130127
# - name: Install torch and torch-tensorrt
131128
# if: ${{ inputs.pre-script != '' }}

0 commit comments

Comments
 (0)