Skip to content

Commit 47ec2a8

Browse files
committed
test
1 parent c7e8385 commit 47ec2a8

File tree

3 files changed

+36
-44
lines changed

3 files changed

+36
-44
lines changed

.github/workflows/build-test-all.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,31 +65,33 @@ jobs:
6565
6666
trigger-linux-test:
6767
needs: [fail-fast-test]
68+
strategy:
69+
fail-fast: false
6870
if: always()
6971
name: build-test on linux-x86_64
7072
permissions:
7173
id-token: write
7274
contents: read
7375
packages: write
7476
uses: ./.github/workflows/build-test-linux-x86_64.yml
75-
with:
76-
job-name: build-test-all-linux-x86_64
7777

7878
trigger-windows-test:
7979
needs: [fail-fast-test]
80+
strategy:
81+
fail-fast: false
8082
if: always()
8183
name: build-test on windows
8284
permissions:
8385
id-token: write
8486
contents: read
8587
packages: write
8688
uses: ./.github/workflows/build-test-windows.yml
87-
with:
88-
job-name: build-test-all-windows
8989

9090
wait-all-jobs:
9191
needs: [trigger-linux-test, trigger-windows-test]
9292
runs-on: ubuntu-latest
93+
strategy:
94+
fail-fast: false
9395
steps:
9496
- name: Wait for all jobs to complete
9597
run: |

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

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ name: Lan test workflow x86_64 wheels
33
on:
44
#pull_request:
55
workflow_call:
6-
inputs:
7-
job-name:
8-
required: true
9-
type: string
10-
default: "build-test-linux-x86_64"
116
push:
127
branches:
138
- main
@@ -52,35 +47,35 @@ jobs:
5247
echo "${{ github.workflow }}-linux-x86_64-${{ github.event.pull_request.number || github.ref_name }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}-${{ inputs.job-name }}"
5348
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
5449
55-
# build:
56-
# needs: filter-matrix
57-
# permissions:
58-
# id-token: write
59-
# contents: read
60-
# strategy:
61-
# fail-fast: false
62-
# matrix:
63-
# include:
64-
# - repository: pytorch/tensorrt
65-
# pre-script: packaging/pre_build_script.sh
66-
# env-var-script: packaging/env_vars.txt
67-
# post-script: packaging/post_build_script.sh
68-
# smoke-test-script: packaging/smoke_test_script.sh
69-
# package-name: torch_tensorrt
70-
# name: Build torch-tensorrt whl package
71-
# uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
72-
# with:
73-
# repository: ${{ matrix.repository }}
74-
# ref: ""
75-
# test-infra-repository: pytorch/test-infra
76-
# test-infra-ref: main
77-
# build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
78-
# pre-script: ${{ matrix.pre-script }}
79-
# env-var-script: ${{ matrix.env-var-script }}
80-
# post-script: ${{ matrix.post-script }}
81-
# package-name: ${{ matrix.package-name }}
82-
# smoke-test-script: ${{ matrix.smoke-test-script }}
83-
# trigger-event: ${{ github.event_name }}
50+
build:
51+
needs: filter-matrix
52+
permissions:
53+
id-token: write
54+
contents: read
55+
strategy:
56+
fail-fast: false
57+
matrix:
58+
include:
59+
- repository: pytorch/tensorrt
60+
pre-script: packaging/pre_build_script.sh
61+
env-var-script: packaging/env_vars.txt
62+
post-script: packaging/post_build_script.sh
63+
smoke-test-script: packaging/smoke_test_script.sh
64+
package-name: torch_tensorrt
65+
name: Build torch-tensorrt whl package
66+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
67+
with:
68+
repository: ${{ matrix.repository }}
69+
ref: ""
70+
test-infra-repository: pytorch/test-infra
71+
test-infra-ref: main
72+
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
73+
pre-script: ${{ matrix.pre-script }}
74+
env-var-script: ${{ matrix.env-var-script }}
75+
post-script: ${{ matrix.post-script }}
76+
package-name: ${{ matrix.package-name }}
77+
smoke-test-script: ${{ matrix.smoke-test-script }}
78+
trigger-event: ${{ github.event_name }}
8479

8580
# tests-py-fail-fast:
8681
# name: Test fail fast [Python]

.github/workflows/build-test-windows.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ name: Lan test Windows wheels
33
on:
44
#pull_request:
55
workflow_call:
6-
inputs:
7-
job-name:
8-
required: true
9-
type: string
10-
default: "build-test-windows"
116
push:
127
branches:
138
- main
@@ -65,7 +60,7 @@ jobs:
6560
run: |
6661
echo matrix="$(echo '${{ needs.filter-matrix.outputs.matrix }}' | sed -e 's/windows.g4dn.xlarge/windows.g5.4xlarge.nvidia.gpu/g')" >> ${GITHUB_OUTPUT}
6762
68-
build-windows:
63+
build:
6964
needs: substitute-runner
7065
permissions:
7166
id-token: write

0 commit comments

Comments
 (0)