Skip to content

Allow-list the release lines' RC and GA tags for runner groups - #8502

Merged
huydhn merged 1 commit into
mainfrom
release-runner-groups-rc-tags
Aug 11, 2026
Merged

Allow-list the release lines' RC and GA tags for runner groups#8502
huydhn merged 1 commit into
mainfrom
release-runner-groups-rc-tags

Conversation

@huydhn

@huydhn huydhn commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Release binaries are built from tags, not branches: pushing v2.14.0-rc1 runs the build workflows at refs/tags/v2.14.0-rc1. GitHub matches selected_workflows entries on the exact ref, so the @refs/heads/release/2.14 entries this script already emits don't authorize those runs — which is why https://github.com/pytorch/pytorch/actions/runs/31528881582 needed the tag added to the runner groups by hand.

Emit tag refs alongside the branch refs, for every pinned release line, so a patch release on the preceding line keeps runner access too. Each line contributes its newest GA tag and its newest v<version>-rc<n>, ranked by (patch, rc) so v2.13.1-rc1 supersedes the rc15 that shipped as v2.13.0.

Only the newest of each is kept — pinning every tag would grow the allow-list and the per-ref discovery cost by a workflow set per tag (2.13 reached rc15). Eviction is safe: the allow-list is checked when a job starts, so in-flight builds are unaffected.

Tags come from git/matching-refs, one request instead of paging pytorch/pytorch's whole tag history.

Testing

8 new unit tests, 22 pass. lintrunner clean. End-to-end against the live API in discovery-only mode:

Target refs: ['refs/heads/main', 'refs/heads/nightly', 'refs/heads/release/2.14',
              'refs/heads/release/2.13', 'refs/tags/v2.14.0-rc1',
              'refs/tags/v2.13.0', 'refs/tags/v2.13.0-rc15']
Desired allow-list (39 references):
  ...generated-linux-binary-manywheel-nightly.yml@refs/tags/v2.14.0-rc1

https://github.com/pytorch/test-infra/actions/runs/31543618002/job/93951275801#step:4:15

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
torchci Ignored Ignored Aug 11, 2026 10:43pm

Request Review

@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 Aug 11, 2026
Release binaries are built from tags, not branches: pushing v2.14.0-rc1
runs the build workflows at refs/tags/v2.14.0-rc1. GitHub matches
selected_workflows entries on the exact ref, so the @refs/heads/release/2.14
entries this script already emits do not authorize those runs, and the tag
had to be added to the groups by hand for 2.14.0-rc1.

Emit tag refs alongside the branch refs, for every pinned release line rather
than just the candidate's, so a patch release on the preceding line keeps
runner access too. Each line contributes its newest GA tag and its newest
v<version>-rc<n>, ranked by (patch, rc) so v2.13.1-rc1 supersedes the rc15
that shipped as v2.13.0. Keeping only the newest of each is deliberate:
pinning every tag would grow both the allow-list and the per-ref discovery
cost by a workflow set per tag (2.13 reached rc15). A newer RC evicting an
older one is fine - the allow-list is checked when a job starts, so in-flight
builds are unaffected.

Tags come from git/matching-refs, which returns the refs under the prefix in
one request rather than paging pytorch/pytorch's entire tag history.
@huydhn huydhn changed the title Allow-list the release candidate's RC and GA tags for runner groups Allow-list the release lines' RC and GA tags for runner groups Aug 11, 2026
@huydhn
huydhn force-pushed the release-runner-groups-rc-tags branch from 17febd7 to f001d83 Compare August 11, 2026 22:43
@huydhn
huydhn requested a review from atalman August 11, 2026 23:02
@huydhn
huydhn merged commit 9c5f93d into main Aug 11, 2026
11 checks passed
@huydhn
huydhn deleted the release-runner-groups-rc-tags branch August 11, 2026 23:15
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.

2 participants