Skip to content

Conversation

@plebioda
Copy link

@plebioda plebioda commented Dec 8, 2025

The clang-tidy analysis in PR #1637 reported a lot of errors. This is a follow-up PR to fix all of the reported errors.

@plebioda plebioda force-pushed the PSMDB-1884-fix-clang-tidy-reporting branch 4 times, most recently from 1d8d6c7 to a65f52f Compare December 9, 2025 07:51
@plebioda plebioda requested a review from Copilot December 9, 2025 08:02
Copy link

Copilot AI left a 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.
@plebioda plebioda force-pushed the PSMDB-1884-fix-clang-tidy-reporting branch 2 times, most recently from 0a158dc to 256fc49 Compare December 9, 2025 09:03
@plebioda plebioda requested review from igorsol and ktrushin December 9, 2025 09:11
@plebioda plebioda force-pushed the PSMDB-1884-fix-clang-tidy-reporting branch from 256fc49 to 6420f6e Compare December 9, 2025 09:12
@plebioda plebioda force-pushed the PSMDB-1884-fix-clang-tidy-reporting branch 3 times, most recently from 46af858 to edd933a Compare December 9, 2025 10:18
@plebioda plebioda requested a review from Copilot December 9, 2025 10:25
Copy link

Copilot AI left a 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.
@plebioda plebioda force-pushed the PSMDB-1884-fix-clang-tidy-reporting branch from edd933a to 7d94662 Compare December 9, 2025 10:33
@plebioda plebioda requested review from igorsol and ktrushin December 9, 2025 10:42
Copy link

@igorsol igorsol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@plebioda plebioda merged commit c8a4611 into master Dec 9, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants