-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gitattributes] Mark some llvm-rc inputs as requiring LF newlines #113222
Conversation
This is an (untested) alternative to #113000, CC @llvm/pr-subscribers-windows. |
22f44ed
to
09914fb
Compare
I rebased this back to an older version of main, while the CRLF checkout .gitattributes were still in place, so that we can see if it actually does help fixing the issue. |
|
Right, the workers don't do a fresh clone, but only update on top of their existing checkout with faulty newlines... I'll keep this PR open for now, to keep in mind that we could apply this instead of #113000 once things are sorted out in the CI. |
These text files get embedded verbatim in llvm/test/tools/llvm-rc/tag-html.test, so their newlines form needs to match the expected form exactly. This reverts commit 2fdf49d, as that change no longer should be necessary. (At the time, buildbots had checkouts with all files having CRLF, and those don't get updated even if the toplevel .gitattributes were reverted in e669bbb. Now those buildbots have gotten fresh checkouts with all files having the right line endings.)
09914fb
to
9583672
Compare
The buildbots should have been refreshed now, and this solution with forcing the newlines for these specific files does work (I tested it in a separate checkout where |
Also, for context - see https://github.com/mstorsjo/llvm-project/actions/runs/11478930901/job/31944142725 for a list of other remaining failing tests if we'd do a fresh checkout with CRLF newlines. We have these two failing:
Plus 73 Clang tests failing. |
Thanks! FWIW, the same approach should also work as a remedy for the issues on AIX, where |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/8035 Here is the relevant piece of the build log for the reference
|
…vm#113222) These text files get embedded verbatim in llvm/test/tools/llvm-rc/tag-html.test, so their newlines form needs to match the expected form exactly. This reverts commit 2fdf49d, as that change no longer should be necessary. (At the time, buildbots had checkouts with all files having CRLF, and those don't get updated even if the toplevel .gitattributes were reverted in e669bbb. Now those buildbots have gotten fresh checkouts with all files having the right line endings.)
These text files get embedded verbatim in llvm/test/tools/llvm-rc/tag-html.test, so their newlines form needs to match the expected form exactly.
This reverts commit 2fdf49d, as that change no longer should be necessary. (At the time, buildbots had checkouts with all files having CRLF, and those don't get updated even if the toplevel .gitattributes were reverted in e669bbb. Now those buildbots have gotten fresh checkouts with all files having the right line endings.)