-
Notifications
You must be signed in to change notification settings - Fork 185
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
[LLVM] Added EventSetupRecord::get checker #6734
Conversation
please test |
A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for branch IB/CMSSW_11_3_X/master. @smuzaffar, @mrodozov can you please review it and eventually sign? Thanks. |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-58280d/13534/summary.html Comparison SummarySummary:
|
+externals |
This pull request is fully signed and it will be integrated in one of the next IB/CMSSW_11_3_X/master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
@gartung , the PR tests use |
please test with cms-sw/cmssw#33189 |
For the static analyzer that is correct. Wherever you enable the clang-tidy checks, you need to change/add cms.*. |
There does not appear to be any restrictions on clang-tidy checkers so the new one should just run. |
for |
the |
OK. I will submit a pull request to add cms.* to .clang-tidy. |
I'm now confused. Would changing |
Yes, now after |
If we want the CMS checks to run any time clang-tidy is run then this PR is needed cms-sw/cmssw#33197 |
The Event::getByToken check will actually change the code because it has a fixit replacement. I test that all of the replacements produced code that could be compiled when I wrote that checker. |
Correction. The environment variable USER_CODE_CHECKS_ARGS needs to be set for pull request testing and the warnings recorded. |
is |
No, .clang-tidy is only used at the time of code-checks |
Only for code-checks as far as I can tell. Running the code-checks with the environment variable could be added as part of the static analyzer check here https://github.com/cms-sw/cms-bot/blob/master/pr_testing/test_multiple_prs.sh#L687 or added as its own check in the same script and the warnings recorded. |
Let's backtrack a bit. What w'd want is some way to flag deprecated functionality in PRs with different levels of enforcement. I can think of
Currently we do
I'm currently looking for 4a for the 3 or 4a could be useful for legacy EDModules as well (as mentioned in #31021). Does 4a make sense, or would it be better to wait until we can enforce with 4b (in which case the If the answer is "yes", what would be the best way to do that? Make use of static analyzer information, use |
I think only the files changed in a pull request have clang-tidy code format checks run on them. The CMS clang-tidy test could be run only on the files changed as part of the pull request tests. |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-58280d/13554/summary.html Comparison SummarySummary:
|
Actually I think the I'm fine with running clang-tidy again in the PR test phase for reporting warnings of the |
I enabled |
I agree that for warnings about EventSetupRecord::get() check , we can run clang-tidy and any other cms check during PR static analysis tests. @gartung , can you please open a cms-bot PR to do this ? |
Good point. It could also probably be useful to submit PRs first one-to-few packages manually before launching bigger campaign (and I have one question to Patrick first). |
Alternative based on running clang-tidy with custom CMS checkers enabled. |
See cms-externals/llvm-project#10