nvidia-nemo/megatron-bridge/cicd
Claude Code and agent skill by nvidia-nemo/megatron-bridge
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
CI/CD reference for Megatron Bridge — pipeline structure, commit and PR workflow, CI failure investigation, and common failure patterns.
Install
npx vskill@latest install nvidia-nemo/megatron-bridge/cicdSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as nvidia-nemo/megatron-bridge/cicd.
CI/CD
Commit and PR Workflow
- Never commit directly to `main` — always create a feature branch.
- Always sign commits:
git commit -s -m "message". - PR title format: Conventional Commits —
<type>(<scope>): <description>
(e.g., feat(model): add Qwen3 model bridge). See @CONTRIBUTING.md for the full PR workflow, type/scope taxonomy, and DCO requirements.
How CI Is Triggered
The workflow is defined in @.github/workflows/cicd-main.yml and is triggered on push — not on pull_request. This is intentional: a bot called copy-pr-bot controls when CI runs.
Mechanism:
- When a PR is opened,
copy-pr-botwatches for a trust signal. - Trust is established in one of two ways:
- All commits on the PR branch are GPG-signed by a verified NVIDIA contributor → bot triggers automatically.
- An NVIDIAN posts
/ok to test <commit-sha>as a PR comment → bot triggers manually for that SHA.
- Once trusted,
copy-pr-botcopies the PR's code into the remote branch
pull-request/<number> and pushes it.
- That push fires the workflow's
pushtrigger onrefs/heads/pull-request/<number>,
launching CI.
Consequences:
- CI never runs on untrusted pushes — external contributors always need
/ok to test. - The running workflow branch is
pull-request/<number>, not the author's feature branch. - Pushing a new commit to a PR does not automatically re-trigger CI unless the
commit is signed or /ok to test <new-sha> is posted.
- Concurrent runs for the same PR are cancelled automatically (concurrency group per PR number).
Pipeline Structure
- Slack notifications are sent on completion for scheduled and nightly runs.
For functional test tier semantics and job-to-directory mapping, see the testing skill.
CI Failure Investigation
Locating the PR from a CI Branch
Investigating a Failing Job
- Get the PR number from the branch name (see above).
- Review the changeset:
``bash gh pr diff "$PR_NUMBER" --repo NVIDIA-NeMo/Megatron-Bridge ``
- Identify the failing job from
gh pr checksoutput. - Fetch job logs:
``bash gh run list --repo NVIDIA-NeMo/Megatron-Bridge --branch "pull-request/$PR_NUMBER" gh run view <run_id> --repo NVIDIA-NeMo/Megatron-Bridge --log-failed > run.log ``
- Scan logs in chunks — log files can exceed 10,000 lines, never load them whole:
``bash wc -l run.log tail -200 run.log # start from the end sed -n '1,200p' run.log # or scan forward in 200-line chunks ``
- Cross-reference the changeset against the failing step.
Hugging Face Model Access In CI
Assume CI functional-test containers run with Hugging Face models offline (HF_HUB_OFFLINE=1) and a pre-populated HF_HOME. When reproducing or fixing CI failures involving HF models, mirror this locally by setting HF_HUB_OFFLINE=1 after warming the cache. Test fixtures must not depend on live Hub API calls such as list_repo_files() or uncached downloads during CI. For trust_remote_code=True toy checkpoints, copy custom Python modules from the already loaded local/cache source files or a local snapshot, not by listing the remote repo at test time.
Common Failure Patterns
| Symptom | Likely Cause | Action | |
|---|---|---|---|
| CI never started on a PR | Commits not GPG-signed and no /ok to test comment | Post /ok to test <full-sha> on the PR | |
| Lint job fails | ruff or pre-commit violation | Run ruff check --fix + ruff format locally | |
| Container build fails | Dependency conflict or stale uv.lock | Re-run uv lock inside Docker and commit updated lock | |
| Unit tests fail | Code regression or missing import | Run failing test locally; check the PR diff | |
| Functional test (L0) fails | Integration breakage | Check GPU runner logs; reproduce with L0_Launch_*.sh | |
HF model fixture passes locally but fails in CI with OfflineModeIsEnabled | Test made a live Hugging Face Hub API/download call; CI has HF_HUB_OFFLINE=1 | Warm local cache, reproduce with HF_HUB_OFFLINE=1, and change the fixture to use cached/local artifacts only | |
cicd-wait-in-queue running long | Many PRs queued; automation serializes runners to avoid interleaving | Wait; or check queue depth in the Actions tab | |
| MCore submodule mismatch | Pinned commit out of sync | Update 3rdparty/Megatron-LM submodule and re-lock | |
| Stale checkpoint auto-resume | nemo_experiments/ from a previous run exists | rm -rf nemo_experiments before starting fresh | |
| Port collision on Slurm (EADDRINUSE) | ntasks-per-node=8 with torchrun | Drop torchrun; use ntasks-per-node=8 with uv run python script.py |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cicd/SKILL.md
Popularity
- Repository stars
- 775
- Repository forks
- 401
- 7-day trend score
- 33
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nvidia-nemo/megatron-bridge/cicd)