Skip to content

Commit

Permalink
Migrate Lint jobs to Amazon 2023 AMI (pytorch#131514)
Browse files Browse the repository at this point in the history
Continuing in the same vein as pytorch#131250, migrate all self-hosted lint.yml jobs to use the new Amazon 2023 AMI
Co-authored-by: Nikita Shulga <[email protected]>
Pull Request resolved: pytorch#131514
Approved by: https://github.com/clee2000, https://github.com/malfet, https://github.com/huydhn
  • Loading branch information
ZainRizvi authored and pytorchmergebot committed Jul 24, 2024
1 parent b98b312 commit aeca984
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
timeout: 120
runner: linux.2xlarge
runner: amz2023.linux.2xlarge
docker-image: pytorch-linux-jammy-cuda11.8-cudnn9-py3.9-linter
# NB: A shallow checkout won't work here because calculate-docker-image requires a full checkout
# to run git rev-parse HEAD~:.ci/docker when a new image is needed
Expand All @@ -35,7 +35,7 @@ jobs:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
timeout: 120
runner: linux.2xlarge
runner: amz2023.linux.2xlarge
docker-image: pytorch-linux-jammy-cuda11.8-cudnn9-py3.9-linter
# NB: A shallow checkout won't work here because calculate-docker-image requires a full checkout
# to run git rev-parse HEAD~:.ci/docker when a new image is needed
Expand All @@ -49,7 +49,7 @@ jobs:
quick-checks:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.2xlarge
runner: amz2023.linux.2xlarge
docker-image: pytorch-linux-focal-linter
fetch-depth: 0
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
pr-sanity-checks:
name: pr-sanity-checks
runs-on: [self-hosted, linux.large]
runs-on: [self-hosted, amz2023.linux.large]
# Only run this on pull requests. This check is simple enough to be done without a Docker image
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-pr-sanity-checks')
steps:
Expand All @@ -103,7 +103,7 @@ jobs:
workflow-checks:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.2xlarge
runner: amz2023.linux.2xlarge
docker-image: pytorch-linux-focal-linter
fetch-depth: -1
submodules: true
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
toc:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.2xlarge
runner: amz2023.linux.2xlarge
docker-image: pytorch-linux-focal-linter
fetch-depth: 0
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
if: ${{ github.repository == 'pytorch/pytorch' }}
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.2xlarge
runner: amz2023.linux.2xlarge
docker-image: pytorch-linux-focal-linter
fetch-depth: 0
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
Expand Down

0 comments on commit aeca984

Please sign in to comment.