Skip to content

[release 2.13] Apply Release only changes to 2.13 branch - #186959

Merged
atalman merged 2 commits into
pytorch:release/2.13from
atalman:release_only_changes_213_
Jun 10, 2026
Merged

atalman merged 2 commits into
pytorch:release/2.13from
atalman:release_only_changes_213_

Conversation

@atalman

@atalman atalman commented Jun 10, 2026 •

Copy link
Copy Markdown
Collaborator

Release-only changes for the release/2.13 branch cut, produced by running scripts/release/apply-release-changes.sh. The script repoints reusable workflows and composite actions from main to @release/2.13, rewrites templates to release/2.13 (with checkout_pr_head=False so PRs build the merge base rather than the PR head), pins the XLA checkout to the r2.13 branch, pins the disabled/unstable jobs and disabled-tests S3 JSON blobs to fixed versionIds, sets RELEASE_VERSION_TAG=2.13 for the workflow-regeneration lint check, and drops the pull_request-specific checkout ref from the linux binary build/test workflows.

Only files that are tracked in release/2.13 are included. The 2.12 PR additionally touched .ci/manywheel/build_cuda.sh and a few workflow files (torchbench/nitpicker/quantization-periodic) that are not tracked in this checkout, so they are intentionally omitted here.

Test Plan:
Ran the release script and linter:

DRY_RUN=disabled ./scripts/release/apply-release-changes.sh
lintrunner -a

lintrunner reported only pre-existing ACTIONLINT shellcheck warnings on generated workflow lines unrelated to the release-version edits, and made no changes to the staged files. Verified every staged hunk is a release-only edit (main -> @release/2.13, main -> release/2.13, XLA r2.13 pin, S3 versionId pins, RELEASE_VERSION_TAG=2.13, and the pull_request ref removal) with no submodule or unrelated changes.

This PR was authored with the assistance of Claude Code.

Release-only changes for the release/2.13 branch cut, produced by
running scripts/release/apply-release-changes.sh. The script repoints
reusable workflows and composite actions from @main to @release/2.13,
rewrites templates to release/2.13 (with checkout_pr_head=False so PRs
build the merge base rather than the PR head), pins the XLA checkout to
the r2.13 branch, pins the disabled/unstable jobs and disabled-tests S3
JSON blobs to fixed versionIds, sets RELEASE_VERSION_TAG=2.13 for the
workflow-regeneration lint check, and drops the pull_request-specific
checkout ref from the linux binary build/test workflows.

Only files that are tracked in release/2.13 are included. The 2.12 PR
additionally touched .ci/manywheel/build_cuda.sh and a few workflow
files (torchbench/nitpicker/quantization-periodic) that are not tracked
in this checkout, so they are intentionally omitted here.

Test Plan:
Ran the release script and linter:

```
DRY_RUN=disabled ./scripts/release/apply-release-changes.sh
lintrunner -a
```

lintrunner reported only pre-existing ACTIONLINT shellcheck warnings on
generated workflow lines unrelated to the release-version edits, and made
no changes to the staged files. Verified every staged hunk is a
release-only edit (@main -> @release/2.13, main -> release/2.13, XLA
r2.13 pin, S3 versionId pins, RELEASE_VERSION_TAG=2.13, and the
pull_request ref removal) with no submodule or unrelated changes.

This PR was authored with the assistance of Claude Code.
@atalman
atalman requested a review from a team as a code owner June 10, 2026 18:55
@pytorch-bot

pytorch-bot Bot commented Jun 10, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/186959

Note: Links to docs will display an error until the docs builds have been completed.

⏳ 155 Pending, 1 Unrelated Failure

As of commit fb46d7a with merge base 636bc91 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Release builds should use a fixed, reproducible build toolchain instead
of the floating builder image tags that main tracks (e.g.
pytorch/manylinux2_28-builder:cuda12.6). For 2.12 the binary build
workflows resolved the image dynamically via calculate-docker-image; for
2.13 we freeze that resolved image as a literal pin.

The pin is applied in the generator (generate_binary_build_matrix.py)
rather than in the generated YAML directly, so re-running
.github/regenerate.sh (and the lint job that asserts the generated files
are up to date) reproduces the pinned tags. wheel_container_image_tag_prefix()
appends the pin only for the linux manywheel OSes (linux, linux-aarch64,
linux-s390x), since only those builds run inside these containers;
windows and macos keep the plain tag prefix.

The pin suffix is the .ci/docker tree hash, f38ba0b
(git rev-parse HEAD:.ci/docker), which is exactly the tag that
.github/actions/binary-docker-build (and the s390x equivalent) publish
as ${prefix}-${CI_FOLDER_SHA}. It matches the image already published on
Docker Hub, e.g.
pytorch/manylinux2_28_aarch64-builder:cpu-aarch64-f38ba0b10220982e39441d29d203d803a2b56c92

Test Plan:
Regenerated the workflows in release mode and verified the result:

```
RELEASE_VERSION_TAG=2.13 python3 .github/scripts/generate_ci_workflows.py
```

- Every `image:` and matrix `docker_image_tag_prefix` in the three linux
  manywheel generated workflows now carries the `-f38ba0b...` suffix
  (cpu, cpu-aarch64, cuda12.6/13.0/13.2, rocm7.1/7.2, xpu, cpu-s390x);
  no linux builder image remains floating.
- Windows and macos generated workflows are unchanged (plain `cpu`,
  `cuda12.6`, ...), confirming the pin is linux-only.
- Re-running the generator a second time produced byte-identical output
  (md5sum unchanged), so the regeneration/lint up-to-date check is
  stable.

Note: the local linters that shell out to `uv` could not run in this
environment; the change was format-checked manually.

This PR was authored with the assistance of Claude Code.
@atalman atalman added the ciflow/binaries Trigger all binary build and upload jobs on the PR label Jun 10, 2026
@atalman
atalman merged commit 1f706b9 into pytorch:release/2.13 Jun 10, 2026
375 of 551 checks passed

This branch had an error being deployed

1 failed deployment
upload-stats — fb46d7aa Deployed Jun 10, 2026 by atalman via upload-stats-to-s3 #694
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/binaries Trigger all binary build and upload jobs on the PR ciflow/docker ciflow/inductor ciflow/inductor-pallas release notes: releng release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants