Repository navigation
fix(ci): port the tests to Windows; run the compass contract in this repository - #1
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
ac runstops the child tree with taskkill; hook commands run in Git Bash;AC_AGEandAC_PROCESS_COMPOSEmay name a Node script; a drive path is a local upstream source;check --diffrewrites 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).USERPROFILEbesideHOME, file URLs for imports, and seven skips on Windows with a reason (file modes, fake CLIs on PATH).safe.directoryand a longTEMPname for the Windows job. The Windows job is blocking..claude/settings.json, the output style, the core block at the end ofAGENTS.md, andtest/self.test.mjskeeps them equal tocore/. The user-plugin hook also steps back when the project settings list a compass hook for the event.Checks
npm run checkon macOS: 415 tests, 414 pass, 1 skip (age not installed), 5 lints green.