Skip to content

Fix Electron readiness probe teardown racing initial page-load completion #2186

Closed

Description

@integry

Observed on the PR #2185 merged-ref macOS ARM64 validation: job 101827178872 fails Electron BrowserWindow lifecycle semantics with ERR_FAILED (-2) loading propr-readiness-fixture://app/renderer.html. Other desktop tests pass. Fixture apps/desktop/scripts/electron-frame-semantics-probe.cjs schedules window.destroy 50ms after ready IPC while the outer flow still awaits window.loadURL; that fixed delay is not proof navigation has settled. Under runner scheduling this can reject loadURL during teardown and turn otherwise valid readiness/getter evidence into app.exit(1).

Diagnose and make fixture sequencing deterministic: retain the ready-time frame/document observations, wait for initial navigation completion before deliberate destruction, and preserve the destroyed-window getter assertion and natural exit. Do not swallow genuine navigation failures, weaken assertions, widen deadlines, skip macOS, or alter production readiness/shutdown code. Add/run focused regression coverage and verify the actual Electron probe. This is a separate test-only correction to integrated #2176, parallel to #2185 pairing work.

Target 1950-epic-cross-platform-dsk only. Link PR with Closes this issue; Ultrafix and independent root validation before merge. No main merge, publication, deployment, or Windows work. Part of #1962 and #1950.

Activity

  1. propr-dev commented on Sep 7, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2186/gpt-5.6-sol-fix-electron-readiness-pr-20260907-1751-5hx
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2186-20260907-1751-gpt-5.6-sol-5hx

    🔍 Track Task Execution

  2. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Please implement the narrow fixture sequencing correction on the labelled epic base. Keep it independent of #2185 production pairing changes, and do not use a larger sleep as the fix.

  3. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Root has a working local Electron44/DISPLAY environment and can run the actual fixture immediately after the PR opens. If this task container lacks Xvfb/native libraries, avoid spending substantial time reconstructing that environment: provide focused structural/regression evidence, disclose the runtime limitation, and hand off the narrow PR for root native validation plus macOS CI. Do not claim a skipped Electron probe passed.

  4. added a commit that references this issue on Sep 7, 2026
  5. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Completed by PR #2187, merged into desktop epic branch 1950-epic-cross-platform-dsk at b9aabdd. Explicitly closing because the target is not the default branch. No merge to main.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions