-
Notifications
You must be signed in to change notification settings - Fork 500
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 clippy
checks to continuous integration
#659
Conversation
@antimora and @nathanielsimard I think I've finished, so this PR is read to be reviewed |
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.
If I understand correctly, the primary goal of this PR is to separate the clippy and formatting into individual jobs, much like we did with typos. If so, I'm on board with this idea. However, to maintain consistency and ease of maintenance, we should continue to execute these tasks within the run-checks script, as we've done with typos. This approach ensures that any changes to configuration or versions will be uniform. Using GitHub's clippy/formatting might lead to different outcomes compared to running the same script, which was the key reason for integrating the CI jobs with the script in the first place.
Should we need to improve the reporting of fmt/clippy outputs, the changes should be made within the script itself.
If we can agree on this, I've provided additional feedback on the implementation.
The goal of this PR consists of providing a way to better visualize Providing a better Personally I think CI should be superior than scripts because a CI is the last "judge" to evaluate a PR since:
But I also understand that an action can be quickly unmaintained and not conform to the new GitHub Actions APIs. So using only the necessary ones can be a valid point. Unfortunately I do not see a tradeoff for this PR, we can leave as it is now and create a new PR for the |
I couldn't understand initially what better output you were telling us about. So I dug in briefly about this clippy action. It appears from my limited research this action uses clippy and forwards output (or formats) to reviewdog service (that is why it requires git hub token in the code), which actually talks to the originating PR via comments. So it's clippy + clippy-action + reviewdog. Potentially we could enhance our PR workflow with the automated review tools like reviewdog, and I am open to this. I know little about current trend, so it'd be interesting to explore. With this new information, I am not exact sure why you had to modify the current run-checks if you added action/clippy. Does the action take the output? |
format
and clippy
checks to continuous integrationformat
and clippy
checks to continuous integration
Waiting for upstream giraffate/clippy-action#82 |
format
and clippy
checks to continuous integrationclippy
checks to continuous integration
I have found another way to show clippy lints within PRs, which is simpler than before, so this PR is no more blocked |
@antimora and @nathanielsimard I rebased this PR on top of |
Pull Request Template
Checklist
run-checks
script has been executed.Changes
This PR adds
clippy
checks on Linux directly on CI and uses actions to better show in PRclippy
warnings. It updates #552