Skip to content

Cut the nightly branch in this repo instead of from test-infra - #1554

Merged
huydhn merged 1 commit into
meta-pytorch:mainfrom
atalman:atalman/cut-nightly-in-repo
Sep 14, 2026
Merged

huydhn merged 1 commit into
meta-pytorch:mainfrom
atalman:atalman/cut-nightly-in-repo

Conversation

@atalman

@atalman atalman commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Our nightly branch is cut by pytorch/test-infra's trigger_nightly.yml, which runs .github/actions/trigger-nightly as pytorchbot. On 2026-09-10 pytorchbot stopped being able to write to the meta-pytorch org: in that day's run all six pytorch/* domains cut fine and all eight resolving to meta-pytorch/* failed with git exit 128. Our nightly branch has not moved since 2026-09-09T11:37:02Z and no wheels have been built since.

Move the cut here, where GITHUB_TOKEN already has the access. cut-nightly runs the same commit-tree/force-push as the test-infra action, so the nightly branch keeps being a real branch carrying main's tree under a dated commit -- unchanged for anything that consumes it.

A push made with GITHUB_TOKEN does not start a new workflow run, so the existing push: branches: [nightly] trigger cannot be what builds this. The build therefore runs in the same run as the cut, with ref: nightly so it builds exactly the commit just pushed. That trigger stays for manual pushes to the branch.

trigger-event is already github.event_name, and test-infra's _binary_upload.yml treats schedule as a first-class nightly path -- same pytorchbot-env, same gha_workflow_nightly_build_wheels OIDC role, same upload gate as a refs/heads/nightly push -- so the upload side needs no change. The matrix has said meta-pytorch/data since 202573b and uploaded under that OIDC sub daily through 2026-09-09, so the role trust is already correct.

generate-matrix and build gain if: !failure() && !cancelled() because cut-nightly is skipped on every event except schedule, and a skipped needs would otherwise skip them too.

Our nightly branch is cut by pytorch/test-infra's trigger_nightly.yml,
which runs .github/actions/trigger-nightly as pytorchbot. On 2026-09-10
pytorchbot stopped being able to write to the meta-pytorch org: in that
day's run all six pytorch/* domains cut fine and all eight resolving to
meta-pytorch/* failed with git exit 128. Our nightly branch has not moved
since 2026-09-09T11:37:02Z and no wheels have been built since.

Move the cut here, where GITHUB_TOKEN already has the access. cut-nightly
runs the same commit-tree/force-push as the test-infra action, so the
nightly branch keeps being a real branch carrying main's tree under a
dated commit -- unchanged for anything that consumes it.

A push made with GITHUB_TOKEN does not start a new workflow run, so the
existing `push: branches: [nightly]` trigger cannot be what builds this.
The build therefore runs in the same run as the cut, with ref: nightly so
it builds exactly the commit just pushed. That trigger stays for manual
pushes to the branch.

trigger-event is already github.event_name, and test-infra's
_binary_upload.yml treats `schedule` as a first-class nightly path -- same
pytorchbot-env, same gha_workflow_nightly_build_wheels OIDC role, same
upload gate as a refs/heads/nightly push -- so the upload side needs no
change. The matrix has said meta-pytorch/data since 202573b and
uploaded under that OIDC sub daily through 2026-09-09, so the role trust
is already correct.

generate-matrix and build gain `if: !failure() && !cancelled()` because
cut-nightly is skipped on every event except schedule, and a skipped
`needs` would otherwise skip them too.

The commit is attributed to github-actions[bot] rather than pytorchbot,
since that is now who makes it.
@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 14, 2026

@NicolasHug NicolasHug left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stamping

@huydhn
huydhn merged commit 90dbd23 into meta-pytorch:main Sep 14, 2026
50 checks passed
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.

3 participants