question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Importer for CodeChecker

See original GitHub issue

Is your feature request related to a problem? Please describe. We want to import the results generated from CodeChecker cmd results #3075 into another instance of the CodeChecker server. The formatted of the input file would be json. We will, for now, assume the users are on the same version of Codechecker and Kernel repository.

Rough Description of the scenario:

  • User A adds some comments to a specific run in the Codechecker server and marks some of the reports as false positive, confirm, etc.
  • User A runs CodeChecker cmd results <run_name> -o json --details and obtains a json file.
  • User A sends the thus obtained json to User B
  • User B should now be able to import this json into his Codechecker server and see the findings and comments added by User A.

We would be obliged if you could suggest an approach for implementing the functionality and redirect us to the appropriate files. @bulwahn

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
jay24rajputcommented, Dec 20, 2020

Thanks a ton @csordasmarton! The issue is resolved. We can obtain a properly formatted json.

Should I create tests for the same in https://github.com/Ericsson/codechecker/tree/master/web/tests/functional. A new folder named export. In the test file, we will add new comments with addComment and change the review status of some bugs with changeReviewStatus methods. But how will we compare the results in this case? Compare review status and comments separately with assetEquals maybe??

1reaction
csordasmartoncommented, Dec 20, 2020

Sorry, my bad 😕 We declared the importData function with one parameter which name is export. When thrift generated javascript functions from it, the parameter name will be export which is a reserved keyword. So we need to change the thrift file to this:

bool importData(1: ExportData exportData)
                throws (1: codechecker_api_shared.RequestFailed requestError),

I have also generated a new package from it: 6.37.0-dev4. Please try it out, now it should work.

Next time please always update your branch with your changes, so it will be easier to debug this for me 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quick Howto - CodeChecker - Read the Docs
This document describes the basic steps how the CodeChecker tool should be used to find errors in your source ... CodeChecker parse --export...
Read more >
Analyzer User Guide - CodeChecker
CC_LOGGER_GCC_LIKE Set to to a colon separated list to change which compilers should be logged. For example (default): export CC_LOGGER_GCC_LIKE="gcc:g++:clang: ...
Read more >
Web User Guide - CodeChecker
Import suppressions between server and suppress file. products (Manage product configuration of a server); login (Authenticate to the server).
Read more >
Analyzer User Guide - CodeChecker
CodeChecker provides, along with the more fine-tuneable commands, ... For example (default): export CC_LOGGER_GCC_LIKE="gcc:g++:clang:clang++: cc:c++".
Read more >
User Guide - CodeChecker
Import suppressions between server and suppress file ... usage: CodeChecker [-h] {analyze,analyzers,check,checkers,cmd,log,parse,server,store,version} .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found