-
-
Notifications
You must be signed in to change notification settings - Fork 8
resolves #24 #32
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
resolves #24 #32
Conversation
unfreeze CI python version
Codecov Report
@@ Coverage Diff @@
## main #32 +/- ##
=======================================
Coverage 81.51% 81.51%
=======================================
Files 8 8
Lines 714 714
=======================================
Hits 582 582
Misses 132 132
|
The problem that sonar cloud is highlighting is not an easy fix. I need to use regex in that situation. To avoid using regex for that, I would need to replace it with a lot of new code. TBH, I think the warning is a false positive because the pattern is so long. |
Thank you for making #24 happen!! |
I have bypassed sonarqube false positive warining, and your chagnes looks good to me. I'd like to test it and see how it looks like in the real repo. Just one question about naming, should we call it step-summary or job-summary? In this document https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary, the title called job summary, but it used step summary in the example code, your thought? |
Yeah, I haven't gotten around to running this with the test repo yet... I should've made this PR a draft.
We might not be the only step in the job that uses the |
It seems the summary is added for job. ![]() A example action you shared in #24 https://github.com/EnricoMi/publish-unit-test-result-action#github-actions-job-summary |
Thanks for the detailed reply, it makes more sense now. |
I'm trying to add a unit test to cover the 1 new line about the "LGTM" comment... |
update unit test for added CLI arg insert blank lines
d12d96b
to
2fe6b95
Compare
I think the sonar cloud was trying to say "don't begin regex patterns with |
anchor pattern to full line and use more specific pattern change beginning of patterns replace regex and fix test code smell remove duplicate tokens
The PR comment looks good. The step-summary is also working as expected. |
Kudos, SonarCloud Quality Gate passed!
|
The test results look good 👍 |
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.
Yeah, I'm ready to move on this. I just went through the changes, and I don't foresee any problems.
I'll release minor version bump (v1.6.0) since the step summary is a new feature. |
The sonar cloud linter is getting a bit ridiculous. It's latest check on main branch failed because:
I cannot fix point 1 without a huge rewrite. cpp-linter/cpp_linter/clang_tidy.py Line 8 in 5977c76
The problem with not using .+ to match a filename (and relative path) is that practically any character could be used (which is what . regex token is for). The other .* in this pattern is meant to capture the diagnostic's message which can have any character again. The last .* in this pattern can probably be changed to something more specific since it is supposed to match the tidy-check name.
I can probably fix point 2, but the main concern there is very context specific. I've already review the log usage, so sonar cloud doesn't need to tell me to do it again. As for point 3, most of warnings are being relaxed via pylint config (like statement counts in a function definition) and others are just not really a problem (like renaming TBH, I spent way more time trying to fix things in this PR that were not related to my intentional changes. 👎🏼 |
Revised the comments per suggestions from discussion in #24
I also introduced a new
--step-summary
to allow usingGITHUB_STEP_SUMMARY
feature. The summary posted has the same content as the--thread-comments
feature.Lastly, pylint has updated their support for python 3.11, so we can now use the latest python version again in CI. I also fixed some other warnings pylint didn't like about using
dict(...)
instead of literal{...}
.