-
Notifications
You must be signed in to change notification settings - Fork 658
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
feat(build-and-test-differential): modify clang-tidy to run only on specified packages #9016
feat(build-and-test-differential): modify clang-tidy to run only on specified packages #9016
Conversation
Signed-off-by: Y.Hisaki <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9016 +/- ##
==========================================
- Coverage 26.68% 26.68% -0.01%
==========================================
Files 1296 1300 +4
Lines 95679 95715 +36
Branches 39078 39080 +2
==========================================
+ Hits 25530 25538 +8
- Misses 67494 67522 +28
Partials 2655 2655
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Y.Hisaki <[email protected]>
…dy-specific-packages
Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
…dy-specific-packages
This reverts commit a0bda45.
This reverts commit ce2dda4. Signed-off-by: Y.Hisaki <[email protected]>
This reverts commit 64caa8b. Signed-off-by: Y.Hisaki <[email protected]>
@yhisaki hi, I can't review this PR, so please ask someone else to review it. |
@@ -0,0 +1,223 @@ | |||
##### common ##### |
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.
About this file as a whole, what about removing the commented out packages?
This way the file will be cleaner. Right now it is hard to see the "not commented out" packages.
We can just keep adding new packages as they come through.
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.
This way, the autoware_
prefixing job won't affect it that much.
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.
Agreed 👍
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.
Ok thanks, I'll approve once the commented out packages are removed from this file 👍
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.
@yhisaki
Could you update clang-tidy-required-packages.yaml file?
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.
@yhisaki
I have create a new, minimum .clang-tidy-ci
configuration, so please use it and list up the packages which pass the minimum check.
autowarefoundation/autoware#5465
@xmfcx
|
You can find all the references here: I'm not sure about usages outside our organization. You are referring to https://github.com/lmapii/run-clang-tidy right? Could you create a PR to https://github.com/autowarefoundation/autoware-github-actions create a new version for the clang tidy for this. And it would be a breaking change, we will need to update the major version for the entire actions in the repository since they are not versioned individually. Once the major version is incremented, any other further references to any of the actions from the repository will need to be incremented if we make a change to them. This is because we refer to them with
|
It might be a good idea to divide https://github.com/autowarefoundation/autoware-github-actions into multiple repositories. At least, whenever a major change is required for an action, we can put that particular action into its own repository and version it independently. What do you think @mitsudome-r @HansRobo ? I think the costs for the new repo are:
|
Thank you for your infomation, and I understand it is a breaking change and needs versioning.
No, perhaps. |
I agree. There will be maintenance costs, but I can help with some of that, and most of it can be automated. By dividing the repository, the simplicity of permission management may be lost, but this can be managed by creating a team of GitHub Actions maintainers on AWF GitHub organization and linking the divided repositories to that team. (In line with this, |
That sounds like a good idea to me. |
While this PR specifies which ROS2 packages to tidy, I want to significantly rewrite it to specify which files should NOT be tidied. In my plan, I would create a file like
The reasons for this change are:
Let me know if you have any thoughts or opinions. |
@yhisaki it makes sense, let's do it as you've suggested 👍 |
Description
Currently, clang-tidy checks are being executed but are not required and are being ignored. However, clang-tidy outputs important warnings that should not be disregarded.
This PR aims to gradually make clang-tidy checks required on a package-by-package basis. With this PR, the following process related to clang-tidy will be executed on GitHub Actions:
clang-tidy-required-package.yaml
and those retrieved in step 1.By progressively adding clang-tidy-compliant packages to
clang-tidy-required-package.yaml
, we can achieve gradual improvement in code quality.This PR is related to this PR.
Related links
How was this PR tested?
Tested on CI.
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.