fix(e2e): add gateway connectivity retry before recovery approve#5375
fix(e2e): add gateway connectivity retry before recovery approve#5375hunglp6d wants to merge 1 commit into
Conversation
After the legacy gateway-pinned approve deliberately fails in the issue-4462 characterization test, the gateway WebSocket can be transiently unreachable. The immediate recovery approve then fails with "gateway connect failed". Add a short polling loop (5 × 2 s) that waits for device_state_json to succeed before issuing the recovery approve, giving the gateway time to stabilise after the failed request. 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. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
This is AI-generated PR. |
Summary
✨ [AI-generated PR]
The issue-4462-gateway-pinned-approval-characterization-e2e nightly job fails intermittently because the gateway WebSocket is transiently unreachable after the legacy approve characterization step deliberately provokes a failure. The recovery openclaw devices approve fires immediately without waiting, hitting gateway connect failed.
This PR adds a short polling loop (5 attempts x 2 s) that waits for device_state_json to succeed before issuing the recovery approve, giving the gateway time to stabilise.
Root Cause
Between the June 12 and June 13 nightlies, commits b747bfa and 09a5c69 hardened the recovery proxy-env sourcing path. The legacy approve's failed WebSocket request leaves the gateway briefly unstable; the test's recovery approve fires instantly without any backoff. This is a test-side timing issue, not a product bug.
Changes
Nightly Run
Test Plan
Signed-off-by: Hung Le hple@nvidia.com
Fixes #5377