Skip to content

fix: Windows test and path failures from the 0.6.0 release matrix - #668

Merged
jimhoyd merged 2 commits into
mainfrom
claude/fix-windows-mode-assert
Sep 24, 2026
Merged

jimhoyd merged 2 commits into
mainfrom
claude/fix-windows-mode-assert

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

The 0.6.0 release run (run 36037868044) ran the full OS × Node matrix for the first time and failed in ci before build, so nothing was published. Three causes:

  1. Windows key-mode assertions (test bug). The forms and add-on tests asserted mode 0600 on scaffolded key files, but Windows has no POSIX modes and reports 0666. They are now guarded with process.platform !== 'win32', as the auth and store tests already are.
  2. urlcode upgrade path separators (product bug). It reported changed workflows as .github\workflows\urlcode.yml on Windows. It now uses / everywhere.
  3. A test race on Node 22 that predates these PRs. test/install.test.ts rebuilt dist/ unconditionally, deleting it first, while other test files import dist/ through core's self-reference @jimhoyd/urlcode/agent-context. That crashed test/manifest.test.ts with ERR_MODULE_NOT_FOUND. It now builds only when dist/ is missing; CI and npm run verify always build before testing.

Pull-request CI runs Linux only, so the release matrix was the first place these showed.

Merging this reruns release.yml on main; 0.6.0 is still unpublished, so that run releases it.

Locally, test/install.test.ts, test/upgrade.test.ts, test/addons.test.ts and the forms suite pass.

🤖 Generated with Claude Code

jimhoyd and others added 2 commits September 24, 2026 13:00
The forms and add-on tests asserted 0600 on scaffolded key files; Windows has no
POSIX modes (it reports 0666), which failed the full-matrix CI of the 0.6.0 release
run. Guard them like the auth and store tests already do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ly rebuilt dist

- urlcode upgrade reported changed workflows with the OS separator
  (.github\\workflows\\urlcode.yml on Windows); report them with '/'.
- test/install.test.ts rebuilt dist/ unconditionally while other files import it
  (core resolves @jimhoyd/urlcode/agent-context to dist/), which crashed
  test/manifest.test.ts on Node 22. Build only when dist/ is missing; CI and
  npm run verify build before testing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jimhoyd jimhoyd changed the title test: skip POSIX key-mode assertions on Windows fix: Windows test and path failures from the 0.6.0 release matrix Sep 24, 2026
@jimhoyd
jimhoyd merged commit 4266209 into main Sep 24, 2026
23 checks passed
@jimhoyd
jimhoyd deleted the claude/fix-windows-mode-assert branch September 24, 2026 18:07
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