[CI] Add Infer Static Code Analysis#521
Conversation
Codecov Report
@@ Coverage Diff @@
## master #521 +/- ##
=======================================
Coverage 70.52% 70.52%
=======================================
Files 115 115
Lines 15186 15186
Branches 3539 3539
=======================================
Hits 10710 10710
Misses 2480 2480
Partials 1996 1996 Continue to review full report at Codecov.
|
|
Thanks! Does it cover the source files under the |
No, I did not see into optional components. let me add it. Should I add tests too? |
Fixes WasmEdge#519 Uses GitHub Actions and https://github.com/facebook/infer Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
15c2a90 to
a0e91ed
Compare
Signed-off-by: Michael Yuan <michael@michaelyuan.com>
Allow the fbinfer workflow to be triggered manually. Also, upload the report.txt as an artifact. Signed-off-by: Michael Yuan <michael@michaelyuan.com>
|
I added some changes. Can you trigger it to run again on your repo? Thanks! |
|
No, I can't see any option to manually trigger. As far as I remember it must be merged before forks can use it. |
|
Hmm, how did you create those github actions reports in your repo then? 😂 |
|
Well, when I was testing, I added a trigger on my pull request branch, later I amended the commits 🤭. |
|
That is a neat trick. Can I ask you to do the same so that we can have a build with uploaded report.txt artifact? Thanks! |
|
Yeah sure, I identified some mistakes too, I will fix them. |
d128947 to
3caeff5
Compare
|
report.zip |
|
Hmm, this report only has 4 issues. Run 6 identified 26? https://github.com/avinal/WasmEdge/runs/3973556059?check_suite_focus=true#step:5:272 |
|
Ohh I see now. Seems like there is a conflict in results between different ways to analyze using CMake. https://fbinfer.com/docs/next/analyzing-apps-or-projects#cmake I just wanted to see which method is faster, assuming both will produce the same result. Let me try that again. |
|
Got 28 now 😕 |
|
Thanks! :) One more thing -- you might need to clean up the test commits to fix the DCO requirements. |
- change the method to generate report using Infer - Fix upload report to build artifact step Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
276de42 to
1cc7662
Compare
|
Thank you @avinal for your contribution. I added all issues identified by fbinfer as hacktoberfest issues. :) https://github.com/WasmEdge/WasmEdge/issues?q=is%3Aissue+is%3Aopen+label%3AImprovement |
- Removes redundant branch name mereged via PR WasmEdge#521 Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
|
Thanks @juntao, I will try to pick some issues in the coming days. Just for the note, a redundant line slipped through our reviews. I have added a PR to fix that. |
- Removes redundant branch name mereged via PR #521 Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
Changes
Test Runs
Signed-off-by: Avinal Kumar avinal.xlvii@gmail.com