Skip to content

Make macOS subprocess escalation regression test deterministic under CI load #2169

Closed

Description

@integry

Narrow macOS delivery follow-up, separate from #2167 and backend provisioning #2168. CI run 34118550647, job 101731351382 (Validate unsigned darwin-x64 package) failed exactly one of 650 desktop tests: apps/desktop/scripts/run-bounded-darwin-command.test.mjs:69 SIGKILL escalation survives leader close and removes a TERM-ignoring descendant. Failure at line 92: ENOENT reading descendant.pid. The fixture starts two Node processes under a fixed timeoutMs:500 and terminationGraceMs:150, then assumes the descendant PID file exists. Root inspected the test and job logs; likely startup scheduling race under full-suite load, not yet confirmed by retry. Other #2167 focused tests, full suite, and both Linux package jobs pass. macOS ARM job 101731351352 is still active: do not cancel/restart it or infer a hang merely from elapsed time.

Reproduce/analyze the startup readiness race and implement a minimal deterministic regression-test correction, preserving real timeout, process-group cleanup, leader-close, and TERM-ignoring descendant SIGKILL assertions. Prefer explicit fixture readiness or an appropriate bounded test design; do not remove coverage, skip macOS, weaken production timeouts, or merely swallow ENOENT. Run focused tests repeatedly and desktop tests. If evidence identifies a production defect, explain it and fix only that bounded behavior. No Windows work, no changes to setup/provisioning. Target desktop epic 1950-epic-cross-platform-dsk, never main. Include Closes link; await Ultrafix and independent review. Part of #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: 2169/gpt-5.6-sol-make-macos-subprocess-esc-20260907-1242-uhr
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2169-20260907-1242-gpt-5.6-sol-uhr

    🔍 Track Task Execution

  2. added a commit that references this issue on Sep 7, 2026
  3. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Completed by #2170, merged only into desktop epic 1950-epic-cross-platform-dsk at bfb7009. Final reviewed head da152c8: Ultrafix review 9/10 with no blockers, independent review, full suite, all four Linux/macOS package and Connect checks, and unsigned checksum finalization passed. Windows remains deferred. Closing explicitly because the epic is not the default branch.

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