← Back to Pull requests

Fix timing-dependent cross-context and connect-neuter tests #7574

Open
harrishancock opened this pull request with 116 lines diff across 2 files
View on GitHub
harrishancock harrishancock commented on Sep 29, 2026 16:42 UTC
Author

Addresses the ARM debug timeout and Windows completion race observed on PR #7568.

The cross-context changes are split into probe cleanup, expired-request ordering, and cyclic-request coordination. Reading request-owned WebSocket state avoids starting socket tasks whose cancellation produces expensive diagnostics. Observed cancellation and subrequest completion establish the required ordering without sleeps. The separate connect-neuter fix awaits the late-write assertion itself, retaining the exact disconnected TypeError check from the security fix.

The optional connect-neuter-test@gc-stress target fails with Promise will never complete. on both unchanged and fixed source; that pre-existing failure is outside the default suite and remains unresolved.

Assisted-by: Codex:gpt-6-astra

Diff: 116 lines (+55 / -61) across 2 files Reviewer: ryanking13 Review duration: 27934m
All Vouch review confidence checks passed
Residual risk 0.09 = Change Risk (0.33) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 116 lines diff across 2 files
0.33
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.56 · 1 substantive comment(s)
0.56
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
72%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.285
Real PR Conversation Timeline
4 items
ask-bonk[bot] ask-bonk[bot] commented on Sep 29, 2026 17:12 UTC
Bot

LGTM!

<details>
<summary>Specialist findings not posted (1)</summary>

  • tests#1 [WARNING] src/workerd/api/tests/cross-context-promise-test.js:14: readyState is not an IoContext-bound operation, so this replacement probe cannot detect the regression these tests are meant to cover. WebSocket::getReadyState() merely delegates to LegacyWebSock… — readyState dereferences farNative, an IoOwn&lt;Native&gt;; its operator-&gt; calls DeleteQueue::checkFarGet()`, which rejects a different IoContext before reading state.
  • </details>

    ---
    <sub>Reviewed commit: 5e270b1d · github run</sub>

    <!-- bonk-review-state:{"head":"5e270b1d8f7c643fcdef4be538ff89fe8f18909c","base":"ab1b3926727b2fdc1f104d99eef93a878a93f665","specialists":{"tests":"ok","api-compat":"ok","compat-flags":"ok"}} -->

    ryanking13 ryanking13 approved these changes on Sep 30, 2026 06:43 UTC
    Approved Reviewer

    Approved these changes.

    dcarney-cf dcarney-cf approved these changes on Sep 30, 2026 06:48 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    harrishancock harrishancock
    Labels
    risk: low confidence: 72.4% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 32.9% (LOW) · Higher = larger blast radius
    32.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 72.4% · Lower = rushed or shallow review
    72.4%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 9.1% · Safe to merge
    9.1%