Repository navigation
fix(e2e): bound MCP discovery and verify backup transport - #12494
prekshivyas wants to merge 8 commits into
Conversation
Signed-off-by: Prekshi Vyas <prekshiv@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. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/NemoClaw/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughPrivileged backup readiness now checks OpenShell command transport. State archive errors identify when no archive was captured. E2E tests set an MCP discovery timeout and capture diagnostics for selected failures. ChangesSandbox backup recovery
E2E MCP and rebuild reliability
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant BackupQuiesce
participant PrivilegedProbe
participant OpenShellTransport
BackupQuiesce->>PrivilegedProbe: Verify maintenance window
BackupQuiesce->>OpenShellTransport: Repeat probe within deadline
OpenShellTransport-->>BackupQuiesce: Return transport readiness
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
|
🌿 Preview your docs: https://nvidia-preview-pr-12494.docs.buildwithfern.com/nemoclaw |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit d8dfa08 in the Show a line coverage summary of the most impacted files.
TypeScript / code-coverage/cliThe overall line coverage in commit d8dfa08 in the Show a line coverage summary of the most impacted files.
Updated |
Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
|
@coderabbitai review |
✅ Action performedReview finished.
|
Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
|
@coderabbitai review |
✅ Action performedReview finished.
|
Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
|
@coderabbitai review |
✅ Action performedReview finished.
|
Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
|
@coderabbitai review |
✅ Action performedReview finished.
|
deepujain
left a comment
There was a problem hiding this comment.
Reviewed 85bec4311c22c2b9d94a04272ca16a51f160f231. No new code defect found in the changed backup admission, discovery errors, MCP fixture timeout, or failure diagnostics. The transport probe stays within the existing maintenance deadline, failures stop backup, and diagnostic collection preserves the original failed operation.
Local validation: 155 tests passed across six files, covering maintenance recovery and timeout, backup transport errors, channel diagnostics, MCP environment construction, MCP failure evidence, and Hermes HTTP diagnostics. I also read all nine specialist findings and E2E recommendations from Advisor run 36639347097; all are clear for this commit.
Approval is held by the failing required checks aggregate in CI run 36638870509. Its audit artifacts reject three advisories for undici@8.10.0. The manifests and lockfiles match base b1494a0, so this is inherited dependency debt. Please resolve it through the dependency fix or repository-approved audit policy, then provide passing required checks.
Live validation is still unproven: run 36631187132 tested an earlier commit. The OpenClaw MCP and Telegram jobs failed while restoring the CLI because snapshot-sanitizer-boundary.cjs was missing, before the affected scenarios executed. The focused tests above do not establish that the original live failures are fixed. Advisor requests no additional selectors beyond the existing plan; it does not certify a passing live run.
This is a COMMENT review, not an approval. No additional candidate code change is requested by this review.
Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
Outcome
Give the MCP bridge E2E fixture enough time to discover tools through its public tunnel. Require OpenShell command transport to verify a running OpenClaw sandbox’s maintenance window before rebuild starts its backup.
Reason
Run 36593348569 returned no deferred MCP tools and aborted Telegram rebuild during pre-rebuild backup. Controlled testing reproduced MCP discovery exceeding the default 1.5-second budget. A privileged Docker maintenance receipt can also arrive before OpenShell command transport is ready. The original Telegram failure’s precise trigger remains unconfirmed.
Changes
NEMOCLAW_MCP_TOOLS_LIST_TIMEOUT_MSoverride to 5000 for MCP fixture onboarding and rebuild. Production defaults and tool-call timeouts remain unchanged.Verification
snapshot-backup-deadline-boundary.test.tsandsnapshot-transport-errors.test.ts.986337c629c02b29a266bdb09eeacf620ba0878bpassed CI and the managed-images workflow. CodeRabbit was clear on that commit. These results predate the six-line test extension.Review notes
Commit under review:
d8dfa08926a9c4a0313233603be8d7a5f60c336a. All eight PR commits have valid GitHub signatures. Normal commit and publication hooks passed. CI and automated reviews for this commit are pending.Advisor run 36863091222 identified one deadline-result coverage gap. The existing deadline case now checks the requested result fields and stderr non-disclosure. A new Advisor result is pending.
Passing focused tests and prior CI do not establish passing MCP/Telegram live E2E for the new commit. Final live evidence remains outstanding. The maintainer approved staging Brev Launchable for this PR, including deployment, the full E2E suite, and workspace cleanup verification. This update stays in PR #12494 and does not merge it or create another PR.
Documentation Writer Review
docs-updatedSigned-off-by: Prekshi Vyas prekshiv@nvidia.com
Summary by CodeRabbit