Skip to content

fix(ci): port the tests to Windows; run the compass contract in this repository - #1

Merged
me-cedric merged 8 commits into
mainfrom
windows-port
Oct 17, 2026
Merged

me-cedric merged 8 commits into
mainfrom
windows-port

Conversation

@me-cedric

Copy link
Copy Markdown
Owner

What changes

  • Windows: ac run stops the child tree with taskkill; hook commands run in Git Bash; AC_AGE and AC_PROCESS_COMPOSE may name a Node script; a drive path is a local upstream source; check --diff rewrites the header from the project path; the git common dir and the checkout path resolve to one form. Every text file has LF line ends (.gitattributes).
  • Tests: file paths instead of URL pathnames, USERPROFILE beside HOME, file URLs for imports, and seven skips on Windows with a reason (file modes, fake CLIs on PATH).
  • CI: timeouts, a macOS job, safe.directory and a long TEMP name for the Windows job. The Windows job is blocking.
  • This repository runs the contract it installs: .claude/settings.json, the output style, the core block at the end of AGENTS.md, and test/self.test.mjs keeps them equal to core/. The user-plugin hook also steps back when the project settings list a compass hook for the event.

Checks

  • npm run check on macOS: 415 tests, 414 pass, 1 skip (age not installed), 5 lints green.
  • Fresh-context review: 5 findings, fixed.
  • Windows and macOS CI: this pull request is the first run after the port.

…repository

Windows: `ac run` stops the child tree with taskkill; hook commands run
in Git Bash (SHELL); AC_AGE and AC_PROCESS_COMPOSE may name a Node
script; a drive path is a local upstream source; `check --diff` rewrites
the header from the project path; the git common dir and the checkout
path resolve to one form. Every text file has LF line ends
(.gitattributes). The tests use file paths instead of URL pathnames,
USERPROFILE beside HOME, file URLs for imports, and skip the file-mode
and fake-CLI cases on Windows with a reason. CI: timeouts, a macOS job,
safe.directory and a long TEMP name for the Windows job.

This repository runs the contract it installs: .claude/settings.json
holds the core keys with the hook at its core path, the output style is
the core style, and AGENTS.md ends with the core block. test/self.test.mjs
keeps them equal to core/. The user-plugin hook also steps back when the
project settings list a compass hook for the event.

README names Codex for `ac usage`. PROGRESS.md records the open items.
…rded cwd for ac usage --project

The first Windows run on the branch left 9 failures. The runner's
autocrlf turned the fixture and upstream checkouts to CRLF: the
upstream checkout now runs with core.autocrlf=false and the engine
fixture carries .gitattributes. check-actions prints slash paths and
ac env export checks --out as a slash path. ac usage --project matches
a recorded cwd as given when the path does not exist on this machine.
The env tests set USERPROFILE beside HOME, the Sonar test joins PATH
with the platform delimiter, and the 0.9.6 installer test skips on
Windows because that installer writes POSIX pointer paths.
…, and set Path on Windows

`doctor --global --measure` gave a SessionStart hook 5 s; the compass
hook setting gives 10 s, and a loaded CI runner needs more than 5 s to
start node. The status line fix string quoted the script path for the
shell and then escaped it again for JSON, which doubled every
backslash on Windows. The Sonar test sets the PATH key that exists:
on Windows that is Path, and a second PATH key does not reach the
child.
…s on a POSIX host

The status-line test expected the path escaped for JSON twice. The Sonar
doctor test runs a bash script with a fake curl on PATH; Git Bash on
Windows does not use it, so the test skips there with a reason.
… code, not EPIPE

`doctor --global --measure` writes "{}" to each SessionStart hook. A hook
that exits at once can close stdin before the write lands, and spawnSync
then reports a write error (EPIPE) beside the exit code. The measure
preferred the write error, so the "exit code 3" warning came and went
between CI runs on Ubuntu. hookError() takes the exit code first, then
the error or the signal when there is no exit code, and has its own test.
@me-cedric
me-cedric marked this pull request as ready for review October 17, 2026 09:47
@me-cedric
me-cedric merged commit 0843ad2 into main Oct 17, 2026
3 checks passed
@me-cedric
me-cedric deleted the windows-port branch October 17, 2026 09: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