ScanCode.io: Design and implement discrepancies reporting
We need to create data models in ScanCode.io to track d2d discrepancies and incorporate these into the binary to source pipelines. This could be flexible and be part of a general discrepancy reporting and does not have to be dedicated only to d2d.
@pombredanne please give me design on this when you get chance.
This is done. We now have:
- an endpoint on matchcodeio
/api/d2dto run d2d and report discrepancies
This PR has been merged:
- https://github.com/nexB/purldb/pull/433
To test this feature:
-
Install PurlDB and matchcode.io from the main branch
-
Run
make devmake run_matchcodeio
-
Make a request to
/api/d2dendpoint using two Input URLs
For example these:
- https://github.com/nexB/scancode.io/raw/main/scanpipe/tests/data/d2d-go/from-data.zip#from
- https://github.com/nexB/scancode.io/raw/main/scanpipe/tests/data/d2d-go/to-data.zip#to
Then click POST button and do refresh.
The codebase_resources_discrepancies field indicates the number of resources that have discrepancies.
This looks good! closing now.