Skip to content

Commit 9984786

Browse files
authored
[BE] Move all lint runner to 24.04 (pytorch#153080)
* [BE] Move all lint runner to 24.04 (pytorch#150427) As Ubuntu-20 reached EOL on Apr 1st, see actions/runner-images#11101 This forces older python version to be 3.8 Delete all linux-20.04 runners from the lintrunner.yml Pull Request resolved: pytorch#150427 Approved by: https://github.com/seemethere (cherry picked from commit 48af2cd) * Update few more cases
1 parent 24b0c4a commit 9984786

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/actionlint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ self-hosted-runner:
33
# GitHub hosted runner that actionlint doesn't recognize because actionlint version (1.6.21) is too old
44
- ubuntu-24.04
55
# GitHub hosted x86 Linux runners
6-
- linux.20_04.4x
7-
- linux.20_04.16x
6+
- linux.24_04.4x
7+
- linux.24_04.16x
88
# Organization-wide AWS Linux Runners
99
- linux.large
1010
- linux.2xlarge

.github/workflows/check-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
pull-requests: write
3636
name: Check labels
3737
if: github.repository_owner == 'pytorch'
38-
runs-on: linux.20_04.4x
38+
runs-on: linux.24_04.4x
3939
steps:
4040
- name: Checkout PyTorch
4141
uses: pytorch/pytorch/.github/actions/checkout-pytorch@release/2.7

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
test_run_test:
217217
name: Test `run_test.py` is usable without boto3
218218
if: ${{ github.repository == 'pytorch/pytorch' }}
219-
runs-on: linux.20_04.4x
219+
runs-on: linux.24_04.4x
220220
steps:
221221
- name: Checkout PyTorch
222222
uses: pytorch/pytorch/.github/actions/checkout-pytorch@release/2.7
@@ -242,7 +242,7 @@ jobs:
242242
test_collect_env:
243243
if: ${{ github.repository == 'pytorch/pytorch' }}
244244
name: Test collect_env
245-
runs-on: linux.20_04.4x
245+
runs-on: linux.24_04.4x
246246
strategy:
247247
matrix:
248248
test_type: [with_torch, without_torch, older_python_version]
@@ -265,7 +265,7 @@ jobs:
265265
if: matrix.test_type == 'older_python_version'
266266
uses: actions/setup-python@v4
267267
with:
268-
python-version: 3.6
268+
python-version: 3.8
269269
architecture: x64
270270
check-latest: false
271271
cache: pip

.github/workflows/revert.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
do_revert:
99
name: try_revert_pr_${{ github.event.client_payload.pr_num }}
10-
runs-on: linux.20_04.4x
10+
runs-on: linux.24_04.4x
1111
environment: mergebot
1212
env:
1313
GH_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

.github/workflows/trymerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
do_merge:
99
name: try_merge_pr_${{ github.event.client_payload.pr_num }}
10-
runs-on: linux.20_04.4x
10+
runs-on: linux.24_04.4x
1111
environment: mergebot
1212
permissions:
1313
id-token: write

0 commit comments

Comments
 (0)