Skip to content

Conversation

@VarunNagaraju
Copy link
Contributor

https://perconadev.atlassian.net/browse/PS-10100

The base branch information is crucial for performing clang-tidy checks because the clang-tidy checks are configured run on only the changes made in the source code files within a prticular pull request(even with multiple commits) and the base branch is necessary to do the comparison with the source branch to fetch the changes made in a PR.

So, Github API is used to dynamically fetch the pull request data which is in turn used to filter out the base branch info. It has also been made sure to handle cases where the circleCI checks are run in the context of the fork(if enabled).
Curl is being used to fetch the JSON data from the API and all the possible errors are handled and in such cases the base branch will be set to trunk as a fallback.

Copy link
Collaborator

@inikep inikep left a comment

Choose a reason for hiding this comment

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

LGTM, except please add [9.x] tag in commit tittle

…rcleCI check

https://perconadev.atlassian.net/browse/PS-10100

The base branch information is crucial for performing clang-tidy checks
because the clang-tidy checks are configured run on only the changes
made in the source code files within a prticular pull request(even with
multiple commits) and the base branch is necessary to do the comparison
with the source branch to fetch the changes made in a PR.

So, Github API is used to dynamically fetch the pull request data which
is in turn used to filter out the base branch info. It has also been
made sure to handle cases where the circleCI checks are run in the
context of the fork(if enabled).
Curl is being used to fetch the JSON data from the API and all the
possible errors are handled and in such cases the base branch will be
set to trunk as a fallback.
@VarunNagaraju VarunNagaraju changed the title PS-10100 Improve the way the base branch info is fetched in circleCI check PS-10100 [9.x]: Improve the way the base branch info is fetched in circleCI check Nov 28, 2025
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.

2 participants