-
Notifications
You must be signed in to change notification settings - Fork 279
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
Adding Valgrind Issues reporting #1909
base: main
Are you sure you want to change the base?
Conversation
plugin/src/main/java/io/jenkins/plugins/analysis/warnings/Valgrind.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
/** Descriptor for this static analysis tool. */ | ||
@Symbol("valgrindParser") |
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.
Is valgrind
already used somewhere else?
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.
@uhafner I don't think is used at all. I add it because we are using in memory detection leak in iot devices.
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.
Sorry, I wasn't clear about this: wouldn't it be simpler to use the ID valgrind
rather than valgrindParser
?
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.
@uhafner I will repost with all your suggestions. Clean up and make a better commit. Including how use it and use cases
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.
@uhafner Done
1c1e67e
to
c919254
Compare
plugin/src/main/java/io/jenkins/plugins/analysis/warnings/Valgrind.java
Outdated
Show resolved
Hide resolved
Allow to use valgrindParser to report memory issues The analytic-model already has the valgrind model. Just extend the plugin to use it. recordIssues sourceCodeRetention: 'LAST_BUILD', tool: valgrind(pattern: "out/test/memcheck.xml"), qualityGates: [[threshold: 1, type: 'TOTAL', criticality: 'FAILURE']] Add Fix copy paste error in JavaDoc from Ullrich Hafner Reviewed-by: Ullrich Hafner <[email protected]> Signed-off-by: Michael Trimarchi <[email protected]>
6d3e5c1
to
23a8658
Compare
Allow to use valgrindParser to report memory issues
The analytic-model already has the valgrind model. Just extend the plugin to use it.
recordIssues sourceCodeRetention: 'LAST_BUILD',
tool: Valgrind(pattern: "out/test/memcheck.xml"),
qualityGates: [[threshold: 1, type: 'TOTAL', criticality: 'FAILURE']]
Testing done
Deploy locally on latest jenkins instance version 2.489