Skip to content

scan_package should not fail if there is an error in the scan #1018

Description

@pombredanne

When scanning https://codeload.github.com/ElinamLLC/SharpVectors/tar.gz/refs/tags/v1.8.2 with "scan_package" the pipeline fails with:

{'codebase/SharpVectors-1.8.2/Source/SharpVectorModel/Compressions/Brotli/Dictionary.cs': ['ERROR: for scanner: copyrights:\nERROR: Processing interrupted: timeout after 120 seconds.']}

Traceback:
  File "/opt/scancodeio/scanpipe/pipelines/__init__.py", line 121, in execute
    step(self)
  File "/opt/scancodeio/scanpipe/pipelines/scan_package.py", line 109, in run_scancode
    raise ScancodeError(errors)

This should not fail (since this is a recoverable error) but should instead be loaded with the errors as error messages and the scan as output.

aboutcode-org/scancode-toolkit#3614

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions