-
Notifications
You must be signed in to change notification settings - Fork 66
PSMDB-1884: fix clang-tidy workflow #1645
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
Conversation
1d8d6c7 to
a65f52f
Compare
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.
Pull request overview
This PR fixes the clang-tidy CI workflow by adding AWS SDK C++ setup and updating build configurations to properly support clang-tidy analysis.
Key changes:
- Added AWS SDK C++ setup action for building and caching the SDK
- Updated clang-tidy workflow to use clang compiler and proper build flags
- Added system dependencies installation to the setup-env action
- Modified wrapper hook to insert bazel arguments before the
--separator
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
bazel/wrapper_hook/wrapper_hook.py |
Added append_args function to insert arguments before -- separator and updated argument handling logic |
.github/workflows/clang-tidy.yml |
Added AWS SDK setup step and configured compiler type to clang for proper clang-tidy analysis |
.github/actions/setup-env/action.yml |
Added installation of system dependencies required for building |
.github/actions/setup-aws-sdk/action.yml |
New action to build and cache AWS SDK C++ with specific configuration for S3 and transfer components |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The arguments shall be appended after the '--' separator arg if exists.
0a158dc to
256fc49
Compare
256fc49 to
6420f6e
Compare
46af858 to
edd933a
Compare
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.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fix clang-tidy workflow reporting the errors related to missing includes by installing dependencies and building the AWS SDK. Fix generating compile_commands.json: - use the `--intree_compdb` option which fixes a problem with absolute paths in compiler flags, - use //bazel/config:compiler_type=clang to fix missing builtin errors.
The `bazel run format` calls the `git merge-base HEAD origin/<base>` command. Using the `tj-actions/changed-files@v45` action is not reliable.
edd933a to
7d94662
Compare
igorsol
left a comment
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.
LGTM
The
clang-tidyanalysis in PR #1637 reported a lot of errors. This is a follow-up PR to fix all of the reported errors.