Repository navigation
ci: authenticate nvcr.io container pulls with NGC API key - #1559
Conversation
NGC now requires authenticated pulls for NeMo (and other) containers after an EULA acceptance gate. Add `credentials:` to the `container:` blocks in gpu_tests.yml and _example_tests_runner.yml so GitHub Actions logs in to nvcr.io before pulling. Requires repo secret NGC_API_KEY and one-time EULA acceptance on ngc.nvidia.com by an org admin. Signed-off-by: Keval Morabia <[email protected]>
📝 WalkthroughWalkthroughThis pull request adds NGC registry authentication credentials to two GitHub Actions workflows. Container registry credentials are configured in the reusable test runner workflow and the GPU tests workflow, both using the same authentication pattern with an ChangesNGC Registry Authentication
🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Warning
CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.
Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/_example_tests_runner.yml:
- Around line 37-39: The reusable workflow `_example_tests_runner.yml` consumes
secrets NGC_API_KEY, HF_TOKEN, and CODECOV_TOKEN but does not declare them under
on.workflow_call.secrets; add an on.workflow_call.secrets section that declares
each secret (NGC_API_KEY, HF_TOKEN, CODECOV_TOKEN) so callers using `secrets:
inherit` will be validated (mark them required as appropriate) to surface
missing-secret errors.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 81875e7f-8bdf-43c1-a72c-c0da9529e846
📒 Files selected for processing (2)
.github/workflows/_example_tests_runner.yml.github/workflows/gpu_tests.yml
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1559 +/- ##
==========================================
+ Coverage 69.43% 75.97% +6.54%
==========================================
Files 477 477
Lines 51977 51977
==========================================
+ Hits 36090 39490 +3400
+ Misses 15887 12487 -3400
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
What does this PR do?
Type of change: Bug fix (CI infrastructure)
NGC now requires authenticated pulls for
nvcr.io/nvidia/nemo:*(and likely other) containers after an EULA acceptance gate. Unauthenticated pulls fail with:Add a
credentials:block to thecontainer:spec ingpu_tests.ymland_example_tests_runner.ymlso GitHub Actions logs in to nvcr.io with an NGC API key before pulling.Usage
Required follow-up (cannot be done in code)
NGC_API_KEY(Settings → Secrets and variables → Actions).Testing
Before your PR is "Ready for review"
CONTRIBUTING.md: N/AAdditional Information
The lint warning
Context access might be invalid: NGC_API_KEYshown in IDE will resolve once the secret is added to the repository.Summary by CodeRabbit