-
-
Notifications
You must be signed in to change notification settings - Fork 431
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 compilation errors & SAT GitHub annotations #2543
Conversation
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Sorry I meant to open this PR in my fork 😠 |
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
So this is basically working (see the Files tab) with the following caveats:
What can be done is:
Then the inline problem reports should be less noisy and only report what the user needs to fix to make the build pass. Wdyt? @wborn |
Thanks for having a look at this. 👍 I like the result and would also rather avoid having the "Unchanged files with check permissions" section show. Showing errors only would probably make the most sense now. The "10 errors & 10 warnings" is good enough for me. I read that another issue is that the line numbers won't align if you use the files resulting from the merged branch. So that's why the example uses |
Many static analysis tools nowadays also support the SARIF format. It seems you can also use these files to integrate with the GitHub code scanning, see: https://docs.github.com/en/code-security/code-scanning Might also be worth to look into what this exactly does and how well it works when PRs are created. 😉 |
Remove deliberate error Remove other errors found in last run Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]>
So in the end I combined these two PRs into one:
(Try Ctrl-F5 if the annotations don't show) I eventually fixed some unrelated problems in this PR, that's because the action originally had a bug and was treating every problem as errors unless there were warnings - so info levels were treated as failures... If they are not wanted I can revert them. |
Those are interesting as well but it might be better to postpone them to another workflow dedicated to code checks? |
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.
Thanks a lot. 👍
I gave it a brief test in my own repo and it seems to work. 🙂
So let's test how it works for real!
If you think it'd be a good addition to other repos (notably openhab-addons) I can open similar PRs to those too. |
Yes it would be nice to test it in the add-ons repo too! I plan on adding GHA to more repos when all bugs are sorted out and we're happy with the features in the most active repos. 🙂 That prevents a lot of PRs to tune GHA everywhere. It might also be worth looking into reusing workflows if we add GHA to many repos. |
Let's test the GHA annotations for errors also in this repo! Similar to openhab/openhab-core#2543 Signed-off-by: Wouter Born <[email protected]>
Let's test the GHA annotations for errors also in this repo! Similar to openhab/openhab-core#2543 Signed-off-by: Wouter Born <[email protected]>
Let's test the GHA annotations for errors also in this repo! Similar to openhab/openhab-core#2543 Signed-off-by: Wouter Born <[email protected]> Signed-off-by: Nick Waterton <[email protected]>
Let's test the GHA annotations for errors also in this repo! Similar to openhab/openhab-core#2543 Signed-off-by: Wouter Born <[email protected]> Signed-off-by: Michael Schmidt <[email protected]>
Let's test the GHA annotations for errors also in this repo! Similar to openhab/openhab-core#2543 Signed-off-by: Wouter Born <[email protected]>
Let's test the GHA annotations for errors also in this repo! Similar to openhab/openhab-core#2543 Signed-off-by: Wouter Born <[email protected]>
Let's test the GHA annotations for errors also in this repo! Similar to openhab/openhab-core#2543 Signed-off-by: Wouter Born <[email protected]>
Signed-off-by: Yannick Schaus <[email protected]> GitOrigin-RevId: d4f62ed
No description provided.