Repository navigation
test(ruff-format): pass ruff-format's hook suites on Windows Git Bash - #10011
Conversation
A Windows jq.exe ends each output line with CRLF, and read keeps the CR, so every probe-gate argument in ruff-format.test.sh carried a trailing CR and node could not find prerequisites.mjs. Strip it. In both ruff-format suites, gate the spawn-budget census on a working Linux strace (the probe lane-stop-gate.test.sh already uses), not on any strace on PATH: Git Bash ships Cygwin's, which has no -s. Closes #6531 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security issues found in this pull request. critical-findings: 0 I read the whole diff (3 files) and the PR context.
What the changes do:
The PR description and issue comments contain no embedded directives aimed at the review. This run spends no paid or billable resources, so there is no cost hold. |
|
claude-review reviewed No blocking findings. I read the diff, the PR context and the surrounding test code. I did not run the suites, so the PR's Windows and Linux pass counts are author-claimed and unverified.
|
Closes #6531
Summary
plugins/ruff-format/hooks/ruff-format.test.shfailed 4 cases on Windows Git Bash, andruff-format-end-of-turn.test.shfailed 1. Both causes are in the tests, not the hooks.Fix
jq.exeends each line with CRLF, andread -rkeeps the CR. Every SessionStart argument read fromhooks.jsontherefore carried a trailing\r, and node reportedCannot find module '...\lib\prerequisites.mjs'for a file that exists. A traced re-run showedARG[...prerequisites.mjs^M]. Fix:| tr -d '\r'on bothjqreads.command -v strace, but Git Bash ships Cygwin'sstrace, which has no-s, soscripts/hook-census.shexited 1. Both suites now gate on a working Linux strace with the probeplugins/autonomy/hooks/lane-stop-gate.test.sh:1320already uses (strace -qq -o /dev/null -e trace=execve true)..changes/ruff-format/: fragment, bump none (test only).Verification
bash plugins/ruff-format/hooks/ruff-format.test.shgivesPASS=40 FAIL=0. The spawn-budget case still runs and passes./fleet:reach): GNU bash 5.3.15 (Cygwin build), node v24.21.0, ruff 0.17.0, Python 3.14.8.9965f0c07:PASS=36 FAIL=4.PASS=39 FAIL=0, both plain and withMSYS=winsymlinks:nativestrict. The census case prints its skip note.ruff-format-end-of-turn.test.sh: 8 passed, 1 failed before; 8 passed, 0 failed after. On Linux: 9 passed, 0 failed.shellcheckis clean, andscripts/check-changelog-fragments.sh --checkpasses.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01X1zWtmVHsCdqJk7AEeNE2b