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 clang-tidy in a GitHub workflow #4636

Conversation

gnawme
Copy link
Contributor

@gnawme gnawme commented Mar 6, 2021

This PR is a companion to #4629; per @kunaltyagi, it only adds the GitHub Workflow to enable clang-tidy checks in CI, but does not actually enable clang-tidy in the PCL repo itself.

@kunaltyagi kunaltyagi added changelog: enhancement Meta-information for changelog generation module: ci labels Mar 10, 2021
@kunaltyagi
Copy link
Member

Any thoughts on why we don't see Github workflow in the list of checks?

@kunaltyagi kunaltyagi self-requested a review March 10, 2021 07:17
Copy link
Member

@kunaltyagi kunaltyagi left a comment

Choose a reason for hiding this comment

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

Apart from lack of github workflow viz, and minor comment, LGTM

Thoughts on adding a docker image for clang-tidy? (env + clang + git)? @larshg @mvieth

@larshg
Copy link
Contributor

larshg commented Mar 10, 2021

Apart from lack of github workflow viz, and minor comment, LGTM

Thoughts on adding a docker image for clang-tidy? (env + clang + git)? @larshg @mvieth

Maybe just run it directly on ubuntu_latest / fixed ubuntu.
https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md

Then its just clang-tidy that needs installed?

It does give potential issues, that MS might change the versions installed, but it would avoid pulling a docker image?

@kunaltyagi
Copy link
Member

IIRC, doesn't clang-tidy require all dependencies to be installed?

@larshg
Copy link
Contributor

larshg commented Mar 10, 2021

IIRC, doesn't clang-tidy require all dependencies to be installed?

Ahh, that might be. I'm not that familiar with clang/tidy.

I can see Cmake is run as well, which will fail with missing dependencies.

Is git required explicitly installed? Just realized it used to do the diff.

@gnawme
Copy link
Contributor Author

gnawme commented Mar 11, 2021

Any thoughts on why we don't see Github workflow in the list of checks?

Not sure, it was triggered automatically in the previous PR once I added the workflow files

@kunaltyagi
Copy link
Member

I think we need to merge this into master before the github action is activated. We saw something similar with Azure pipelines as well

@gnawme
Copy link
Contributor Author

gnawme commented Mar 13, 2021

I think we need to merge this into master before the github action is activated. We saw something similar with Azure pipelines as well

See reply to your previous comment.

@kunaltyagi kunaltyagi added the needs: pr merge Specify why not closed/merged yet label Mar 14, 2021
@mvieth
Copy link
Member

mvieth commented Jun 24, 2022

Closing and re-opening to trigger checks ...

@mvieth mvieth closed this Jun 24, 2022
@mvieth mvieth reopened this Jun 24, 2022
Copy link
Member

@mvieth mvieth left a comment

Choose a reason for hiding this comment

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

Please also rebase on the current master branch, otherwise the compile_commands.json is not generated

@gnawme
Copy link
Contributor Author

gnawme commented Jun 25, 2022

@mvieth Opened #5304 to address issues that have crept in since #4629.

Please assign it to me.

EDIT: Or, if you like, I could add the fixes to this PR.

@gnawme gnawme force-pushed the norm.evangelista/PCL-2731-clang-tidy-github-workflow branch from 386a89f to 0082a29 Compare June 28, 2022 23:00
@mvieth
Copy link
Member

mvieth commented Jun 30, 2022

@gnawme
Copy link
Contributor Author

gnawme commented Jun 30, 2022

I'll try running this in my other PR first, and see what happens...

@mvieth
Copy link
Member

mvieth commented Jul 3, 2022

@gnawme If you rebase this and all checks pass, then this is ready to merge from my side. We can leave enabling the remaining PCL modules for other pull requests

@gnawme gnawme force-pushed the norm.evangelista/PCL-2731-clang-tidy-github-workflow branch from 5853a5f to c977aee Compare July 3, 2022 14:43
@mvieth
Copy link
Member

mvieth commented Jul 4, 2022

Unfortunately, there are still 4 clang-tidy errors left. Let's fix them in this pull request (not a separate one this time)?

gnawme added 20 commits July 4, 2022 08:07
Signed-off-by: Norm Evangelista <norm.evangelista@gmail.com>
Signed-off-by: Norm Evangelista <norm.evangelista@gmail.com>
Signed-off-by: Norm Evangelista <norm.evangelista@gmail.com>
Signed-off-by: Norm Evangelista <norm.evangelista@gmail.com>
Signed-off-by: Norm Evangelista <norm.evangelista@gmail.com>
Signed-off-by: Norm Evangelista <norm.evangelista@gmail.com>
Signed-off-by: Norm Evangelista <norm.evangelista@gmail.com>
@gnawme gnawme force-pushed the norm.evangelista/PCL-2731-clang-tidy-github-workflow branch from c977aee to f3506a2 Compare July 4, 2022 15:08
Copy link
Member

@mvieth mvieth left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@gnawme gnawme requested a review from kunaltyagi July 4, 2022 22:02
@mvieth mvieth removed the needs: pr merge Specify why not closed/merged yet label Jul 6, 2022
@mvieth mvieth merged commit 31564ba into PointCloudLibrary:master Jul 6, 2022
@mvieth mvieth changed the title Added GitHub workflows [PCL-2731] Add clang-tidy in a GitHub workflow Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: enhancement Meta-information for changelog generation module: ci
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants