Skip to content

test(desktop): AppImage shim test's fake mounter traps signals before announcing the mount - #43707

Merged
juliusmarminge merged 1 commit into
mainfrom
factory/main-90221188bf
Nov 26, 2026
Merged

juliusmarminge merged 1 commit into
mainfrom
factory/main-90221188bf

Conversation

@juliusmarminge

Copy link
Copy Markdown
Member

The AppImage launcher test sometimes hung until its 15s timeout in CI. Its fake mounter announced the mount before installing its signal traps, so the test's SIGWINCH probe could arrive first and be silently ignored. The fake now installs its traps before announcing the mount.

Reproduction on main

Run the failing check on main.

Evidence

The checks on this pull request are the proof: it changes what main's checks run, not what the app does.

Tests

  • vp test run src/app/DesktopCliShim.test.ts -t "keeps the AppImage" ×15 on unchanged origin/main: 15 passed (no reproduction)
  • same ×15 under 16 busy-loop CPU hogs on unchanged origin/main: 15 passed (no reproduction)
  • unchanged fixture with a 0.5s delay injected after the mount announcement: all 4 signal cases failed with TestTimeoutError, matching CI
  • fixed fixture with the same injected delay: 4 passed
  • vp test run src/app/DesktopCliShim.test.ts (whole file, with the fix) ×25 in a row under 8 busy-loop CPU hogs: 25 passed, 0 failed
  • vp run check:changed: format, lint, knip, typecheck, test all pass

Who did the work

  • Written by Claude Opus 5.5, in Claude Code
  • Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own

Run by the t3code factory in T3 Code.

… announcing the mount

The fake mounter printed its mount path before installing its WINCH/TERM/HUP
traps. When it was descheduled in that window, the launcher could start the
server and the test's SIGWINCH probe could land while WINCH was still ignored,
so neither "mounted" nor "unmounted" was reported and the test hung until its
15s timeout. Install the traps first, as a real runtime is ready to unmount by
the time it reports the mount.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 26, 2026
@juliusmarminge
juliusmarminge merged commit 17b5c1a into main Nov 26, 2026
36 of 37 checks passed
@juliusmarminge
juliusmarminge deleted the factory/main-90221188bf branch November 26, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant