Skip to content

Single commit for main2dev nightly#4614

Merged
Phlip79 merged 3 commits intoNVIDIA:mainfrom
Phlip79:nightly-sync-single-commit
May 5, 2026
Merged

Single commit for main2dev nightly#4614
Phlip79 merged 3 commits intoNVIDIA:mainfrom
Phlip79:nightly-sync-single-commit

Conversation

@Phlip79
Copy link
Copy Markdown
Member

@Phlip79 Phlip79 commented May 4, 2026

The nightly main2dev automation should continually push to the same commit, instead of having multiple small commits.

Replace the bot's fix-as-new-commit pattern (PR NVIDIA#4436 was the
exemplar — many small github-actions[bot] / svcnvidia-nemo-ci
commits accumulated across the CI iteration loop) with an
amend-and-force-push pattern, so each sync PR ends with exactly
one bot-authored commit at HEAD.

Three skill edits:
- Phase 1 "Commit and Push" gains an explicit `git commit --amend
  --no-edit` step folding post-merge fixes into the merge commit
  itself; the merge structure (both parents) is preserved.
- Phase 3 step 4's "fix, commit, push" becomes "fix, amend,
  `git push --force-with-lease`". Lease (not raw force) so a human
  commit landing on the branch out-of-band aborts the push instead
  of being clobbered.
- Rules gains a canonical single-commit-policy bullet that the
  Phase 1 and Phase 3 sections point to instead of restating.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 4, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@Phlip79
Copy link
Copy Markdown
Member Author

Phlip79 commented May 4, 2026

/ok to test bd7353d

@Phlip79
Copy link
Copy Markdown
Member Author

Phlip79 commented May 4, 2026

/claude review

Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

LGTM

The user clarified that the Phase 1 commit (the large merge) must
never be modified once pushed; only Phase 3 fixes accumulate, and
they squash into a single rolling fix commit on top. Final PR has
1 commit if CI passes, 2 commits otherwise — never more.

- Rules: rename "single-commit policy" to "two-commit policy" and
  spell out the merge-immutable / fix-rolling split.
- Phase 1 closing pointer: now says the commit is immutable for
  the rest of the run, fixes go to the rolling commit on top.
- Phase 3 step 4: branch on `git rev-parse --verify HEAD^2` —
  succeeds (HEAD is the merge commit) ⇒ create the fix commit
  with a normal push; fails (HEAD is the existing fix commit) ⇒
  amend with `--force-with-lease`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Phlip79
Copy link
Copy Markdown
Member Author

Phlip79 commented May 5, 2026

/ok to test f6d1515

@Phlip79 Phlip79 marked this pull request as ready for review May 5, 2026 15:35
@svcnvidia-nemo-ci svcnvidia-nemo-ci requested a review from a team May 5, 2026 15:36
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the docs-only documentation only (docs or docstrings) label May 5, 2026
@Phlip79 Phlip79 added this pull request to the merge queue May 5, 2026
@svcnvidia-nemo-ci
Copy link
Copy Markdown

🔄 Merge queue validation started!

You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/25394814657

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 5, 2026
@Phlip79
Copy link
Copy Markdown
Member Author

Phlip79 commented May 5, 2026

/ok to test febbace

@Phlip79 Phlip79 enabled auto-merge May 5, 2026 19:13
@Phlip79 Phlip79 added this pull request to the merge queue May 5, 2026
@svcnvidia-nemo-ci
Copy link
Copy Markdown

🔄 Merge queue validation started!

You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/25397118010

Merged via the queue into NVIDIA:main with commit b819ac7 May 5, 2026
41 checks passed
@Phlip79 Phlip79 deleted the nightly-sync-single-commit branch May 5, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-only documentation only (docs or docstrings)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants