-
Notifications
You must be signed in to change notification settings - Fork 1
Fix issue to use native binaries when available #43
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
Conversation
|
To fixe the failure against install (12.0.1, ubuntu-latest) I would like to remove 12.0.1 from test workflow and README.md |
This was my original intention. I'm ok with this change.
I'm ok with this too. We could add to the logic to check the full version if it is specified. but clang version numbers usually don't get minor number changes (really only some patch number changes). |
I see that v15.0.7 is shipped with the Windows runner. It may simply be that the binary isn't named clang-*-15, rather it is usually just named clang-<tidy/format>.exe. |
Codecov Report
@@ Coverage Diff @@
## main #43 +/- ##
=======================================
Coverage 87.71% 87.71%
=======================================
Files 4 4
Lines 171 171
=======================================
Hits 150 150
Misses 21 21
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
d3584fa to
2d5bfe3
Compare
2d5bfe3 to
ad73703
Compare
aefe969 to
4ba701f
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
|
I did not remove 12.0.1 I made some specific adjust and finally passed test on ubuntu and windows. |
|
I think we can do better with handling the full version when specified, but this will do for now. |
| return None # failed to locate the binary | ||
| path = Path(path).resolve() | ||
| print("at", str(path)) | ||
| ver_num = ver_num.groups(0)[0].decode(encoding="utf-8").split(".") # pragma: no cover |
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.
Why # pragma: no cover?
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.
I don't know how to cover this 😅
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.
I'm surprised that it wasn't getting covered. From a glance, it should be covered if the binary is located.
I'm ok with keeping the line not covered as it would be a reminder that we should be updating the unit tests or writing a new one that triggers it.
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.
Yes, I'm also surprised :)
|
I also installed the covcov github app integration for cpp-linter org. I don't think anything else needs to be done on our end. |
2bndy5
left a comment
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.
For the sake of getting this out into the wild, I'm ok with moving this forward.








12.0.1out of readme12.0.1and15.