Skip to content

fix(macos): synchronize native browser interruption regressions - #191802

Closed
roboclaw-bot wants to merge 2 commits into
mainfrom
main-ci/l270-stop-request-boundary
Closed

roboclaw-bot wants to merge 2 commits into
mainfrom
main-ci/l270-stop-request-boundary

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #185432

What Problem This Solves

Investigates the recurring native browser interruption test timeout at Still waiting for stop settles. Causal validation remains missing.

User Impact

Draft test-only candidate; no production behavior changes. No auto-merge request is armed.

Why This Change Was Made

The candidate waits for complete HTTP request headers before interruption, holds the response with the existing cancellation-aware gate, and waits for the queued host URL projection before the unchanged final assertions. Assertions and deadlines remain intact. These synchronization changes are not yet proven causal for the recurring Stop timeout.

Evidence

  • Candidate head: d782060. One existing Swift test file, +12/−4; no production changes. Source autoreview is clean through P2, which does not establish runtime causality.
  • The coordinator reports that the gate run on the first candidate 0ddce81 failed the same Stop/settle case. The first patch was not causal; a different observation in manual run 41611314386 does not establish stability.
  • Required proof: reproduce on origin/main, then repeatedly run the Stop case and its file on the candidate (for example 20 Stop trials), on a Crabbox macOS box. Baseline and head repetition were not run.
  • No macOS box was granted: the configured route advertises Linux only, no static macOS host is configured, and the ready-pool inventory is empty.
  • Per the coordinator's resume instruction, no workflow dispatch or job rerun is allowed. This PR is draft for the missing causal proof; the main-ci coordinator owns any landing decision.

Synchronize stop and replacement with complete request headers instead of a TCP connection that may only be a WebKit preconnect. Hold the response with a cancellation-aware gate so the test does not race a real-time sleep.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 0ddce81746cabe913c548c9fa94ac584454e7a68, but the PR head is now d782060ec54d6a1dc4de80f429968d6e0d81fe02. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-03T09:43:32.296Z sha 0ddce81 :: needs maintainer review before merge. :: none

WebKit navigation state can settle before the queued main-actor KVO task updates the host URL projection. Include that existing observable state in the settle condition while retaining the expected path, final assertions, and deadline.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot roboclaw-bot changed the title fix(macos): wait for HTTP before interrupting test navigation fix(macos): synchronize native browser interruption regressions Nov 3, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as draft November 3, 2026 10:41
@clawsweeper

clawsweeper Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: applying reviewed decision.

I am applying the reviewed decision for this pull request: fix(macos): synchronize native browser interruption regressions This is item 1/1 in the current shard. Shard 1/1.

This transient lease prevents a newer review from overlapping label, comment, or close mutations.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 4, 2026
@steipete

steipete commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Superseded by #193307 (91f796d). Investigating this recurring Stop failure led to a real production defect: a Stop issued before WebKit started the navigation left the tab loading indefinitely, which test-only synchronization could not fix. That PR repairs the owner and also synchronizes this test's URL projection, with 30 of 30 repetitions passing under load. Closing this draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos P2 Normal backlog priority with limited blast radius. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants