Skip to content

fix(tests): resolve temp roots so the suite passes on macOS - #3

Merged
phense merged 1 commit into
mainfrom
fix/tests-canonical-temp-root
Nov 13, 2026
Merged

phense merged 1 commit into
mainfrom
fix/tests-canonical-temp-root

Conversation

@phense

@phense phense commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Problem

On macOS the default temp directory sits below /var, a symlink to /private/var. The core lock check and the OpenCode installer refuse symlinked ancestors by design, so 13 tests failed before reaching their subject (12 in test_core_sync, 1 in test_method_identity).

Change

Canonicalize the fixture root in both tests. Production path checks are unchanged.

Verification

On macOS with the default TMPDIR: python3 -m unittest discover -s tests -t . runs 165 tests, OK. python3 scripts/validate-plugin passes.

🤖 Generated with Claude Code

macOS places TMPDIR under /var, a symlink to /private/var. The core lock
check and the OpenCode installer correctly refuse symlinked ancestors, so
13 tests failed before reaching their subject. Canonicalize the fixture
root; production path checks are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@phense
phense merged commit f504e03 into main Nov 13, 2026
2 checks passed
@phense
phense deleted the fix/tests-canonical-temp-root branch November 13, 2026 13:51
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