You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cats fixture profile hash only matches CRLF checkouts #130
Cause: line endings.tests/assets/performance/8-colors-frontlit-2026-08-26/profile.kfil has been committed once (f2e0956, 2026-08-27) and its blob uses LF line endings. That blob hashes to 0df2f266…. Converting it to CRLF gives exactly 42b7259d…. The expected hash was recorded from a checkout where git converted the file to CRLF (for example Windows with core.autocrlf=true). The test hashes raw bytes, so it only passes on such checkouts.
The same CRLF hash appears in all four case.json files under 8-colors-frontlit-2026-08-26/, tests/benchmark/cats-exact-reproducibility.md and tests/benchmark/results/cats-exact/2026-11-01/calibrated-series-summary.json. Only the cats test asserts it.
.gitattributes already protects tests/benchmark/results/cats-exact/** with -text, but not the tests/assets/performance/ fixtures.
Options:
Hash the profile with line endings normalized (CRLF → LF) in the test, and record the LF hash. This keeps working on every platform, but changes what the "captured" hash means.
Add tests/assets/performance/**/*.kfil -text (and any other hashed text fixtures) to .gitattributes, so checkouts keep the committed LF bytes on every platform, then update the recorded hashes to the LF value 0df2f266….
Option 2, plus documenting in the reproducibility notes that the earlier 42b7259d… was the CRLF form of the same file.
Option 2 or 3 seems closest to the test's intent (byte-level immutability of artifacts). Check whether other hashed text fixtures, such as the .json inputs, have the same problem on Windows.
Fixed in 078e2f0, merged into develop with #124. Profile files and the performance fixture JSON now keep their committed LF bytes on every platform (-text in .gitattributes). The cats fixtures record the LF profile hash (0df2f266…), and tests/benchmark/cats-exact-reproducibility.md explains that the archived 42b7259d… is the CRLF form of the same file.
Activity
test: record the LF profile hash for cats fixtures
vycdev commentedon Nov 7, 2026
Fixed in 078e2f0, merged into
developwith #124. Profile files and the performance fixture JSON now keep their committed LF bytes on every platform (-textin.gitattributes). The cats fixtures record the LF profile hash (0df2f266…), andtests/benchmark/cats-exact-reproducibility.mdexplains that the archived42b7259d…is the CRLF form of the same file.