Skip to content

The node-alias scan compares forward-slash paths, so its own file is not "foreign" on Windows - #540

Merged
emooreatx merged 1 commit into
mainfrom
fix/node-alias-scan-windows-path
Sep 5, 2026
Merged

The node-alias scan compares forward-slash paths, so its own file is not "foreign" on Windows#540
emooreatx merged 1 commit into
mainfrom
fix/node-alias-scan-windows-path

Conversation

@emooreatx

Copy link
Copy Markdown
Contributor

main's clippy + test (windows-latest) has been red on every run since e46c45f (0.5.196, 2026-08-30) — the commit that added key_convention::tests::the_node_alias_literal_exists_exactly_once_in_the_tree. The test exempts its own file by starts_with("src/key_convention.rs"); on Windows path.display() yields src\key_convention.rs, so the file's own two sites read as foreign and the assertion fired:

Found: ["src\\key_convention.rs:118", "src\\key_convention.rs:2…"]

Ubuntu and macOS pass, and the PR lane is ubuntu-only, so nothing ever surfaced this before a merge. Same class as #517: a path bug in the gate itself.

Change: the scanned path is normalised to forward slashes before the exemption is applied. Behaviour on Linux/macOS is unchanged (7/7 key_convention tests pass locally).

Labelled ci:full so the Windows and macOS lanes run on this PR rather than after the merge. Because cargo test stops at the first failing binary, the Windows lane has not run the integration tests since 2026-08-30 — anything else Windows-only will surface on this run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QVZ3v83uX8noLxXr7d7pu9

…not "foreign" on Windows

`the_node_alias_literal_exists_exactly_once_in_the_tree` exempts this
file by `starts_with("src/key_convention.rs")`, and on Windows the
scanned path renders as `src\key_convention.rs` — so the file's own two
sites counted as foreign and the assertion fired. main's `clippy + test
(windows-latest)` has been red on every run since the test landed in
e46c45f (0.5.196), and the PR lane is ubuntu-only, so no PR ever saw it.
The #517 class: a path bug in the gate itself. Paths are normalised to
forward slashes before the exemption is applied.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QVZ3v83uX8noLxXr7d7pu9
@emooreatx emooreatx added the ci:full Run the full CI matrix (macOS + Windows) on this PR label Sep 5, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Run the full CI matrix (macOS + Windows) on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant