Skip to content

ci: AUT-1111 support arbitrary Megatron-LM commits - #3640

Merged
chtruong814 merged 12 commits into
mainfrom
chtruong/aut-1111-megatron-dispatch
Aug 15, 2026
Merged

chtruong814 merged 12 commits into
mainfrom
chtruong/aut-1111-megatron-dispatch

Conversation

@chtruong814

@chtruong814 chtruong814 commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds workflow-dispatch support for testing NeMo-RL against an arbitrary full Megatron-LM commit reachable from an NVIDIA/Megatron-LM branch.

It also adds optional test selection without changing the default CI label behavior:

  • test_script_pattern filters unit and functional wrapper names using a case-insensitive substring.
  • test_platform selects all, h100, or gb200 test job matrices. Unit and Lfast tests remain H100-only.
  • CI:megatron remains a functional-only label and applies the megatron script pattern internally. megatron is not a separate test_to_run dispatch tier.
  • Functional wrappers with gb200 in their name are excluded from the H100 matrix and retained in the GB200 matrix.
  • Selections that do not produce any runnable tests for the requested level and platform fail during preflight instead of finishing green without tests.

With an empty pattern and the default test_platform=all, the existing CI matrices are preserved: 23 H100 unit wrappers, 17 H100 functional/Lfast wrappers, and 18 GB200 functional wrappers.

When megatron_lm_commit is supplied, one CPU preparation job checks out the requested commit, runs uv lock once, and publishes a run-scoped lockfile artifact. The H100 and GB200 container builds and downstream unit and functional test checkouts consume the same verified lockfile instead of resolving dependencies independently.

The artifact includes the NeMo-RL commit, Megatron-LM commit, and uv.lock checksum. Consumers verify all three before installing it. Artifact names include the workflow run attempt so reruns do not collide with immutable artifacts.

Example Run with Megatron-LM commit and filtered to a targeted test
https://github.com/NVIDIA-NeMo/RL/actions/runs/31825921864

Usage

Run one functional wrapper on H100 against an arbitrary Megatron-LM commit:

gh workflow run cicd-main.yml \
  --repo NVIDIA-NeMo/RL \
  --ref <branch> \
  -f test_to_run=L1 \
  -f test_script_pattern=L1_Functional_Tests_Megatron_4 \
  -f test_platform=h100 \
  -f megatron_lm_commit=<full-40-character-sha>

Omit megatron_lm_commit to use the commit pinned by the repository. Omit the filtering inputs to retain the normal test matrix for the selected level.

Before your PR is "Ready for review"

Pre checks:

  • Read and followed the contributor guidelines.
  • No additional unit-test fixture is needed for this workflow-only change; the selector and artifact installer were exercised locally.
  • GPU unit and functional suites were not run locally; they require the GitHub Actions runner/container path.
  • No separate documentation update is required; the workflow inputs and this usage example document the operator interface.

Validation

  • Verified default selector output: 23 unit, 17 H100 functional/Lfast, and 18 GB200 functional wrappers.
  • Verified filtered selector output for Megatron_4, Mcore, and GB200_MXFP8, including effective-zero validation.
  • Parsed the modified workflow and composite-action YAML files.
  • Passed Bash syntax checks for the Megatron helper and selector scripts.
  • Exercised manifest, commit, checksum, and lockfile-install verification with a local fixture.
  • Passed git diff --check.
  • Actionlint reports only the pre-existing matrix.is_optional warning.

Additional Information

The branch contains signed-off commits. To authorize PR CI for the current head:

/ok to test e2e8d83bcd808b3a24eaaf690ba3eb0df1ccfdc6

svcnemo-autobot and others added 5 commits August 12, 2026 21:13
Signed-off-by: svcnemo-autobot <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: svcnemo-autobot <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: svcnemo-autobot <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
@chtruong814
chtruong814 requested a review from a team as a code owner August 14, 2026 06:27
@copy-pr-bot

copy-pr-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

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.

@github-actions github-actions Bot added the CI Relating to CI label Aug 14, 2026
@chtruong814 chtruong814 added CI:megatron and removed CI Relating to CI labels Aug 14, 2026
@chtruong814

Copy link
Copy Markdown
Contributor Author

/ok to test

@copy-pr-bot

copy-pr-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

/ok to test

@chtruong814, there was an error processing your request: E1

See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/1/

@github-actions github-actions Bot added the CI Relating to CI label Aug 14, 2026
@chtruong814

Copy link
Copy Markdown
Contributor Author

/ok to test

@copy-pr-bot

copy-pr-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

/ok to test

@chtruong814, there was an error processing your request: E1

See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/1/

@chtruong814

Copy link
Copy Markdown
Contributor Author

/ok to test e9026ad

@chtruong814 chtruong814 added CI:L1 Run doctests, unit tests, and functional tests CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) and removed CI:megatron CI:L1 Run doctests, unit tests, and functional tests labels Aug 14, 2026
@chtruong814

Copy link
Copy Markdown
Contributor Author

/ok to test

@copy-pr-bot

copy-pr-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

/ok to test

@chtruong814, there was an error processing your request: E1

See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/1/

@chtruong814 chtruong814 added CI:L1 Run doctests, unit tests, and functional tests and removed CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) labels Aug 14, 2026
@chtruong814

Copy link
Copy Markdown
Contributor Author

/ok to test e2e8d83

@kajalj22

Copy link
Copy Markdown
Contributor

/claude review

Comment thread .github/scripts/plan-tests.sh Resolved
balasaajay
balasaajay previously approved these changes Aug 14, 2026
kajalj22
kajalj22 previously approved these changes Aug 14, 2026
@chtruong814
chtruong814 dismissed stale reviews from kajalj22 and balasaajay via 4466978 August 14, 2026 19:59
@kajalj22
kajalj22 self-requested a review August 14, 2026 20:04
@chtruong814

Copy link
Copy Markdown
Contributor Author

/ok to test 4466978

Comment thread .github/workflows/cicd-main.yml Resolved
@kajalj22
kajalj22 self-requested a review August 14, 2026 20:20
@kajalj22

Copy link
Copy Markdown
Contributor

/claude review

@chtruong814

Copy link
Copy Markdown
Contributor Author

/ok to test 9f2ab78

@chtruong814
chtruong814 enabled auto-merge (squash) August 14, 2026 20:59
@chtruong814
chtruong814 merged commit 3355a9c into main Aug 15, 2026
126 checks passed
@chtruong814
chtruong814 deleted the chtruong/aut-1111-megatron-dispatch branch August 15, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:L1 Run doctests, unit tests, and functional tests CI Relating to CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants