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
fix(gitattributes): pin LF line endings for *.featureXML - #37
.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.
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.
I reviewed the change against issue #20 and verified that .featureXML line ending problem is addressed. The fix correctly pins FeatureXML files to LF , preserves the future's original content and reproduces the Windows checkout issue without the fix. I have also confirmed that the other fixture formats are already covered by existing rules.
One small suggestion for future hardening is that you should consider adding an automated regression check for the eol=lf attribute or the fixture's documented SHA-256 so that the protection cannot silently regress. Otherwise LGTM !
@poshul feel free to review the same , whenever you can (;
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #20.
.gitattributespreviously pinnedeol=lffor*.fasta,*.mzML, and*.TraML, leaving*.featureXMLwithout a line-ending rule. On a Windows checkout withcore.autocrlf=true,benchmark/fixtures/OpenSwathWorkflow_1_output.featureXMLwas converted to CRLF, causing the documented SHA-256 andcmpprovenance checks inbenchmark/fixtures/PROVENANCE.mdto fail.Changes (
.gitattributes):*.featureXML text eol=lfnext to*.mzML text eol=lf.Validation
git check-attr text eol -- benchmark/fixtures/OpenSwathWorkflow_1_output.featureXMLreportstext: set,eol: lf.git -c core.autocrlf=true worktree add):7bc2b24a38e7172911262e9cee59302755e4db374389f3b283d5a06c14b10f37(CRLF mismatch)06fada1:488206661879ff1fd1ad76757b35a5610a4f08656bae310f34129319efaf745f(matchesbenchmark/fixtures/PROVENANCE.md)pr-checks.ymlchecks locally (all passed):bash -nonbenchmark/*.shandtests/*.shpython3 benchmark/validate_definitions.py(4definitions) andpython3 tests/validate_ci_test_coverage.py(9/9test files)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)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
AI use (see the OpenMS AI Policy)
Co-authored-by:trailer, and the description above explains the design intent and rationale