Unverified Commit f44f20cf authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Use @release/2.4 instead of @main for CI jobs (#8490)

parent 143d078b
...@@ -20,13 +20,13 @@ jobs: ...@@ -20,13 +20,13 @@ jobs:
gpu-arch-type: cuda gpu-arch-type: cuda
gpu-arch-version: "11.8" gpu-arch-version: "11.8"
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
gpu-arch-type: ${{ matrix.gpu-arch-type }} gpu-arch-type: ${{ matrix.gpu-arch-type }}
gpu-arch-version: ${{ matrix.gpu-arch-version }} gpu-arch-version: ${{ matrix.gpu-arch-version }}
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
...@@ -42,11 +42,11 @@ jobs: ...@@ -42,11 +42,11 @@ jobs:
include: include:
- runner: macos-m1-stable - runner: macos-m1-stable
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
...@@ -66,13 +66,13 @@ jobs: ...@@ -66,13 +66,13 @@ jobs:
gpu-arch-type: cuda gpu-arch-type: cuda
gpu-arch-version: "11.8" gpu-arch-version: "11.8"
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
gpu-arch-type: ${{ matrix.gpu-arch-type }} gpu-arch-type: ${{ matrix.gpu-arch-type }}
gpu-arch-version: ${{ matrix.gpu-arch-version }} gpu-arch-version: ${{ matrix.gpu-arch-version }}
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.4
with: with:
package-type: conda package-type: conda
os: linux os: linux
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -34,13 +34,13 @@ jobs: ...@@ -34,13 +34,13 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@main uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@release/2.4
with: with:
conda-package-directory: ${{ matrix.conda-package-directory }} conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.4
with: with:
package-type: conda package-type: conda
os: macos-arm64 os: macos-arm64
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -34,13 +34,13 @@ jobs: ...@@ -34,13 +34,13 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@main uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@release/2.4
with: with:
conda-package-directory: ${{ matrix.conda-package-directory }} conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.4
with: with:
package-type: conda package-type: conda
os: windows os: windows
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -34,13 +34,13 @@ jobs: ...@@ -34,13 +34,13 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_windows.yml@main uses: pytorch/test-infra/.github/workflows/build_conda_windows.yml@release/2.4
with: with:
conda-package-directory: ${{ matrix.conda-package-directory }} conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -19,12 +19,12 @@ permissions: ...@@ -19,12 +19,12 @@ permissions:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.4
with: with:
package-type: wheel package-type: wheel
os: linux-aarch64 os: linux-aarch64
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
with-cuda: disable with-cuda: disable
build: build:
needs: generate-matrix needs: generate-matrix
...@@ -38,12 +38,12 @@ jobs: ...@@ -38,12 +38,12 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.4
with: with:
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -19,12 +19,12 @@ permissions: ...@@ -19,12 +19,12 @@ permissions:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.4
with: with:
package-type: wheel package-type: wheel
os: linux os: linux
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -37,12 +37,12 @@ jobs: ...@@ -37,12 +37,12 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.4
with: with:
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -19,12 +19,12 @@ permissions: ...@@ -19,12 +19,12 @@ permissions:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.4
with: with:
package-type: wheel package-type: wheel
os: macos-arm64 os: macos-arm64
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -37,12 +37,12 @@ jobs: ...@@ -37,12 +37,12 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.4
with: with:
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -19,12 +19,12 @@ permissions: ...@@ -19,12 +19,12 @@ permissions:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.4
with: with:
package-type: wheel package-type: wheel
os: windows os: windows
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -38,12 +38,12 @@ jobs: ...@@ -38,12 +38,12 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@release/2.4
with: with:
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.4
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
env-script: ${{ matrix.env-script }} env-script: ${{ matrix.env-script }}
......
...@@ -14,11 +14,11 @@ on: ...@@ -14,11 +14,11 @@ on:
jobs: jobs:
build: build:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
upload-artifact: docs upload-artifact: docs
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
...@@ -81,12 +81,12 @@ jobs: ...@@ -81,12 +81,12 @@ jobs:
((github.ref_type == 'branch' && github.ref_name == 'main') || github.ref_type == 'tag') ((github.ref_type == 'branch' && github.ref_name == 'main') || github.ref_type == 'tag')
permissions: permissions:
contents: write contents: write
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
download-artifact: docs download-artifact: docs
ref: gh-pages ref: gh-pages
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
......
...@@ -11,10 +11,10 @@ on: ...@@ -11,10 +11,10 @@ on:
jobs: jobs:
python-source-and-configs: python-source-and-configs:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
...@@ -38,10 +38,10 @@ jobs: ...@@ -38,10 +38,10 @@ jobs:
fi fi
c-source: c-source:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
...@@ -73,10 +73,10 @@ jobs: ...@@ -73,10 +73,10 @@ jobs:
python-types: python-types:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
...@@ -103,7 +103,7 @@ jobs: ...@@ -103,7 +103,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Run BC Lint Action - name: Run BC Lint Action
uses: pytorch/test-infra/.github/actions/bc-lint@main uses: pytorch/test-infra/.github/actions/bc-lint@release/2.4
with: with:
repo: ${{ github.event.pull_request.head.repo.full_name }} repo: ${{ github.event.pull_request.head.repo.full_name }}
base_sha: ${{ github.event.pull_request.base.sha }} base_sha: ${{ github.event.pull_request.base.sha }}
......
...@@ -24,7 +24,7 @@ jobs: ...@@ -24,7 +24,7 @@ jobs:
gpu-arch-type: cuda gpu-arch-type: cuda
gpu-arch-version: "11.8" gpu-arch-version: "11.8"
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
......
...@@ -27,14 +27,14 @@ jobs: ...@@ -27,14 +27,14 @@ jobs:
gpu-arch-type: cuda gpu-arch-type: cuda
gpu-arch-version: "11.8" gpu-arch-version: "11.8"
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
gpu-arch-type: ${{ matrix.gpu-arch-type }} gpu-arch-type: ${{ matrix.gpu-arch-type }}
gpu-arch-version: ${{ matrix.gpu-arch-version }} gpu-arch-version: ${{ matrix.gpu-arch-version }}
timeout: 120 timeout: 120
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
...@@ -55,12 +55,12 @@ jobs: ...@@ -55,12 +55,12 @@ jobs:
- "3.12" - "3.12"
runner: ["macos-m1-stable"] runner: ["macos-m1-stable"]
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
timeout: 240 timeout: 240
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
...@@ -87,14 +87,14 @@ jobs: ...@@ -87,14 +87,14 @@ jobs:
gpu-arch-type: cuda gpu-arch-type: cuda
gpu-arch-version: "11.8" gpu-arch-version: "11.8"
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
gpu-arch-type: ${{ matrix.gpu-arch-type }} gpu-arch-type: ${{ matrix.gpu-arch-type }}
gpu-arch-version: ${{ matrix.gpu-arch-version }} gpu-arch-version: ${{ matrix.gpu-arch-version }}
timeout: 120 timeout: 120
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euxo pipefail set -euxo pipefail
...@@ -107,10 +107,10 @@ jobs: ...@@ -107,10 +107,10 @@ jobs:
./.github/scripts/unittest.sh ./.github/scripts/unittest.sh
onnx: onnx:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
...@@ -138,10 +138,10 @@ jobs: ...@@ -138,10 +138,10 @@ jobs:
echo '::endgroup::' echo '::endgroup::'
unittests-extended: unittests-extended:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
test-infra-ref: main test-infra-ref: release/2.4
script: | script: |
set -euo pipefail set -euo pipefail
......
...@@ -14,11 +14,11 @@ concurrency: ...@@ -14,11 +14,11 @@ concurrency:
jobs: jobs:
do_update_viablestrict: do_update_viablestrict:
uses: pytorch/test-infra/.github/workflows/update-viablestrict.yml@main uses: pytorch/test-infra/.github/workflows/update-viablestrict.yml@release/2.4
with: with:
repository: pytorch/vision repository: pytorch/vision
required_checks: "Build Linux,Build M1,Build Macos,Build Windows,Tests,CMake,Lint,Docs" required_checks: "Build Linux,Build M1,Build Macos,Build Windows,Tests,CMake,Lint,Docs"
test-infra-ref: main test-infra-ref: release/2.4
secrets: secrets:
ROCKSET_API_KEY: ${{ secrets.ROCKSET_API_KEY }} ROCKSET_API_KEY: ${{ secrets.ROCKSET_API_KEY }}
GITHUB_DEPLOY_KEY : ${{ secrets.VISION_GITHUB_DEPLOY_KEY }} GITHUB_DEPLOY_KEY : ${{ secrets.VISION_GITHUB_DEPLOY_KEY }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment