Skip to content

Commit 190c6f1

Browse files
authored
Migrate workflows to linux_job_v2 (#6348)
1. Migrate all the workflows to liux_job_v2 since its uses Manylinux 2.28 : RFC: pytorch/pytorch#123649 2. Remove stronghold workflow, since not used 3. Use get_stable_cuda_version to validate repacked binary size whls
1 parent d43dd00 commit 190c6f1

7 files changed

+14
-103
lines changed

.github/workflows/stronghold.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/workflows/test-export-matrix-variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
test-linux:
11-
uses: ./.github/workflows/linux_job.yml
11+
uses: ./.github/workflows/linux_job_v2.yml
1212
strategy:
1313
fail-fast: false
1414
matrix:

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
test-tools:
2525
name: Test tools
2626
if: ${{ github.repository == 'pytorch/test-infra' }}
27-
uses: ./.github/workflows/linux_job.yml
27+
uses: ./.github/workflows/linux_job_v2.yml
2828
with:
2929
docker-image: python:3.11.0-slim-bullseye
3030
runner: linux.large
@@ -42,7 +42,7 @@ jobs:
4242
test-github-scripts:
4343
name: Test github scripts
4444
if: ${{ github.repository == 'pytorch/test-infra' }}
45-
uses: ./.github/workflows/linux_job.yml
45+
uses: ./.github/workflows/linux_job_v2.yml
4646
with:
4747
docker-image: python:3.11.0-slim-bullseye
4848
runner: linux.large

.github/workflows/validate-aarch64-linux-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
strategy:
105105
matrix: ${{ fromJson(needs.generate-aarch64-linux-matrix.outputs.matrix) }}
106106
fail-fast: false
107-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
107+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
108108
name: ${{ matrix.build_name }}
109109
with:
110110
runner: ${{ matrix.validation_runner }}

.github/workflows/validate-docker-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
strategy:
5656
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
5757
fail-fast: false
58-
uses: ./.github/workflows/linux_job.yml
58+
uses: ./.github/workflows/linux_job_v2.yml
5959
with:
6060
runner: ${{ matrix.validation_runner }}
6161
repository: "pytorch/pytorch"

.github/workflows/validate-linux-binaries.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
strategy:
128128
matrix: ${{ fromJson(needs.generate-linux-matrix.outputs.matrix) }}
129129
fail-fast: false
130-
uses: ./.github/workflows/linux_job.yml
130+
uses: ./.github/workflows/linux_job_v2.yml
131131
name: ${{ matrix.build_name }}
132132
with:
133133
runner: ${{ matrix.validation_runner }}
@@ -172,7 +172,7 @@ jobs:
172172
source ../../test-infra/.github/scripts/validate_binaries.sh
173173
174174
linux-amazon-2023:
175-
uses: ./.github/workflows/linux_job.yml
175+
uses: ./.github/workflows/linux_job_v2.yml
176176
name: amazon-linux-2023-test
177177
with:
178178
runner: "linux.g5.4xlarge.nvidia.gpu"

.github/workflows/validate-repackaged-binary-sizes.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
matrix: ${{ fromJson(needs.generate-linux-matrix.outputs.matrix) }}
3535
fail-fast: false
36-
uses: ./.github/workflows/linux_job.yml
36+
uses: ./.github/workflows/linux_job_v2.yml
3737
name: ${{ matrix.build_name }}
3838
with:
3939
runner: ${{ matrix.validation_runner }}
@@ -45,8 +45,13 @@ jobs:
4545
script: |
4646
set -ex
4747
48+
# shellcheck disable=SC2086
49+
CUDA_VERSION=$(python3 ../../test-infra/tools/scripts/get_stable_cuda_version.py --channel ${MATRIX_CHANNEL})
50+
# shellcheck disable=SC2086
51+
CUDA_VERSION_NODOT=$(echo ${CUDA_VERSION} | tr -d '.')
52+
4853
# skip testing on cu126
49-
if [[ ${MATRIX_DESIRED_CUDA} == "cu126" ]]; then
54+
if [[ ${MATRIX_DESIRED_CUDA} != "cu${CUDA_VERSION_NODOT}" ]]; then
5055
exit 0
5156
fi
5257

0 commit comments

Comments
 (0)