Repository navigation
fix(hooks): read paths literally in every jev-lint child process - #173
Conversation
jev-lint 0.7.0 does not pass positional paths to git as pathspecs, so select and the files git reads cannot diverge today. Fix GIT_LITERAL_PATHSPECS=1 in the child environment so a later jev-lint version cannot start interpreting :(glob) or * in a file name. Closes #159 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. |
|
Review summary No findings.
🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cdd8e179c5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…undary Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary: I found no blocking issues. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🤖 I have created a release *beep* *boop* --- ## [0.1.2](v0.1.1...v0.1.2) (2026-11-12) ### Features * **hooks:** add Go and Rust model rules with eval fixtures ([#158](#158)) ([9731488](9731488)) * **hooks:** show model-rule timing and skip rule fixtures ([#157](#157)) ([d0c32ae](d0c32ae)) * **hooks:** show the model rules as one result line with cost ([#170](#170)) ([41b9033](41b9033)) ### Bug Fixes * **hooks:** allow a jq filter after read-only GraphQL queries ([#180](#180)) ([cfb80d8](cfb80d8)) * **hooks:** keep model-rule eval fixtures out of Stop test verification ([#160](#160)) ([a4f1c6c](a4f1c6c)) * **hooks:** read paths literally in every jev-lint child process ([#173](#173)) ([0d2c683](0d2c683)) * **hooks:** remove model-rule false positives with principles and eval fixtures ([#163](#163)) ([b07fc4e](b07fc4e)) * **hooks:** report one count per runner in the Stop test lines ([#177](#177)) ([0f36b82](0f36b82)) * **hooks:** take the model-rule cached count from the dry-run plan ([#167](#167)) ([c87fdfd](c87fdfd)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
概要
モデル判定の子プロセス(
opとjev-lint)の環境にGIT_LITERAL_PATHSPECS=1を固定値として足します.背景と確認結果
Issue #159 の最初の受け入れ条件を,インストール済みの jev-lint 0.7.0 のソースで確かめました(詳細は Issue のコメント).
reviewの位置引数は,changedFilesUnder(diff.js)で変更ファイル一覧との文字列比較にだけ使われ,git には渡りません.diffとls-filesの固定の形だけで,利用者のパスを含みません.そのため,今の版では
selectが検査したファイルと違うファイルが読まれる経路はありません.将来の版が pathspec を使い始めても,記号を含むファイル名が検査と違う範囲に広がらないよう,環境変数を固定値として足しました(ENVIRONMENT_ALLOWLISTの方針と同じく,呼び出し側の値は引き継ぎません).変更
model_rules_run.py:FIXED_ENVIRONMENTを足し,_environmentで全ての子プロセスに渡す.GIT_LITERAL_PATHSPECS=0を持っていても,全てのjev-lint実行で1になることを確かめる.環境変数の許可リストのテストには,固定値の名前を足した.検証
uv run pytest tests/hooks:3718 passed,1 skipped(テストは先に書き,修正前に失敗することを確認)Closes #159
🤖 Generated with Claude Code