scancode.io icon indicating copy to clipboard operation
scancode.io copied to clipboard

ScanCode.io: Design and implement discrepancies reporting

Open pombredanne opened this issue 1 year ago • 1 comments

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 avatar Apr 04 '24 08:04 pombredanne

@pombredanne please give me design on this when you get chance.

TG1999 avatar Apr 29 '24 04:04 TG1999

This is done. We now have:

  • an endpoint on matchcodeio /api/d2d to 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 dev
    • make run_matchcodeio
  • Make a request to /api/d2d endpoint 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

Screenshot from 2024-05-09 14-14-17 Then click POST button and do refresh.

Screenshot from 2024-05-24 11-27-14

The codebase_resources_discrepancies field indicates the number of resources that have discrepancies.

TG1999 avatar May 24 '24 05:05 TG1999

This looks good! closing now.

pombredanne avatar May 30 '24 13:05 pombredanne