-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-41688: [Dev] Include all relevant CMakeLists.txt files in cmake-format precommit hook #41689
GH-41688: [Dev] Include all relevant CMakeLists.txt files in cmake-format precommit hook #41689
Conversation
…ake-format precommit hook
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an expert on those regex but the change LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
.pre-commit-config.yaml
Outdated
?^cpp/cmake_modules/FindNumPy\.cmake$| | ||
?^cpp/cmake_modules/FindPythonLibsNew\.cmake$| | ||
?^cpp/cmake_modules/UseCython\.cmake$| | ||
?^cpp/src/arrow/util/config\.h\.cmake$| | ||
?^ci/conan/all/.*CMakeLists\.txt$| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you sort this list in alphabetical order?
?^cpp/cmake_modules/FindNumPy\.cmake$| | |
?^cpp/cmake_modules/FindPythonLibsNew\.cmake$| | |
?^cpp/cmake_modules/UseCython\.cmake$| | |
?^cpp/src/arrow/util/config\.h\.cmake$| | |
?^ci/conan/all/.*CMakeLists\.txt$| | |
?^ci/conan/all/.*CMakeLists\.txt$| | |
?^cpp/cmake_modules/FindNumPy\.cmake$| | |
?^cpp/cmake_modules/FindPythonLibsNew\.cmake$| | |
?^cpp/cmake_modules/UseCython\.cmake$| | |
?^cpp/src/arrow/util/config\.h\.cmake$| |
.pre-commit-config.yaml
Outdated
?^ci/.*/.*\.cmake$| | ||
?^cpp/.*/.*\.cmake\.in$| | ||
?^cpp/.*/.*\.cmake$| | ||
?^cpp/.*/CMakeLists\.txt$| | ||
?^go/.*/CMakeLists\.txt$| | ||
?^java/.*/CMakeLists\.txt$| | ||
?^matlab/.*/CMakeLists\.txt$| | ||
?^python/.*/CMakeLists\.txt$| | ||
?.*CMakeLists\.txt$| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you sort this list in alphabetical order?
?.*CMakeLists\.txt$|
?^ci/.*/.*\.cmake$|
?^cpp/.*/.*\.cmake\.in$|
?^cpp/.*/.*\.cmake$|
After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit 14b8ca5. There was 1 benchmark result indicating a performance regression:
The full Conbench report has more details. |
…ake-format precommit hook (apache#41689) ### Rationale for this change Some CMakeLists.txt files are not included in the pre-commit hook (causing failures on CI through archery if you rely on the pre-commit hook locally) ### What changes are included in this PR? Include all CMakeLists.txt files by default anywhere in the repo, and explicitly exclude the ones we don't want (vendored files). In practice, compared to the current set of files covered by the hook, those new files are included in the search: 'cpp/CMakeLists.txt', 'java/CMakeLists.txt', 'matlab/CMakeLists.txt', 'python/CMakeLists.txt' ### Are these changes tested? Yes * GitHub Issue: apache#41688 Authored-by: Joris Van den Bossche <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
Rationale for this change
Some CMakeLists.txt files are not included in the pre-commit hook (causing failures on CI through archery if you rely on the pre-commit hook locally)
What changes are included in this PR?
Include all CMakeLists.txt files by default anywhere in the repo, and explicitly exclude the ones we don't want (vendored files).
In practice, compared to the current set of files covered by the hook, those new files are included in the search:
'cpp/CMakeLists.txt',
'java/CMakeLists.txt',
'matlab/CMakeLists.txt',
'python/CMakeLists.txt'
Are these changes tested?
Yes