fix(e2e): accept non-root sandbox ownership for WhatsApp QR preload (#4522) - #4633
fix(e2e): accept non-root sandbox ownership for WhatsApp QR preload (#4522)#4633hunglp6d wants to merge 1 commit into
Conversation
…VIDIA#4522) The M-WA6b test expected root:444 for the WhatsApp compact-QR preload, but emit_sandbox_sourced_file() produces sandbox:444 in non-root mode (documented in sandbox-init.sh). Accept both root:444 and sandbox:444 since mode 444 (read-only) is the security-relevant property. Signed-off-by: Hung Le <hple@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 (1)
📝 WalkthroughWalkthroughThis PR updates a WhatsApp compact-QR preload file ownership check in the messaging providers E2E test. The assertion now accepts ChangesWhatsApp Preload File Ownership Assertion
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Selective E2E Results — ❌ Some jobs failedRun: 26822746929
|
|
Superseded by #4671, which carries the same fix on an internal NVIDIA/NemoClaw branch so E2E can be triggered without fork-branch restrictions. |
Summary
The
messaging-providers-e2enightly job failed becausetest-messaging-providers.shassertionM-WA6bexpected the WhatsApp compact-QR preload file to be ownedroot:444, but the sandbox runs in non-root mode whereemit_sandbox_sourced_file()(inscripts/lib/sandbox-init.sh) producessandbox:444instead. The file permissions (mode 444 = read-only) are the security-relevant property; ownership differs only by privilege-separation posture. This PR widens the assertion to accept both ownership variants.Related Issue
Fixes #4636
Changes
test/e2e/test-messaging-providers.sh: Add anelifbranch to theM-WA6bassertion that acceptssandbox:444alongsideroot:444, with a comment explaining why non-root mode produces a different owner.Validation
A focused
custom-e2e.yamlworkflow was run on a sibling branch to confirm this fix repairs the regression. The workflow re-runs only the jobs from the original nightly that this PR targets, onubuntu-latest, off the same fix commit as this PR.fix/nightly-e2e-whatsapp-qr-preload-owner-451f26f-custom-e2eonhunglp6d/NemoClawmessaging-providers-e2e (#78975726764)451f26f6a9e56d2bdc05cff47985545bb79c77a2The validation branch is intentionally not the head of this PR — it carries an extra
.github/workflows/custom-e2e.yamlcommit that is scaffolding, not part of the fix. Re-run the validation by pushing any commit to the validation branch.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesAI Disclosure
Signed-off-by: Hung Le hple@nvidia.com
Summary by CodeRabbit
Tests
Bug Fixes