Skip to content

fix(gitattributes): pin LF line endings for *.featureXML - #37

Open
sanjeevafk wants to merge 1 commit into
OpenMS:mainfrom
sanjeevafk:fix/gitattributes-featurexml-lf
Open

sanjeevafk wants to merge 1 commit into
OpenMS:mainfrom
sanjeevafk:fix/gitattributes-featurexml-lf

Conversation

@sanjeevafk

Copy link
Copy Markdown
Contributor

Description

Fixes #20.

.gitattributes previously pinned eol=lf for *.fasta, *.mzML, and *.TraML, leaving *.featureXML without a line-ending rule. On a Windows checkout with core.autocrlf=true, benchmark/fixtures/OpenSwathWorkflow_1_output.featureXML was converted to CRLF, causing the documented SHA-256 and cmp provenance checks in benchmark/fixtures/PROVENANCE.md to fail.

Changes (.gitattributes):

  • Add *.featureXML text eol=lf next to *.mzML text eol=lf.

Validation

  • Verified git attributes: git check-attr text eol -- benchmark/fixtures/OpenSwathWorkflow_1_output.featureXML reports text: set, eol: lf.
  • Verified simulated Windows checkout (git -c core.autocrlf=true worktree add):
    • Before fix: 7bc2b24a38e7172911262e9cee59302755e4db374389f3b283d5a06c14b10f37 (CRLF mismatch)
    • After 06fada1: 488206661879ff1fd1ad76757b35a5610a4f08656bae310f34129319efaf745f (matches benchmark/fixtures/PROVENANCE.md)
  • Ran pr-checks.yml checks locally (all passed):
    • bash -n on benchmark/*.sh and tests/*.sh
    • python3 benchmark/validate_definitions.py (4 definitions) and python3 tests/validate_ci_test_coverage.py (9/9 test files)
    • All 9 Python test suites under benchmark/ (test_openswath_metrics.py, test_openswath_diagnostics.py, test_prose_metrics.py, test_proteobench_compare.py, test_recover_nightly_results.py, test_runner_timestamps.py, test_make_hye_entrapment_fasta.py, report/test_generic_renderer.py, report/test_v2_schema.py)
    • All 5 shell contract suites (benchmark/test_openswath_diagnostics.sh, tests/test_id_validation.sh, tests/test_dispatch_step.sh, tests/test_pages_assembly.sh, tests/test_persist_step.sh)

Checklist

  • New and existing unit tests pass locally with my changes

AI use (see the OpenMS AI Policy)

  • I have read the OpenMS AI Policy, and I understand, have reviewed and tested every change in this PR and can explain it in my own words
  • Substantial AI use in PR (e.g. agentic tools wrote significant parts); commits carry a Co-authored-by: trailer, and the description above explains the design intent and rationale

AI disclosure: Assisted by Gemini 4 to inspect .gitattributes and run the local validation checks; I reviewed the diff and verified the behavior myself.

@sanjeevafk
sanjeevafk requested a review from a team November 29, 2026 17:34
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 36cd5e35-d8be-40a7-8a32-31e3af369873
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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.

.gitattributes does not pin line endings for *.featureXML, breaking byte-exact fixture provenance

1 participant