Skip to content

Wait for settled paired-computer failure before retrying in E2E - #720

Merged
sambitcreate merged 3 commits into
mainfrom
feature/paired-computer-recovery-e2e
Nov 6, 2026
Merged

sambitcreate merged 3 commits into
mainfrom
feature/paired-computer-recovery-e2e

Conversation

@sambitcreate

@sambitcreate sambitcreate commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

The paired-computer recovery E2E switched its failing IPC handler to healthy as soon as cached error text appeared. Settings can still be refetching that cached error on mount, so the automatic response could load the computer and detach Try again before Playwright clicked it. The hosted failure on #715 matches this sequence.

Keep the fault installed until the retry action is enabled, then replace the handler and exercise the existing manual recovery and failed-removal/retry assertions. The spec explicitly opts its isolated child processes out of analytics. No production UI, retry policy, timeout or protocol changes.

Evidence and validation:

  • Original failure: run 41553713235, Electron E2E (1/3), head 2a8f39680f21cb7a74bf686dfe3a3ae4d5a65dd9. tests/e2e/remote-access-lifecycle.spec.ts:251, “paired-computer load and removal failures preserve context and offer recovery”, timed out at line 276 after 30 seconds: Try again was disabled, then unstable/detached. Built-in retry passed; totals were 73 passed, 5 skipped, 1 flaky. --fail-on-flaky-tests correctly failed the job. Recorded permanently in Validate scaled values and preserve complete extraction citations #715's description.
  • A controlled rendering probe using the real sidebar hook, Settings component and application query client reproduces the disabled-button → automatic-success → detached-button sequence without a click. Keeping the failure until refetch settles then manually clicking performs one successful recovery read. Production recovery is correct; the fixture switched state too early.
  • Based on fresh main c975f6e77760d183e4fa548785ffde49423b5cb5; affected query/settings/spec sources match Validate scaled values and preserve complete extraction citations #715 exactly. Open-PR file inventory has no competing recovery change; Require consent before loading external transcript images #612's common fixture work remains untouched.
  • Cua Space Linux arm64: three independent focused Electron runs passed, with --retries=0 and the existing fail-on-flaky gate.
  • Connections/sidebar behavioral suites: 15 passed. E2E type-check, scoped ESLint and whitespace checks passed.

The exact hosted macOS case has not been rerun; coordinator owns hosted checks. No mobile or full repository suite was needed for this test-only change. #715's extraction implementation is preserved separately. Leave this PR open for review.

Hosted budget failure: run 41568995820, Electron E2E (3/3) at exact head c19edfe004d002487d620d096b6dff49d1f8d59c reported 117 passed (18.7m) at 05:17:41.673 UTC, then was cancelled at 05:17:42.481 under GitHub's annotated 20-minute job limit. Passing assertions do not make this job green. After the full workflow became terminal and the unchanged exact head was reverified, the single allowed manual recovery was accepted; its executed budget is now spent and result pending. No timeout, worker, retry or flaky-test policy change. Original failure history remains recorded; this PR stays open.

Recovery result: the single executed shard3 recovery job 125743109623 passed. All applicable and required checks are green on exact head c19edfe004d002487d620d096b6dff49d1f8d59c, with no unresolved review threads at the supervisor snapshot. The original 117-passed-then-budget-cancel result remains recorded, and the manual recovery budget is spent. This PR stays open; any later substantive dependency integration will require fresh local validation and exact-head CI.

Coordinated dependency integration: exact head d0ae9a26d5cf6cf976f2f7ae60860b9529f5839b regularly merges #718 at a983c12789098e604ad8d845b6839de7bd7d345a, including main cad91dc2ce0a88588ca09c0b60204b09f151b8b0. Base is now feature/owner-bound-chat-reads; stack is #718 → #720 → #715. This PR's two-file recovery spec/memory diff is byte-for-byte identical to its original diff. Main's package.json and full test-chain union match exactly, including #609's MCP/private-storage/artifact changes. No privacy implementation was added here.

Validation on this exact merge head: 88 focused sidebar, connections, chat-activity, draft, terminal-sync, pending-attention and identifier-privacy tests passed; root and E2E TypeScript passed; full ESLint passed on a clean archive of this exact commit. Cua Linux arm64 Electron passed 3/3 with zero retries and the existing fail-on-flaky gate: the original recovery flow, the exact hosted #715 UUID a9762f97-b864-4eb0-a13a-217127305bb1, and safe control 11111111-1111-4111-8111-111111111111. The diagnostic fixture asserts persisted identity, relaunches to load the owned index, and exercises both approval opening paths, Deny focus and Allow → Working. Parent native/contract validation is retained; final child #715 runs its extraction and native recap/contract checks separately.

This substantive dependency head requires fresh hosted CI; the earlier green result applies only to c19edfe. Original failures and spent manual recovery budget remain recorded. No old-job rerun, timeout/retry change or merge was performed. All PRs remain open; coordinator owns fresh-head CI polling.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes Checked the E2E synchronization against the shared paired-computer query lifecycle and the existing recovery assertions.

  • Settled failure before recovery: Waits for Try again to become enabled before replacing the failing IPC handler, preventing the mount refetch from recovering automatically and removing the button before the manual click.
  • Isolation and evidence: Explicitly disables analytics for this spec's Electron processes and records the original flake, diagnosis, and validation in project memory without changing production code or weakening test assertions.

Validation: E2E type-check, scoped ESLint, and all 15 Connections/sidebar behavioral tests passed. Local Electron E2E execution was blocked: the build reported Package 'gio-unix-2.0' not found and Package 'libsecret-1' not found, the Electron binary is absent, and sandbox setup failed with sudo: The "no new privileges" flag is set, which prevents sudo from running as root. Exact-head hosted CI remains required before merging.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@sambitcreate
sambitcreate changed the base branch from main to feature/owner-bound-chat-reads November 3, 2026 05:58
Base automatically changed from feature/owner-bound-chat-reads to main November 3, 2026 15:51
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sambitcreate
sambitcreate merged commit ddfefa4 into main Nov 6, 2026
27 checks passed
@sambitcreate
sambitcreate deleted the feature/paired-computer-recovery-e2e branch November 6, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant