Skip to content
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

Add CI action that reports clang-tidy warnings as review comments. #1658

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hzeller
Copy link
Member

@hzeller hzeller commented Oct 10, 2024

#xls-build-gardener

@hzeller hzeller force-pushed the feature-20241010-run-clang-tidy-review branch 6 times, most recently from 400322a to 7295f9c Compare October 10, 2024 22:02
@hzeller
Copy link
Member Author

hzeller commented Oct 10, 2024

@proppy I am trying to get this clang-tidy-pr-comments action to work. The 403 looks like the action does not have permission to write. I suspect you'd be the best person knowing how the permission system is set up and what token to use.

(Note, currently the action is https://github.com/hzeller/clang-tidy-pr-comments which is just a fork from the original https://github.com/platisd/clang-tidy-pr-comments for easier debugging).

@hzeller hzeller requested a review from proppy October 10, 2024 22:45
@hzeller hzeller force-pushed the feature-20241010-run-clang-tidy-review branch from 7295f9c to 66e3c20 Compare October 10, 2024 23:01
@proppy
Copy link
Member

proppy commented Oct 11, 2024

@hzeller do you get the same error when running it on your fork? https://github.com/hzeller/clang-tidy-pr-comments

That would help us to rules out project specific configuration issues.

git diff -U1000 "$(git merge-base HEAD review-base/${{ github.event.pull_request.base.ref }})" | xls/dev_tools/run-clang-tidy-diff.sh -p1 -path build -export-fixes clang-tidy-result/fixes.yml

- name: Run clang-tidy-pr-comments action
uses: hzeller/clang-tidy-pr-comments@master
Copy link
Member Author

Choose a reason for hiding this comment

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

Note, I am using my fork here.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry I meant: when using the action on your xls fork (not a fork of the action).

Copy link
Member Author

Choose a reason for hiding this comment

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

ah, I see. I did not try that as my personal github does not have access to hi-umpf runners (just building the compilation DB takes more than 30min before I gave up)

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