[FIX]: Force LF line endings for helpdesk mitigation.patch on Windows - #13
Conversation
There was a problem hiding this comment.
Hey Sumit Kumar (@sumit1kr) - sorry it took a while to get back to you! We are working on a better process to monitor both repos :-)
This PR title advertises a narrow fix, specifically for the tagged issue (#12) ...but the code changes ship an entirely new langgraph-rag-poisoning showcase plus the change.
If you would like to contribute the new example, please separate from this branch and open a new PR with a [FEAT] tag. Once that is done and this PR is refocused, feel free to tag me and I'll take another look.
Thanks!
4693f3b to
bfb9ae2
Compare
There was a problem hiding this comment.
Pull request overview
This PR addresses a Windows-only test failure where mitigation.patch is checked out with CRLF (due to Git autocrlf), causing a byte-level mismatch in the patch round-trip test. It updates Git attributes so the patch’s line endings remain LF across platforms.
Changes:
- Updates
.gitattributesto force LF line endings forhelpdesk-bot/mitigation.patch.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Hi Nina Chikanov (@nina-msft) — done! The |
|
Sumit Kumar (@sumit1kr) can you verify that this fix addresses the issue on Windows? I asked GitHub Copilot to verify and it is asserting the error still stands: Here is the provided rationale:
|
|
Hi Nina Chikanov (@nina-msft), Thank you for catching that! You were completely right — the previous fix modifying To fix this properly, I went with Option B:- Added
Let me know if this looks good to go! |
Nina Chikanov (nina-msft)
left a comment
There was a problem hiding this comment.
Thanks for fixing this!
Closes #12
test_patchfails on Windows becausegit applyconverts LF to CRLF,causing a byte-level mismatch in the patch round-trip test.
Adding
helpdesk-bot/mitigation.patch text eol=lfto.gitattributesforces Git to preserve LF on all platforms, fixing the test on Windows
without affecting any other files.