Skip to content

test(ci): fix Windows skill-profile test failures#41

Merged
NagyVikt merged 1 commit into
mainfrom
fix/ci-windows-skill-profile-tests
Jun 12, 2026
Merged

test(ci): fix Windows skill-profile test failures#41
NagyVikt merged 1 commit into
mainfrom
fix/ci-windows-skill-profile-tests

Conversation

@NagyVikt

Copy link
Copy Markdown
Collaborator

Problem

CI is red on windows-latest (node 18/20/22) while macOS + Ubuntu are green. Three skill-profile tests fail:

  • activateSkillProfile delegates to the Soul activator (129)
  • resolveDefaultSkillTarget points hermes at hermes-agent/skills (131)
  • activateSkillProfile fills hermes target from env when not given (133)

Root cause

All three are POSIX-only behaviors hitting the Windows runner:

  • 129 / 133 spawn the Soul activator, a #!/usr/bin/env bash script. spawnSync cannot execute a .sh directly on Windows → status: null → "activation failed (unknown)".
  • 131 asserts against path.join("/tmp/...", "skills"), but the impl runs path.resolve first, which on Windows prepends the drive (C:\tmp\...). Pure path logic, no shell.

Fix (tests only — no production change)

  • Skip 129/133 on Windows via { skip: SKIP_POSIX_ONLY }, matching the existing { skip: IS_WINDOWS } pattern in secure-fs.test.ts.
  • Make 131 cross-platform by mirroring the impl's path.resolve instead of hardcoding the POSIX form — keeps Windows coverage for that pure-logic test.

The production resolveDefaultSkillTarget / activateSkillProfile behavior is unchanged; the activator feature targets the user's POSIX dev environment by design.

Test plan

  • npm test green on Linux — 195/195 (skips inactive off-Windows)
  • CI confirms windows-latest now green

- Skip activator-backed tests on Windows (Soul activator is a POSIX
  bash script that spawnSync cannot execute on win32)
- Make resolveDefaultSkillTarget hermes assertion cross-platform by
  mirroring path.resolve instead of hardcoding the POSIX form

Matches existing { skip: IS_WINDOWS } precedent in secure-fs.test.ts.
@NagyVikt NagyVikt merged commit 9a94d4b into main Jun 12, 2026
12 checks passed
@NagyVikt NagyVikt deleted the fix/ci-windows-skill-profile-tests branch June 12, 2026 10:32
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