diff --git a/.ci/docker/ci_commit_pins/pytorch.txt b/.ci/docker/ci_commit_pins/pytorch.txt index 96724b0411b..8afd359d1ea 100644 --- a/.ci/docker/ci_commit_pins/pytorch.txt +++ b/.ci/docker/ci_commit_pins/pytorch.txt @@ -1 +1 @@ -9b498d3bb28b8e3411ce464dd2755c5b96d92c8f +release/2.8 diff --git a/.github/workflows/_android.yml b/.github/workflows/_android.yml index 630ae2747bf..477a46c5c08 100644 --- a/.github/workflows/_android.yml +++ b/.github/workflows/_android.yml @@ -7,7 +7,7 @@ on: jobs: build-llm-demo: name: build-llm-demo - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -71,7 +71,7 @@ jobs: API_LEVEL: 34 steps: - name: Setup SSH (Click me for login details) - uses: pytorch/test-infra/.github/actions/setup-ssh@main + uses: pytorch/test-infra/.github/actions/setup-ssh@release/2.8 with: github-secret: ${{ secrets.GITHUB_TOKEN }} instructions: | @@ -82,7 +82,7 @@ jobs: submodules: false - name: Setup conda - uses: pytorch/test-infra/.github/actions/setup-miniconda@main + uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.8 with: python-version: '3.10' diff --git a/.github/workflows/_link_check.yml b/.github/workflows/_link_check.yml index 2e96b0fd118..bd16d5b1e7a 100644 --- a/.github/workflows/_link_check.yml +++ b/.github/workflows/_link_check.yml @@ -8,7 +8,7 @@ on: jobs: lint-urls: if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'skip-url-lint') }} - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 with: runner: linux.2xlarge docker-image: executorch-ubuntu-22.04-linter @@ -33,7 +33,7 @@ jobs: lint-xrefs: if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'skip-xref-lint') }} - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 with: runner: linux.2xlarge docker-image: executorch-ubuntu-22.04-linter diff --git a/.github/workflows/_unittest.yml b/.github/workflows/_unittest.yml index 63f5e6693b7..577c858865b 100644 --- a/.github/workflows/_unittest.yml +++ b/.github/workflows/_unittest.yml @@ -26,7 +26,7 @@ on: jobs: linux: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -41,7 +41,7 @@ jobs: .ci/scripts/unittest-linux.sh --build-tool "${{ inputs.build-tool }}" --build-mode "${{ inputs.build-mode }}" --editable "${{ inputs.editable }}" macos: - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 with: runner: macos-m1-stable python-version: '3.11' diff --git a/.github/workflows/android-perf.yml b/.github/workflows/android-perf.yml index eba12967e5f..ace10a87cc6 100644 --- a/.github/workflows/android-perf.yml +++ b/.github/workflows/android-perf.yml @@ -157,7 +157,7 @@ jobs: export-models: name: export-models - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -402,7 +402,7 @@ jobs: build-benchmark-app: name: build-benchmark-app - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -450,7 +450,7 @@ jobs: permissions: id-token: write contents: read - uses: pytorch/test-infra/.github/workflows/mobile_job.yml@main + uses: pytorch/test-infra/.github/workflows/mobile_job.yml@release/2.8 needs: - set-parameters - prepare-test-specs @@ -496,7 +496,7 @@ jobs: aws-region: us-east-1 - name: Setup conda - uses: pytorch/test-infra/.github/actions/setup-miniconda@main + uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.8 with: python-version: '3.10' @@ -554,7 +554,7 @@ jobs: done - name: Upload the benchmark results (v3) - uses: pytorch/test-infra/.github/actions/upload-benchmark-results@main + uses: pytorch/test-infra/.github/actions/upload-benchmark-results@release/2.8 with: benchmark-results-dir: benchmark-results/v3 dry-run: false diff --git a/.github/workflows/android-release-artifacts.yml b/.github/workflows/android-release-artifacts.yml index b31ff644d94..fb6d0c1a427 100644 --- a/.github/workflows/android-release-artifacts.yml +++ b/.github/workflows/android-release-artifacts.yml @@ -47,7 +47,7 @@ jobs: name: build-aar needs: check-if-aar-exists if: ${{ !github.event.pull_request.head.repo.fork }} - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7 + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 secrets: inherit permissions: id-token: write diff --git a/.github/workflows/apple-perf.yml b/.github/workflows/apple-perf.yml index 575000f5bc0..2226f7c07a5 100644 --- a/.github/workflows/apple-perf.yml +++ b/.github/workflows/apple-perf.yml @@ -159,7 +159,7 @@ jobs: export-models: name: export-models - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 needs: set-parameters secrets: inherit strategy: @@ -411,7 +411,7 @@ jobs: build-benchmark-app: name: build-benchmark-app - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 needs: - set-parameters secrets: inherit @@ -496,7 +496,7 @@ jobs: permissions: id-token: write contents: read - uses: pytorch/test-infra/.github/workflows/mobile_job.yml@main + uses: pytorch/test-infra/.github/workflows/mobile_job.yml@release/2.8 strategy: matrix: ${{ fromJson(needs.set-parameters.outputs.benchmark_configs) }} fail-fast: false @@ -539,7 +539,7 @@ jobs: aws-region: us-east-1 - name: Setup conda - uses: pytorch/test-infra/.github/actions/setup-miniconda@main + uses: pytorch/test-infra/.github/actions/setup-miniconda@release/2.8 with: python-version: '3.10' @@ -595,7 +595,7 @@ jobs: done - name: Upload the benchmark results (v3) - uses: pytorch/test-infra/.github/actions/upload-benchmark-results@main + uses: pytorch/test-infra/.github/actions/upload-benchmark-results@release/2.8 with: benchmark-results-dir: benchmark-results/v3 dry-run: false diff --git a/.github/workflows/apple.yml b/.github/workflows/apple.yml index acc76a6097c..7e099f29961 100644 --- a/.github/workflows/apple.yml +++ b/.github/workflows/apple.yml @@ -46,7 +46,7 @@ jobs: name: build-demo-ios # NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway if: ${{ !github.event.pull_request.head.repo.fork }} - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 secrets: inherit with: runner: macos-latest-xlarge @@ -116,7 +116,7 @@ jobs: permissions: id-token: write contents: read - uses: pytorch/test-infra/.github/workflows/mobile_job.yml@main + uses: pytorch/test-infra/.github/workflows/mobile_job.yml@release/2.8 with: device-type: ios # For iOS testing, the runner just needs to call AWS Device Farm, so there is no need to run this on macOS @@ -134,7 +134,7 @@ jobs: build-frameworks-ios: name: build-frameworks-ios needs: set-version - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 with: runner: macos-latest-xlarge python-version: '3.11' @@ -271,7 +271,7 @@ jobs: name: build-benchmark-app # NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway if: ${{ !github.event.pull_request.head.repo.fork }} - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 secrets: inherit with: runner: macos-latest-xlarge diff --git a/.github/workflows/build-presets.yml b/.github/workflows/build-presets.yml index 1a40c6ef68d..46e821d6233 100644 --- a/.github/workflows/build-presets.yml +++ b/.github/workflows/build-presets.yml @@ -16,7 +16,7 @@ concurrency: jobs: apple: - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 strategy: fail-fast: false matrix: @@ -35,7 +35,7 @@ jobs: ${CONDA_RUN} cmake --build cmake-out -j$(( $(sysctl -n hw.ncpu) - 1 )) linux: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 strategy: fail-fast: false matrix: @@ -68,7 +68,7 @@ jobs: cmake --build cmake-out -j$(( $(nproc) - 1 )) windows: - uses: pytorch/test-infra/.github/workflows/windows_job.yml@main + uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.8 strategy: fail-fast: false matrix: diff --git a/.github/workflows/build-wheels-linux.yml b/.github/workflows/build-wheels-linux.yml index 4c08968f3d6..5ee0e862d39 100644 --- a/.github/workflows/build-wheels-linux.yml +++ b/.github/workflows/build-wheels-linux.yml @@ -22,7 +22,7 @@ on: jobs: 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.8 with: package-type: wheel os: linux @@ -47,7 +47,7 @@ jobs: smoke-test-script: .ci/scripts/wheel/test_linux.py package-name: executorch 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.8 with: repository: ${{ matrix.repository }} ref: "" diff --git a/.github/workflows/build-wheels-macos.yml b/.github/workflows/build-wheels-macos.yml index 3a394cff64b..95dcec390b8 100644 --- a/.github/workflows/build-wheels-macos.yml +++ b/.github/workflows/build-wheels-macos.yml @@ -22,7 +22,7 @@ on: jobs: 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.8 with: package-type: wheel os: macos-arm64 @@ -47,7 +47,7 @@ jobs: smoke-test-script: .ci/scripts/wheel/test_macos.py package-name: executorch 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.8 with: repository: ${{ matrix.repository }} ref: "" diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 8e5519d33ef..300adbd8349 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -15,7 +15,7 @@ on: jobs: build: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -93,7 +93,7 @@ jobs: permissions: id-token: write contents: write - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 with: repository: pytorch/executorch download-artifact: docs diff --git a/.github/workflows/docker-builds.yml b/.github/workflows/docker-builds.yml index 791a52b96c1..5a38c26d7cb 100644 --- a/.github/workflows/docker-builds.yml +++ b/.github/workflows/docker-builds.yml @@ -57,7 +57,7 @@ jobs: mkdir "${GITHUB_WORKSPACE}" - name: Setup SSH (Click me for login details) - uses: pytorch/test-infra/.github/actions/setup-ssh@main + uses: pytorch/test-infra/.github/actions/setup-ssh@release/2.8 with: github-secret: ${{ secrets.GITHUB_TOKEN }} @@ -65,11 +65,11 @@ jobs: uses: actions/checkout@v3 - name: Setup Linux - uses: pytorch/test-infra/.github/actions/setup-linux@main + uses: pytorch/test-infra/.github/actions/setup-linux@release/2.8 - name: Build docker image id: build-docker-image - uses: pytorch/test-infra/.github/actions/calculate-docker-image@main + uses: pytorch/test-infra/.github/actions/calculate-docker-image@release/2.8 with: docker-image-name: ${{ matrix.docker-image-name }} always-rebuild: true @@ -77,5 +77,5 @@ jobs: force-push: true - name: Teardown Linux - uses: pytorch/test-infra/.github/actions/teardown-linux@main + uses: pytorch/test-infra/.github/actions/teardown-linux@release/2.8 if: always() diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f4f0c91c4ad..4952d9bdea2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ concurrency: jobs: lintrunner: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -70,7 +70,7 @@ jobs: ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} android-java-format: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 4658fdc0d26..b9b57e66b81 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -21,7 +21,7 @@ jobs: environment: ${{ (github.event_name == 'schedule') && 'update-commit-hash' || '' }} steps: - name: update-pytorch-commit-hash - uses: pytorch/test-infra/.github/actions/update-commit-hash@main + uses: pytorch/test-infra/.github/actions/update-commit-hash@release/2.8 if: ${{ github.event_name == 'schedule' }} with: repo-name: pytorch diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index 59b3a522954..382c979c4fd 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -39,7 +39,7 @@ jobs: test-models-linux: name: test-models-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index df254b7f409..0e5c90212a9 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -15,7 +15,7 @@ concurrency: jobs: test-setup-linux-gcc: name: test-setup-linux-gcc - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -40,7 +40,7 @@ jobs: test-models-linux-basic: name: test-models-linux-basic - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -84,7 +84,7 @@ jobs: test-models-linux: name: test-models-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -138,7 +138,7 @@ jobs: test-llama-runner-linux: # Test Both linux x86 and linux aarch64 name: test-llama-runner-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -188,7 +188,7 @@ jobs: test-llama-runner-linux-android: name: test-llama-runner-linux-android - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -213,7 +213,7 @@ jobs: test-custom-ops-linux: name: test-custom-ops-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -237,7 +237,7 @@ jobs: test-selective-build-linux: name: test-selective-build-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -261,7 +261,7 @@ jobs: test-llava-runner-linux: name: test-llava-runner-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -292,7 +292,7 @@ jobs: test-moshi-linux: name: test-moshi-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -322,7 +322,7 @@ jobs: test-quantized-aot-lib-linux: name: test-quantized-aot-lib-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -345,7 +345,7 @@ jobs: test-binary-size-linux-gcc: name: test-binary-size-linux-gcc - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -381,7 +381,7 @@ jobs: test-binary-size-linux: name: test-binary-size-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -453,7 +453,7 @@ jobs: unittest-arm-backend-with-no-fvp: name: unittest-arm-backend-with-no-fvp - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -486,7 +486,7 @@ jobs: test-llama-runner-qnn-linux: name: test-llama-runner-qnn-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -525,7 +525,7 @@ jobs: test-static-llama-qnn-linux: name: test-static-llama-qnn-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -558,7 +558,7 @@ jobs: test-qnn-models-linux: name: test-qnn-models-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -580,7 +580,7 @@ jobs: test-phi-3-mini-runner-linux: name: test-phi-3-mini-runner-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -607,7 +607,7 @@ jobs: test-eval_llama-wikitext-linux: name: test-eval_llama-wikitext-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -634,7 +634,7 @@ jobs: test-eval_llama-mmlu-linux: name: test-eval_llama-mmlu-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -661,7 +661,7 @@ jobs: test-llama_runner_eager-linux: name: test-llama_runner_eager-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -688,7 +688,7 @@ jobs: test-mediatek-models-linux: name: test-mediatek-models-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -715,7 +715,7 @@ jobs: test-openvino-linux: name: test-openvino-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read diff --git a/.github/workflows/trunk.yml b/.github/workflows/trunk.yml index 0eceddca36f..11446030cef 100644 --- a/.github/workflows/trunk.yml +++ b/.github/workflows/trunk.yml @@ -20,7 +20,7 @@ concurrency: jobs: test-models-macos: name: test-models-macos - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 strategy: matrix: # Mac runners are expensive and limited, and non reliable. @@ -57,7 +57,7 @@ jobs: test-models-linux-aarch64: name: test-models-linux-aarch64 - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -107,7 +107,7 @@ jobs: test-custom-ops-macos: name: test-custom-ops-macos - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 strategy: matrix: include: @@ -129,7 +129,7 @@ jobs: test-selective-build-macos: name: test-selective-build-macos - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 strategy: matrix: include: @@ -151,7 +151,7 @@ jobs: test-demo-backend-delegation: name: test-demo-backend-delegation - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -178,7 +178,7 @@ jobs: test-arm-backend: name: test-arm-backend - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -219,7 +219,7 @@ jobs: test-arm-cortex-m-size-test: name: test-arm-cortex-m-size-test - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -273,7 +273,7 @@ jobs: test-coreml-delegate: name: test-coreml-delegate - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 with: runner: macos-latest-xlarge python-version: '3.11' @@ -291,7 +291,7 @@ jobs: test-static-llama-ane: name: test-static-llama-ane - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 with: runner: macos-m1-stable python-version: '3.11' @@ -313,7 +313,7 @@ jobs: test-llama-torchao-lowbit: name: test-llama-torchao-lowbit - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 with: runner: macos-m1-stable python-version: '3.11' @@ -334,7 +334,7 @@ jobs: test-llama-runner-linux: # Test Both linux x86 and linux aarch64 name: test-llama-runner-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -392,7 +392,7 @@ jobs: test-llama-runner-macos: name: test-llama-runner-mac - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 strategy: matrix: dtype: [fp32] @@ -428,7 +428,7 @@ jobs: # # TODO(jackzhxng): Runner consistently runs out of memory before test finishes. Try to find a more powerful runner. # test-llava-runner-macos: # name: test-llava-runner-macos - # uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + # uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 # strategy: # fail-fast: false # with: @@ -456,7 +456,7 @@ jobs: test-qnn-model: name: test-qnn-model - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -482,7 +482,7 @@ jobs: test-qnn-optimum-model: name: test-qnn-optimum-model - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -508,7 +508,7 @@ jobs: test-apple-model: name: test-apple-model - uses: pytorch/test-infra/.github/workflows/macos_job.yml@main + uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.8 strategy: fail-fast: false with: @@ -543,7 +543,7 @@ jobs: # NB: Don't run this on fork PRs because they won't have access to the secret and would fail anyway if: ${{ !github.event.pull_request.head.repo.fork }} name: test-huggingface-transformers - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -664,7 +664,7 @@ jobs: test-llama-runner-qnn-linux: name: test-llama-runner-qnn-linux - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read @@ -712,7 +712,7 @@ jobs: docker-image: executorch-ubuntu-22.04-clang12 unittest-nxp-neutron: - uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.8 permissions: id-token: write contents: read diff --git a/.github/workflows/update-viablestrict.yml b/.github/workflows/update-viablestrict.yml index e639c497549..b72acfaa73c 100644 --- a/.github/workflows/update-viablestrict.yml +++ b/.github/workflows/update-viablestrict.yml @@ -16,7 +16,7 @@ jobs: environment: ${{ (github.event_name == 'schedule') && 'update-viable-strict' || '' }} steps: - name: Update viable/strict - uses: pytorch/test-infra/.github/actions/update-viablestrict@main + uses: pytorch/test-infra/.github/actions/update-viablestrict@release/2.8 with: repository: pytorch/executorch stable-branch: viable/strict diff --git a/install_requirements.py b/install_requirements.py index cfece24b1c2..70781b5445a 100644 --- a/install_requirements.py +++ b/install_requirements.py @@ -58,20 +58,8 @@ def python_is_compatible(): return True -# The pip repository that hosts nightly torch packages. -TORCH_NIGHTLY_URL = "https://download.pytorch.org/whl/nightly/cpu" - - -# Since ExecuTorch often uses main-branch features of pytorch, only the nightly -# pip versions will have the required features. -# -# NOTE: If a newly-fetched version of the executorch repo changes the value of -# NIGHTLY_VERSION, you should re-run this script to install the necessary -# package versions. -# -# NOTE: If you're changing, make the corresponding change in .ci/docker/ci_commit_pins/pytorch.txt -# by picking the hash from the same date in https://hud.pytorch.org/hud/pytorch/pytorch/nightly/ -NIGHTLY_VERSION = "dev20250625" +# The pip repository that hosts torch packages. +TORCH_URL = "https://download.pytorch.org/whl/test/cpu" def install_requirements(use_pytorch_nightly): @@ -89,7 +77,7 @@ def install_requirements(use_pytorch_nightly): # Setting use_pytorch_nightly to false to test the pinned PyTorch commit. Note # that we don't need to set any version number there because they have already # been installed on CI before this step, so pip won't reinstall them - f"torch==2.8.0.{NIGHTLY_VERSION}" if use_pytorch_nightly else "torch", + "torch==2.8.0" if use_pytorch_nightly else "torch", ] # Install the requirements for core ExecuTorch package. @@ -105,7 +93,7 @@ def install_requirements(use_pytorch_nightly): "requirements-dev.txt", *TORCH_PACKAGE, "--extra-index-url", - TORCH_NIGHTLY_URL, + TORCH_URL, ], check=True, ) @@ -150,12 +138,8 @@ def install_optional_example_requirements(use_pytorch_nightly): print("Installing torch domain libraries") DOMAIN_LIBRARIES = [ - ( - f"torchvision==0.23.0.{NIGHTLY_VERSION}" - if use_pytorch_nightly - else "torchvision" - ), - f"torchaudio==2.8.0.{NIGHTLY_VERSION}" if use_pytorch_nightly else "torchaudio", + ("torchvision==0.23.0" if use_pytorch_nightly else "torchvision"), + "torchaudio==2.8.0" if use_pytorch_nightly else "torchaudio", ] # Then install domain libraries subprocess.run( @@ -166,7 +150,7 @@ def install_optional_example_requirements(use_pytorch_nightly): "install", *DOMAIN_LIBRARIES, "--extra-index-url", - TORCH_NIGHTLY_URL, + TORCH_URL, ], check=True, )