Skip to content

Flaky CI: destroyed Xvfb display still appears alive #102

Closed

Description

@ElbertePlinio

Problem

After #90 fixed the zombie/PID assertion in #79, required CI still intermittently fails the same real desktop integration flow at the next assertion:

packages/desktop-linux/test/integration.test.ts:590
expect(isDisplayAlive(session.display)).toBe(false)
Received: true

Confirmed on PR #99 CI run 33930949179. The previous run at the same test code passed, and the failure occurred after destroyDesktopSession returned. Independent work on #92 also observed stale /tmp/.X11-unix/X200 state with no matching live Xvfb.

This is not #79's zombie mismatch. Determine whether isDisplayAlive is seeing a stale socket/lock, teardown returns before filesystem cleanup, or display allocation/tests race across files.

Acceptance criteria

  • Reproduce or deterministically model the failing state
  • destroyDesktopSession has an explicit postcondition for display availability and filesystem artifacts
  • Stale socket/lock handling cannot make a dead display look live or let two tests/sessions collide
  • Do not unlink a socket/lock owned by a live unrelated X server
  • Add stress/concurrency coverage that fails before the fix
  • Required CI passes on current main and affected open PRs without rerun masking
  • Save diagnosis and stress evidence under the Release Pickforge 0.4.0 stable #89 evidence packet

Blocks alpha.2 because required CI is not yet repeatably reliable. Refs #89, #79, and #90.

Activity

  1. added
    bug
    on Sep 5, 2026
  2. added a commit that references this issue on Sep 5, 2026
    a2ecc44
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions