Skip to content

fix(desktop): stabilize X display teardown - #103

Merged
ElbertePlinio merged 1 commit into
mainfrom
fix/display-teardown-flake
Sep 5, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
fix/display-teardown-flake

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Summary

  • determine X display liveness from the live lock owner and its actual Unix socket, not pathname existence
  • reserve display candidates across processes with Linux abstract Unix sockets before spawning Xvfb
  • define and enforce desktop teardown's owned-display release postcondition without unlinking X artifacts
  • add deterministic stale socket, stale lock/PID reuse, unrelated live server, SIGKILL teardown, and 12-process allocation tests

Evidence

  • New tests on pre-fix 4da0a33: 4 failed, 1 passed
  • Full tests: 105 files, 1318 passed, 4 skipped
  • Coverage: 84.02% statements/lines, 86.72% branches, 90.46% functions
  • Cross-process stress: 20/20 runs, 240/240 synchronized starts
  • Real Xvfb teardown stress: 30/30
  • Forced SIGKILL stale-artifact teardown: 20/20
  • Typecheck, lint, build, Rust fmt/clippy/tests, diff check, and complexity gate pass
  • Report: ~/Projects/Boards/pickforge/0.4-release/display-teardown-flake.md

Closes #102
Refs #89

@ElbertePlinio
ElbertePlinio merged commit a2ecc44 into main Sep 5, 2026
5 checks passed
@ElbertePlinio
ElbertePlinio deleted the fix/display-teardown-flake branch September 5, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky CI: destroyed Xvfb display still appears alive

1 participant