Skip to content

Commit 2fecf2c

Browse files
authored
[RELEASE ONLY CHANGES] Apply release workflow changes for 1.0 (#14390)
### Summary As described in the release manual, I've run `TEST_INFRA_BRANCH=release/2.9 scripts/release/apply-release-changes.sh` to update workflows to use the release/2.9 test infra branch.
1 parent fc3e3f5 commit 2fecf2c

20 files changed

+114
-114
lines changed

.github/workflows/_android.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
build-llm-demo:
99
name: build-llm-demo
10-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
10+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.9
1111
permissions:
1212
id-token: write
1313
contents: read
@@ -71,7 +71,7 @@ jobs:
7171
API_LEVEL: 34
7272
steps:
7373
- name: Setup SSH (Click me for login details)
74-
uses: pytorch/test-infra/.github/actions/setup-ssh@main
74+
uses: pytorch/test-infra/.github/actions/setup-ssh@release/2.9
7575
with:
7676
github-secret: ${{ secrets.GITHUB_TOKEN }}
7777
instructions: |
@@ -82,7 +82,7 @@ jobs:
8282
submodules: false
8383

8484
- name: Setup conda
85-
uses: pytorch/test-infra/.github/actions/setup-miniconda@main
85+
uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.9
8686
with:
8787
python-version: '3.10'
8888

.github/workflows/_link_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
lint-urls:
1010
if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'skip-url-lint') }}
11-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
11+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.9
1212
with:
1313
runner: linux.2xlarge
1414
docker-image: ci-image:executorch-ubuntu-22.04-linter
@@ -33,7 +33,7 @@ jobs:
3333
3434
lint-xrefs:
3535
if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'skip-xref-lint') }}
36-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
36+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.9
3737
with:
3838
runner: linux.2xlarge
3939
docker-image: ci-image:executorch-ubuntu-22.04-linter

.github/workflows/_unittest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727

2828
jobs:
2929
linux:
30-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
30+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.9
3131
permissions:
3232
id-token: write
3333
contents: read
@@ -42,7 +42,7 @@ jobs:
4242
.ci/scripts/unittest-linux.sh --build-tool "${{ inputs.build-tool }}" --build-mode "${{ inputs.build-mode }}" --editable "${{ inputs.editable }}"
4343
4444
macos:
45-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
45+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.9
4646
with:
4747
runner: macos-m1-stable
4848
python-version: '3.11'
@@ -56,7 +56,7 @@ jobs:
5656
5757
windows:
5858
if: ${{ inputs.build-tool == 'cmake' }}
59-
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
59+
uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.9
6060
with:
6161
submodules: 'recursive'
6262
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}

.github/workflows/android-perf.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157

158158
export-models:
159159
name: export-models
160-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
160+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.9
161161
permissions:
162162
id-token: write
163163
contents: read
@@ -402,7 +402,7 @@ jobs:
402402
403403
build-benchmark-app:
404404
name: build-benchmark-app
405-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
405+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.9
406406
permissions:
407407
id-token: write
408408
contents: read
@@ -450,7 +450,7 @@ jobs:
450450
permissions:
451451
id-token: write
452452
contents: read
453-
uses: pytorch/test-infra/.github/workflows/mobile_job.yml@main
453+
uses: pytorch/test-infra/.github/workflows/mobile_job.yml@release/2.9
454454
needs:
455455
- set-parameters
456456
- prepare-test-specs
@@ -496,7 +496,7 @@ jobs:
496496
aws-region: us-east-1
497497

498498
- name: Setup conda
499-
uses: pytorch/test-infra/.github/actions/setup-miniconda@main
499+
uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.9
500500
with:
501501
python-version: '3.10'
502502

@@ -554,7 +554,7 @@ jobs:
554554
done
555555
556556
- name: Upload the benchmark results (v3)
557-
uses: pytorch/test-infra/.github/actions/upload-benchmark-results@main
557+
uses: pytorch/test-infra/.github/actions/upload-benchmark-results@release/2.9
558558
with:
559559
benchmark-results-dir: benchmark-results/v3
560560
dry-run: false

.github/workflows/android-release-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
name: build-aar
4949
needs: check-if-aar-exists
5050
if: ${{ !github.event.pull_request.head.repo.fork }}
51-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
51+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.9
5252
secrets: inherit
5353
permissions:
5454
id-token: write

.github/workflows/apple-perf.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159

160160
export-models:
161161
name: export-models
162-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
162+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.9
163163
needs: set-parameters
164164
secrets: inherit
165165
strategy:
@@ -411,7 +411,7 @@ jobs:
411411
412412
build-benchmark-app:
413413
name: build-benchmark-app
414-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
414+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.9
415415
needs:
416416
- set-parameters
417417
secrets: inherit
@@ -496,7 +496,7 @@ jobs:
496496
permissions:
497497
id-token: write
498498
contents: read
499-
uses: pytorch/test-infra/.github/workflows/mobile_job.yml@main
499+
uses: pytorch/test-infra/.github/workflows/mobile_job.yml@release/2.9
500500
strategy:
501501
matrix: ${{ fromJson(needs.set-parameters.outputs.benchmark_configs) }}
502502
fail-fast: false
@@ -539,7 +539,7 @@ jobs:
539539
aws-region: us-east-1
540540

541541
- name: Setup conda
542-
uses: pytorch/test-infra/.github/actions/setup-miniconda@main
542+
uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.9
543543
with:
544544
python-version: '3.10'
545545

@@ -595,7 +595,7 @@ jobs:
595595
done
596596
597597
- name: Upload the benchmark results (v3)
598-
uses: pytorch/test-infra/.github/actions/upload-benchmark-results@main
598+
uses: pytorch/test-infra/.github/actions/upload-benchmark-results@release/2.9
599599
with:
600600
benchmark-results-dir: benchmark-results/v3
601601
dry-run: false

.github/workflows/apple.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
name: build-demo-ios
4646
# NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway
4747
if: ${{ !github.event.pull_request.head.repo.fork }}
48-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
48+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.9
4949
secrets: inherit
5050
with:
5151
runner: macos-14-xlarge
@@ -115,7 +115,7 @@ jobs:
115115
permissions:
116116
id-token: write
117117
contents: read
118-
uses: pytorch/test-infra/.github/workflows/mobile_job.yml@main
118+
uses: pytorch/test-infra/.github/workflows/mobile_job.yml@release/2.9
119119
with:
120120
device-type: ios
121121
# For iOS testing, the runner just needs to call AWS Device Farm, so there is no need to run this on macOS
@@ -133,7 +133,7 @@ jobs:
133133
build-frameworks-ios:
134134
name: build-frameworks-ios
135135
needs: set-version
136-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
136+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.9
137137
with:
138138
runner: macos-14-xlarge
139139
python-version: '3.11'
@@ -272,7 +272,7 @@ jobs:
272272
name: build-benchmark-app
273273
# NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway
274274
if: ${{ !github.event.pull_request.head.repo.fork }}
275-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
275+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.9
276276
secrets: inherit
277277
with:
278278
runner: macos-14-xlarge

.github/workflows/build-presets.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616
apple:
17-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
17+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.9
1818
strategy:
1919
fail-fast: false
2020
matrix:
@@ -33,7 +33,7 @@ jobs:
3333
${CONDA_RUN} cmake --build cmake-out -j$(( $(sysctl -n hw.ncpu) - 1 ))
3434
3535
zephyr:
36-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
36+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.9
3737
strategy:
3838
fail-fast: false
3939
matrix:
@@ -72,7 +72,7 @@ jobs:
7272
cmake --preset ${{ matrix.preset }}
7373
cmake --build cmake-out -j$(( $(nproc) - 1 ))
7474
linux:
75-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
75+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.9
7676
strategy:
7777
fail-fast: false
7878
matrix:
@@ -105,7 +105,7 @@ jobs:
105105
cmake --build cmake-out -j$(( $(nproc) - 1 ))
106106
107107
windows:
108-
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
108+
uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.9
109109
strategy:
110110
fail-fast: false
111111
matrix:

.github/workflows/build-wheels-aarch64-linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ on:
2424

2525
jobs:
2626
generate-matrix:
27-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
27+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.9
2828
with:
2929
package-type: wheel
3030
os: linux-aarch64
3131
test-infra-repository: pytorch/test-infra
32-
test-infra-ref: main
32+
test-infra-ref: release/2.9
3333
with-cuda: disabled
3434
with-rocm: disabled
3535
python-versions: '["3.10", "3.11", "3.12"]'
@@ -49,12 +49,12 @@ jobs:
4949
smoke-test-script: .ci/scripts/wheel/test_linux_aarch64.py
5050
package-name: executorch
5151
name: ${{ matrix.repository }}
52-
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
52+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.9
5353
with:
5454
repository: ${{ matrix.repository }}
5555
ref: ""
5656
test-infra-repository: pytorch/test-infra
57-
test-infra-ref: main
57+
test-infra-ref: release/2.9
5858
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
5959
submodules: recursive
6060
env-var-script: .ci/scripts/wheel/envvar_linux.sh

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ on:
2424

2525
jobs:
2626
generate-matrix:
27-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
27+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.9
2828
with:
2929
package-type: wheel
3030
os: linux
3131
test-infra-repository: pytorch/test-infra
32-
test-infra-ref: main
32+
test-infra-ref: release/2.9
3333
with-cuda: disabled
3434
with-rocm: disabled
3535
python-versions: '["3.10", "3.11", "3.12"]'
@@ -49,12 +49,12 @@ jobs:
4949
smoke-test-script: .ci/scripts/wheel/test_linux.py
5050
package-name: executorch
5151
name: ${{ matrix.repository }}
52-
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
52+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.9
5353
with:
5454
repository: ${{ matrix.repository }}
5555
ref: ""
5656
test-infra-repository: pytorch/test-infra
57-
test-infra-ref: main
57+
test-infra-ref: release/2.9
5858
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
5959
submodules: recursive
6060
env-var-script: .ci/scripts/wheel/envvar_linux.sh

0 commit comments

Comments
 (0)