Skip to content

fix(test): skip #2137 symlink skill tests on Windows (EPERM)#2239

Merged
esengine merged 1 commit into
mainfrom
fix/skills-symlink-test-win32
May 29, 2026
Merged

fix(test): skip #2137 symlink skill tests on Windows (EPERM)#2239
esengine merged 1 commit into
mainfrom
fix/skills-symlink-test-win32

Conversation

@esengine

Copy link
Copy Markdown
Owner

Problem

A Windows contributor reported npm run verify failing in tests/skills.test.ts:

FAIL tests/skills.test.ts > SkillStore > loads skills from symlinked directories (#2104)
Error: EPERM: operation not permitted, symlink ...
FAIL tests/skills.test.ts > SkillStore > skips broken symlinks gracefully
Error: EPERM: operation not permitted, symlink ...

The two symlinked-skill tests added in #2137 call symlinkSync with no Windows guard. On Windows without Developer Mode / admin, symlinkSync throws EPERM, so local verify fails. CI's Windows runner has the privilege, so it wasn't caught there — but it breaks the local dev loop for Windows contributors.

Fix

Add .skipIf(process.platform === "win32") to both tests — matching the #2124 symlink tests already in the same file (which guard the identical EPERM case).

Verification

  • npx vitest run tests/skills.test.ts → 56 passed (on macOS the tests still run; on Windows the 2 now skip instead of EPERM-failing)
  • pre-push npm run verify passed

…dmin)

The two symlinked-skill tests added in #2137 — "loads skills from
symlinked directories (#2104)" and "skips broken symlinks gracefully" —
call symlinkSync with no Windows guard, so `npm run verify` fails with
EPERM for contributors on Windows that lack Developer Mode / admin. CI's
Windows runner has the privilege so it slipped through. Add
`.skipIf(process.platform === "win32")`, matching the #2124 symlink tests
already in this file.
@esengine esengine merged commit bdbafa7 into main May 29, 2026
4 checks passed
@esengine esengine deleted the fix/skills-symlink-test-win32 branch May 29, 2026 06:25
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