Skip to content

[8.0/9.0] License scan tests failing due to scancode CLI TypeError #5346

@ellahathaway

Description

@ellahathaway

Failing pipeline run

License scan tests are failing on the 8/9 branches for every repo being scanned. The error occurs during execution of scancode.

Error Message:

System.InvalidOperationException : Failed to execute scancode --license --processes 4 --timeout 300 --strip-root --only-findings --ignore *.ildump --json-pp /mnt/vss/_work/1/s/artifacts/TestResults/Release/scancode-results.json /mnt/vss/_work/1/s/src/<repo>/
Exit code: 1
Traceback (most recent call last):
  File "/tmp/scancode-env/bin/scancode", line 5, in <module>
    from scancode.cli import scancode
  File "/tmp/scancode-env/lib/python3.10/site-packages/scancode/cli.py", line 383, in <module>
    def scancode(
  File "/tmp/scancode-env/lib/python3.10/site-packages/click/decorators.py", line 374, in decorator
    _param_memo(f, cls(param_decls, **attrs))
  File "/tmp/scancode-env/lib/python3.10/site-packages/commoncode/cliutils.py", line 454, in __init__
    super(PluggableCommandLineOption, self).__init__(
  File "/tmp/scancode-env/lib/python3.10/site-packages/click/core.py", line 2793, in __init__
    raise TypeError("Secondary flag is not valid for non-boolean flag.")
TypeError: Secondary flag is not valid for non-boolean flag.

Metadata

Metadata

Assignees

Labels

area-testingImprovements in CI and testingops-monitorIssues created/handled by the source build monitor role

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions