-
Notifications
You must be signed in to change notification settings - Fork 336
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
Coverity Scan #3361
Coverity Scan #3361
Conversation
6f80b90
to
06a1527
Compare
67dcc13
to
98631cd
Compare
Fix issues found by Coverity Scan, including infinite loop bugs in the kernels of MLALaplacian. The scan will be done nightly on a local workstation. Add a badge to README.md. Remove the cmake README.md because it's broken.
98631cd
to
2172341
Compare
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.
Looks great 👍
ifeq ($(USE_COVERITY),TRUE) | ||
DEFINES += -DAMREX_USE_COVERITY | ||
endif |
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.
We can add this also to CMake, but if your build logic on Coverity is GNUmake only then this is fine, too.
@WeiqunZhang just for sake of documentation, where did you implement the nightly sync-to-the-coverity-branch logic? |
I have a cron job running on this. We can only run 3 scans per day on average.
|
Ah I see, got it. In the past, I merged to a branch, which kicked off the upload via a plugin. Curling works as well. If you like, you can also define cron-jobs in GH actions instead of locally: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule |
Good suggestion. We could do it. |
But then we have to download the coverity tools everytime. |
The tarball is quite big. More than 1 GB. |
Oh, I see. Yeah, it's on the size of the CUDA toolkit or oneAPI then 😅 |
Summary
Fix issues found by Coverity Scan, including infinite loop bugs in the kernels of MLALaplacian.
The scan will be done nightly on a local workstation.
Add coverity scan and license badges to README.md. Remove the cmake README.md because it's broken.
Checklist
The proposed changes: