Files
codebase-memory-mcp/.gitattributes
Martin Vogel a0c4ca253f fix(test): keep the profile-map golden files byte-exact on Windows
tests/test_profile_map_v2.py compares the producer's LF output with
tests/fixtures/profile_map_v2/*.tsv byte for byte. The hosted Windows runners
check out with core.autocrlf=true, so the fixtures arrived with CRLF and ten
ProfileMapV2Tests failed on test-windows (x86_64). The fixtures now carry
-text, as the profile-text captures already do (whose contract passed on the
same runner).

The test had never run on Windows before: it sat behind the coverage-map
builder leg, which stopped first.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-06 18:07:16 +02:00

25 lines
1.3 KiB
Plaintext

# Shell scripts must stay LF: with git's Windows default (core.autocrlf=true)
# they check out as CRLF and bash inside the build containers rejects them.
*.sh text eol=lf
# Vendored tree-sitter grammars — machine-generated, hide from stats and diffs
internal/cbm/vendored/grammars/**/parser.c linguist-generated=true diff=false
internal/cbm/vendored/grammars/**/scanner.c linguist-generated=true diff=false
# Shell entrypoints must check out LF everywhere: a CRLF shebang line breaks
# them under WSL/MSYS (`bash\r: no such file`). The *.sh rule covers scripts;
# the git hooks are extensionless and need explicit entries. (#1272)
scripts/git-hooks/commit-msg text eol=lf
scripts/hooks/pre-commit text eol=lf
# Chialisp grammar corpus: one case asserts CRLF comment termination, so this
# file must keep its exact bytes on every platform (no eol conversion). (#919)
tools/tree-sitter-chialisp/test/corpus/comments.txt -text
# llvm-profdata text captures: tests/test_profile_text_parser.py checks their
# SHA-256, so they keep their exact bytes on every platform (no eol conversion).
tests/fixtures/profile_text/*.proftext -text
# Golden profile-map outputs: tests/test_profile_map_v2.py compares the
# producer's LF bytes against them, so they keep their exact bytes too.
tests/fixtures/profile_map_v2/*.tsv -text