Skip to content

Automate release branch preparation - #23287

Draft
JacobSzwejbka wants to merge 14 commits into
mainfrom
automate/release-branch-prep
Draft

JacobSzwejbka wants to merge 14 commits into
mainfrom
automate/release-branch-prep

Conversation

@JacobSzwejbka

@JacobSzwejbka JacobSzwejbka commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Automate the deterministic branch-cut work so release creation no longer depends on a manual checklist. The normal invocation is DRY_RUN=disabled ./scripts/release/cut-release-branch.sh; the release version comes from viable/strict, and the raw cut is preserved before the prepared release branch is committed and pushed.

PyTorch candidate wheels on the test index use final-form package versions, while source candidates use vX.Y.Z-rcN tags. Preparation now treats those as separate facts: it selects the next final-form wheel train, resolves the newest matching RC source tag, and synchronizes the source pin plus c10 headers to that tag. It reads torchvision and torchaudio wheel metadata to select versions that declare the exact Torch dependency, and requires the same Torch/domain train on cu134 before mutating the checkout. The exceptional cu134 package list is rewritten to those release artifacts.

The pre-commit hook preserves release source pins instead of replacing them with the main nightly. Release metadata uses a dedicated build marker, so ordinary wheel jobs no longer trigger the unrelated QNN SDK shortcut. CPU wheels declare a bounded Torch range; CUDA wheels declare the exact matching build. CUDA jobs reject a missing variant in their environment setup. Minimal and source installs do not acquire release-wheel metadata, and main plus release lint use the same test index until finalization.

Stable dependency finalization remains in follow-up #23289. This PR does not change the current dependency pins or ExecuTorch version.

Test plan

  • preparation suite: 2 tests
  • cu134 dependency suite: 9 tests and 16 subtests
  • live test-index metadata check: Torch 2.9.0 resolves torchvision 0.24.0 and torchaudio 2.9.0
  • live RC-tag check: Torch 2.9.0 resolves its newest v2.9.0-rcN source tag
  • missing CUDA variant fails in the environment script before setup.py
  • mypy, ufmt, flake8, shell syntax, and git diff --check

Authored with OpenAI Codex.

@pytorch-bot

pytorch-bot Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 20 New Failures, 1 Unrelated Failure

As of commit ad6781a with merge base 7dc8dd9 (image):

NEW FAILURES - The following jobs have failed:

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.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 30, 2026
@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@JacobSzwejbka
JacobSzwejbka force-pushed the automate/release-branch-prep branch from 7a4f14d to 0d92965 Compare October 1, 2026 16:39
@JacobSzwejbka JacobSzwejbka changed the title Automate release branch preparation and finalization Automate release branch preparation Oct 1, 2026
Authored with assistance from Codex.
Preserve release-specific source synchronization while incorporating the weekly TorchAO pin automation.\n\nAuthored with assistance from Codex.

This branch was successfully deployed

1 active deployment
cadence — ad6781ac Deployed Oct 2, 2026 by JacobSzwejbka via hifi-op-test / hifi4 #31103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant