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

ci: fail clang-tidy job on threshold #2505

Merged
merged 3 commits into from
Nov 18, 2024
Merged

ci: fail clang-tidy job on threshold #2505

merged 3 commits into from
Nov 18, 2024

Conversation

battlmonstr
Copy link
Contributor

@battlmonstr battlmonstr commented Nov 12, 2024

Warnings can slip through the clang-tidy-diff job on PRs, because it has a limited time budget (1 min per .cpp file) and not checking .hpp files (#2479). If it happens we don't want to immediately treat master as "broken" on the basis of a few clang-tidy "nits" (and be forced to rush with quick fixes for the nits to make master "green" again).

This PR makes clang-tidy CI job advisory until it reaches N warnings.

example report

@battlmonstr battlmonstr force-pushed the pr/tidy_threshold branch 12 times, most recently from 08b96e8 to c24b8dd Compare November 13, 2024 10:26
This reverts commit 4f5dc4d.
@battlmonstr battlmonstr marked this pull request as ready for review November 13, 2024 14:09
@battlmonstr battlmonstr enabled auto-merge (squash) November 13, 2024 14:10
@battlmonstr battlmonstr merged commit 12cc337 into master Nov 18, 2024
5 of 6 checks passed
@battlmonstr battlmonstr deleted the pr/tidy_threshold branch November 18, 2024 21:11
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