Skip to content

Fix early-HUP authentication test fixture retaining a terminal process after passing #2188

Closed

Description

@integry

Root independent Linux full-desktop run on pairing candidate cac2974 reports all eight desktop terminal authentication handoff tests passed, then does not exit. The remaining test worker is src/authentication-handoff.test.ts, with a live child /bin/sh /tmp/propr-auth-early-hup-test-YZM9jo/terminal. The final test (does not execute authentication after HUP between the guard and admission commit) waits for barrier files in the fixture shell, but its finally removes the fixture directory immediately after handoff resolution. Suspected race: launcher resolves while the fixture shell has not observed terminationObservedPath; removing that path leaves the shell loop alive. Investigate and reproduce; do not assume production cancellation is broken without evidence.

Implement through ProPR only. Target desktop epic branch 1950-epic-cross-platform-dsk, never main. Keep this independent from pairing PR #2185. Prefer test-owned deterministic fixture completion/reaping and finally cleanup, preserving the early-HUP no-execution assertion. Do not add arbitrary sleeps, skip tests, weaken assertions, or force the test runner to exit. Bound fixture waits and clean up owned processes on failure. Repeated standalone actual test and a full desktop-suite process-exit check must pass. Link Closes this issue in the PR and use Ultrafix before integration. Windows stays deferred.

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: 2188/gpt-5.6-sol-fix-early-hup-authenticat-20260907-1838-mqg
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2188-20260907-1838-gpt-5.6-sol-mqg

    🔍 Track Task Execution

  2. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Please implement this isolated fixture lifecycle correction on the desktop epic base. Preserve the cancellation invariant and prove the test process exits; keep production changes out unless diagnosis proves they are necessary.

  3. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Additional root evidence: full suite remained live for ~7 minutes after the eight handoff tests reported success. After verifying the exact owned fixture shell PID 2604473 still ran /tmp/propr-auth-early-hup-test-YZM9jo/terminal, root sent TERM only to that shell. The test runner immediately exited 0 and printed 648 passed / 26 platform skips / 0 failed (674 total). This is NOT an unassisted full-suite pass; it strongly localizes the open handle to the final early-HUP fixture shell. No product app or other task was stopped.

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

    @integry
    OwnerAuthor

    Completed by #2193, merged into desktop epic at c1797ed. Corrected review 9/10, root 10/10 focused runs and full integrated suite exit unassisted. Explicit closure for non-default epic base; no main merge.

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