Skip to content

fix(pampa): pin test fixtures and snapshots to LF#353

Merged
cderv merged 1 commit into
mainfrom
bugfix/bd-mv2ggmr5-pin-pampa-fixtures-snapshots
Jul 1, 2026
Merged

fix(pampa): pin test fixtures and snapshots to LF#353
cderv merged 1 commit into
mainfrom
bugfix/bd-mv2ggmr5-pin-pampa-fixtures-snapshots

Conversation

@cderv

@cderv cderv commented Jul 1, 2026

Copy link
Copy Markdown
Member

On Windows, core.autocrlf=true converts pampa's LF-committed qmd fixtures and .snap baselines to CRLF on checkout, producing snapshot, roundtrip, and corpus test failures unrelated to actual code behavior.

Mirrors the existing crates/quarto-doctemplate/.gitattributes precedent: pin fixture/snapshot/test-fixture paths to eol=lf for checkout determinism, independent of the engine's CRLF-preserve policy. That policy is exercised through in-source tests, never through file-based snapshots, so pinning these paths to LF does not weaken or bypass CRLF coverage.

Test Plan

  • On a Windows checkout with core.autocrlf=true, confirm crates/pampa/tests, snapshots, and test-fixtures check out as LF (no CRLF)
  • cargo nextest run -p pampa passes unit_test_snapshots_native and test_qmd_roundtrip_consistency

core.autocrlf=true corrupts pampa's LF-committed qmd fixtures and
.snap baselines to CRLF on Windows checkout, causing spurious
snapshot/roundtrip/corpus test failures unrelated to actual code
behavior. Mirrors the existing quarto-doctemplate/.gitattributes
precedent (PR #329): pin on-disk fixtures to LF for checkout
determinism, independent of the engine's CRLF-preserve policy which
is exercised via in-source tests, never via file-based snapshots.
@cderv cderv force-pushed the bugfix/bd-mv2ggmr5-pin-pampa-fixtures-snapshots branch from 466ff55 to c4a0887 Compare July 1, 2026 12:15
@cderv cderv merged commit 6a90359 into main Jul 1, 2026
5 checks passed
@cderv cderv deleted the bugfix/bd-mv2ggmr5-pin-pampa-fixtures-snapshots branch July 1, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant