Skip to content

fix(test): isolate command XDG storage - #2238

Merged
jbeda merged 1 commit into
mainfrom
impl/test-isolation-xdg-leak
Oct 9, 2026
Merged

jbeda merged 1 commit into
mainfrom
impl/test-isolation-xdg-leak

Conversation

@jbeda

@jbeda jbeda commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • isolate command-test HOME and all XDG roots under test-owned storage
  • keep managed test homes inside the existing temporary lease and use its short runtime path for Unix sockets
  • give the two embedded mecatui composition tests explicit memory, session-store, and user-model directories
  • add poisoned-ambient and validated/forged lease regression coverage

Verification

  • task test
  • task lint
  • task test:race
  • go run ./cmd/mecademo
  • focused repeated tests confirmed no new real-XDG memory directories

Cleanup performed

Removed 1,480 project-memory directories attributable to the two leaking tests. The unrelated fork directory was preserved for separate investigation.

@jbeda
jbeda merged commit ecda8fe into main Oct 9, 2026
37 checks passed
@jbeda
jbeda deleted the impl/test-isolation-xdg-leak branch October 9, 2026 18:49
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 13, 2026
2 tasks
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.

1 participant