fix(e2e): recover common egress OpenClaw retries - #5203
Conversation
Signed-off-by: San Dang <sdang@nvidia.com>
|
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)
📝 WalkthroughWalkthroughThe pull request refactors the OpenClaw e2e test assertions to handle transient network errors more robustly. A centralized CLI helper reduces duplication, and the assertion loop now captures and combines stderr with stdout to distinguish permanent SSRF policy blocks from transient DNS and network failures that should retry. ChangesOpenClaw agent assertion resilience
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: None Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
Vitest E2E Scenario RecommendationRequired Vitest E2E scenarios: None Full Vitest E2E advisor summaryVitest E2E Scenario AdvisorBase: Required Vitest E2E scenarios
Optional Vitest E2E scenarios
Relevant changed files
|
PR Review AdvisorFindings: 0 needs attention, 4 worth checking, 0 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
Consider writing more tests for
This is an automated advisory review. A human maintainer must make the final merge decision. |
Selective E2E Results — ✅ All requested jobs passedRun: 27325921464
|
Summary
Make the common-egress OpenClaw agent assertion retry transient network and inference failures instead of treating them as policy blocks. The assertion now detects first-run OpenClaw scope-upgrade fallback, runs
nemoclaw <sandbox> recover, and retries the agent turn so the test does not fail on the known post-onboard pairing handoff race.Related Issue
Fixes #5191
Changes
test/e2e/test-common-egress-agent-e2e.shso cleanup and recovery use the source CLI when available.openclaw agent, recover pending scope-upgrade approvals, and retry with progressive backoff for DNS, fetch, gateway, and NVIDIA inference timeout/503 signals.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Additional validation run locally:
bash -n test/e2e/test-common-egress-agent-e2e.shshellcheck test/e2e/test-common-egress-agent-e2e.shgit diff --checkenv NEMOCLAW_NON_INTERACTIVE=1 NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE=1 test/e2e/test-common-egress-agent-e2e.shreached C3 after C1 and C2 passed, then was interrupted before final summary.Signed-off-by: San Dang sdang@nvidia.com
Summary by CodeRabbit