Ericsson / codechecker

CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy
https://codechecker.readthedocs.io
Apache License 2.0
2.22k stars 371 forks source link

Add integration with issue trackers and other tools #2512

Open nettle opened 4 years ago

nettle commented 4 years ago

Integration with other tools is indispensably essential! The issue tacking systems are the first candidate for the integration: Jira, Redmine etc The other tools to integrate with: code review systems (Gerrit etc), collaboration/ChatOps (Slack, Teams, Mattermost etc).

Some of scenarios are the following:

gyorb commented 4 years ago

Hi,

Yes we know that integrations are important but our resources are limited. We are focusing right now to support the storage of other static analyzer reports and to port CodeChecker to python3.

We discussed some ticketing system integration but flooding a ticketing system with a lot of new tickets for each analysis report might not be the best solution. On the other hand one simple CI job could query the database daily and filter for the high priority reports and create/update a jira ticket with the jenkins jira plugin. This could be done in jenkins. There are notification plugins in jenkins for multiple services like Slack, Mattermost... so this approach could work there too. The CodeChecker cmd command is very flexible and and you can query a lot of information from the database, or you can use the CodeChecker parse command to process local analysis reports.

We have user guides and helper scripts how to integrate to gerrit and how to support different CI workflows like daily analysis or to check if any new report was introduced by a developer.

Contributions are welcome!