License scan fails on package texlive-extra
Affected images versions
Version v2022dev3
Unaffected images versions
Testcase
Steps to reproduce
Push a branch with prefix proposed-updates
, which will automatically trigger a CI pipeline with license scan.
Expected result
The scan process ends with a summary of the licenses used by every file in the package.
Actual result
The scan process ends abnormally with the following trace
Will not fail on change
Will not fail on files with unknown license found
Using whitelists: ['debian/apertis/copyright.whitelist']
Traceback (most recent call last):
File "/usr/bin/ci-license-scan", line 471, in <module>
main()
File "/usr/bin/ci-license-scan", line 367, in main
scan_copyrights(_out=f)
File "/usr/lib/python3/dist-packages/sh.py", line 1520, in __call__
return RunningCommand(cmd, call_args, stdin, stdout, stderr)
File "/usr/lib/python3/dist-packages/sh.py", line 784, in __init__
self.wait()
File "/usr/lib/python3/dist-packages/sh.py", line 841, in wait
self.handle_command_exit_code(exit_code)
File "/usr/lib/python3/dist-packages/sh.py", line 865, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_255:
RAN: /usr/bin/scan-copyrights
STDOUT:
STDERR:
2019:2019 is pointless at /usr/share/perl5/String/Copyright.pm line 194.
1998 already in range at /usr/share/perl5/String/Copyright.pm line 194.
2015:2015 is pointless at /usr/share/perl5/String/Copyright.pm line 194.
2015:2015 is pointless at /usr/share/perl5/String/Copyright.pm line 194.
2015:2015 is pointless at /usr/share/perl5/String/Copyright.pm line 194.
2015:2015 is pointless at /usr/share/perl5/String/Copyright.pm line 194.
2020:2020 is pointless at /usr/share/perl5/String/Copyright.pm line 194.
2009:2009 is pointless at /usr/share/perl5/String/Copyright.pm line 194.
2009:2009 is pointless at /usr/share/perl5/String/Copyright.pm line 194.
2009:2009 is pointless at /usr/share/perl5/String/Copyright.pm line 194.
2009:2009 is pointles... (10549224 more, please see e.stderr)
Reproducibility
How often the issue is hit when repeating the test and changing nothing (same device, same image, etc.)?
Put the
-
✅ always - often, but not always
- rarely
Impact of bug
This bug prevents license scan to be run for package texlive-extra
which has low impact since it is not in target. However this same issue could be found in other packages.
Attachments
Root cause
The root cause seems to in an upstream bug triggered by licensecheck trying to extract copyright information.
Outcomes
- pkg/libconfig-model-dpkg-perl!9 (merged)
- https://salsa.debian.org/perl-team/modules/packages/libconfig-model-dpkg-perl/-/merge_requests/6
- pkg/libconfig-model-dpkg-perl!10 (merged)
Management data
This section is for management only, it should be the last one in the description.
Phabricator link: https://phabricator.apertis.org/T8175