Skip to content

Fix Linux process-exit test race when proc stat disappears #2173

Closed

Description

@integry

Scope

Test-only correction in apps/desktop/scripts/run-bounded-darwin-command.test.mjs, targeting the desktop epic 1950-epic-cross-platform-dsk (not main).

Evidence

Full suite on PR #2172, job 101762348482 / run 34128388610, failed SIGKILL escalation survives leader close and removes a TERM-ignoring descendant with ENOENT reading /proc/3698/stat at waitForProcessExit line 34. Current epic helper first process.kill(pid, 0), then asynchronously reads proc stat, and accepts only ESRCH in its catch. The child may exit successfully between those operations.

Acceptance

Handle the missing proc stat after process exit as successful exit observation, preserving real timeout, SIGKILL escalation, zombie handling, unexpected-error propagation, and production code unchanged. Add focused coverage for this specific observation race and repeat the process-group regressions. Do not broaden to Windows, change production timeouts, or remove assertions. This runs independently of #2172 runtime provisioning work; do not edit its files beyond this test scope. PR must target the epic and include Closes this issue. Request Ultrafix before integration. Do not publish images, deploy containers, or merge main.

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: 2173/gpt-5.6-sol-fix-linux-process-exit-te-20260907-1351-qgi
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2173-20260907-1351-gpt-5.6-sol-qgi

    🔍 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 test-only PR #2174, merged into the draft desktop epic at d23fc59 (not main). Ultrafix 9/10 no blockers, independent full diff review, root local 12/12 focused tests, Validate Changes and full suite passed. This is not release-package acceptance: Linux ARM and macOS x64 package jobs failed downloading Electron from GitHub with HTTP 504, and Linux x64 packaging was still running at integration. Targeted network-failure retries and final combined release validation remain tracked on epic #1970; no production code changed.

  4. added a commit that references this issue on Sep 7, 2026
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