fix(e2e): default protected images to sandbox user - #11613
Conversation
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe protected managed-image build now defaults to the ChangesProtected managed-image runtime user
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to Protected images now default to the intended sandbox user, with coverage for both architectures and explicit overrides. No merge-blocking risk was identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 1439110 in the TypeScript / code-coverage/cliThe overall line coverage in commit 1439110 in the Show a line coverage summary of the most impacted files.
Updated |
|
PR Review Advisor finished for commit |
|
Ready for human review and merge at commit 1439110; label v0.0.124.
Local Advisor could not create its sandbox. Alternative review completed through full-diff self-review, protecting tests, hosted Advisor, CI, and selected E2E. CodeRabbit skipped the draft; this is not a CodeRabbit clearance claim. This repairs the main regression blocking #11487. After a maintainer merges this PR, scheduled follow-up will integrate the repair into #11487 and resume its protected-runtime E2E. No merge performed. |
Outcome
Protected managed-image builds select the non-root
sandboxuser when the caller omits--runtime-user. Both startup architectures can now reach Hermes qualification without violating its Dockerfile's non-root requirement.Reason
The shared builder still defaulted to
rootafter the managed runtime contract moved tosandbox. The multiarch startup workflow omitted the option, while GPU qualification already selectedsandboxexplicitly.The same Hermes build failure occurred on both architectures in PR #11487 E2E and main E2E at bb6800b8. This dependency unblocks #11487. Missing
contracts.jsonwas a consequence of the failed build, not a separate cause.Changes
sandbox; preserve explicit selection and final image-user validation.rootunder the default contract.Verification
npx --no-install vitest run --project integration test/platform/images/protected-managed-image-build-script.test.ts— 37 tests passed.npm run build:cliandnpm --prefix nemoclaw run build— passed.bb6800b8fbb15b962822a1ef92a460dd1eab0229.git diff --check— passed. The diff contains no secrets, API keys, or credentials.managed-image-multiarch-startup; live candidate evidence is pending.Review notes
NVIDIA/NemoClaw commit
14391108763ea81e30c6e8da094e67a0161a95cdchanges the sensitive pathscripts/checks/build-protected-managed-images.sh. Full-diff self-review found no actionable correctness or security findings. The change preserves Hermes' non-root check and rejects a mismatched final image user. This is not independent review or maintainer approval.Local Advisor could not start its first specialist: OpenShell reported
sandbox is not readyduring creation ofpr-adv-5f1e35416ea5. Cleanup deleted that sandbox. No specialist review completed. The authorized alternative review path is in use; independent automated review, CI, and selected E2E remain pending. The contributor doctor also hit the default Node heap limit; publication validation uses its recommended 8 GiB heap. Both missing build outputs were subsequently built. Global CLI exposure was not changed.Signed-off-by: Julie Yaunches jyaunches@nvidia.com
Summary by CodeRabbit
sandboxas the default runtime user.root, remain supported.