-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[tools] Remove newline from clang-format reference hashes #55328
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
[tools] Remove newline from clang-format reference hashes #55328
Conversation
**Summary** The `clang-format` reference hashes committed in #54737 have newlines at the end but the locally computed ones do not. This commit removes these newlines so that the `clang-format` binary verification step doesn't fail. **Test Plan** `./tools/clang_format_all.py`, ran successfully. **Fixes** This commit fixes ##54790. [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 4e28b4c (more details on the Dr. CI page):
2 failures not recognized by patterns:
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
Patch to fix the trailing-newlines lint: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index e20814cec7..52ecfb874e 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -43,7 +43,7 @@ jobs:
.jenkins/run-shellcheck.sh
- name: Ensure correct trailing newlines
run: |
- (! git grep -Il '' -- . ':(exclude)**/contrib/**' ':(exclude)third_party' ':(exclude)**.expect' | tools/trailing_newlines.py || (echo "The above files do not have correct trailing newlines; please normalize them"; false))
+ (! git grep -Il '' -- . ':(exclude)**/contrib/**' ':(exclude)third_party' ':(exclude)**.expect' ':(exclude)tools/clang_format_hash' | tools/trailing_newlines.py || (echo "The above files do not have correct trailing newlines; please normalize them"; false))
- name: Ensure no trailing spaces
run: |
(! git grep -I -no ' $' -- . ':(exclude)**/contrib/**' ':(exclude)third_party' || (echo "The above files have trailing spaces; please remove them"; false)) |
**Summary** The `clang-format` reference hashes committed in #54737 have newlines at the end but the locally computed ones do not. This commit removes these newlines so that the `clang-format` binary verification step doesn't fail. **Test Plan** `./tools/clang_format_all.py`, ran successfully. **Fixes** This commit fixes ##54790. [ghstack-poisoned]
**Summary** The `clang-format` reference hashes committed in #54737 have newlines at the end but the locally computed ones do not. This commit removes these newlines so that the `clang-format` binary verification step doesn't fail. **Test Plan** `./tools/clang_format_all.py`, ran successfully. **Fixes** This commit fixes ##54790. ghstack-source-id: f856a00 Pull Request resolved: #55328
|
Why not just strip newlines from the hash files. |
I like that solution too. Either way is fine with me. |
You mean in code with |
**Summary** The `clang-format` reference hashes committed in #54737 have newlines at the end but the locally computed ones do not. This commit removes these newlines so that the `clang-format` binary verification step doesn't fail. **Test Plan** `./tools/clang_format_all.py`, ran successfully. **Fixes** This commit fixes #54790. Differential Revision: [D27577398](https://our.internmc.facebook.com/intern/diff/D27577398) [ghstack-poisoned]
Pull Request resolved: #55328 **Summary** The `clang-format` reference hashes committed in #54737 have newlines at the end but the locally computed ones do not. This commit removes these newlines so that the `clang-format` binary verification step doesn't fail. **Test Plan** `./tools/clang_format_all.py`, ran successfully. **Fixes** This commit fixes #54790. Differential Revision: [D27577398](https://our.internmc.facebook.com/intern/diff/D27577398/) ghstack-source-id: 125877245
|
@SplitInfinity merged this pull request in 34a7b4a. |
Stack from ghstack:
Summary
The
clang-formatreference hashes committed in #54737 have newlines atthe end but the locally computed ones do not. This commit removes these
newlines so that the
clang-formatbinary verification step doesn'tfail.
Test Plan
./tools/clang_format_all.py, ran successfully.Fixes
This commit fixes #54790.
Differential Revision: D27577398