ci-license-scan fail at rust-cbindgen-web
Background
When processing updates/import for rust-cbindgen-web the job scan license fails with
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/lib/python3/dist-packages/debian/copyright.py", line 167, in __init__
self.__file = parse_deb822_file(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/parsing.py", line 3095, in parse_deb822_file
deb822_file = Deb822FileElement(LinkedList(tokens))
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debian/_util.py", line 159, in __init__
self.extend(values)
File "/usr/lib/python3/dist-packages/debian/_util.py", line 272, in extend
for v in values:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line 104, in _impl
for token in token_stream:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line 104, in _impl
for token in token_stream:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/parsing.py", line 2991, in _build_field_with_value
value_element = next(buffered_stream, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line 143, in __next__
return next(self._stream)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line 104, in _impl
for token in token_stream:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/parsing.py", line 2939, in _build_value_line
tokens_in_value = list(buffered_stream.takewhile(_non_end_of_line_token))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line 149, in takewhile
while buffer or self._fill_buffer(5):
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line 198, in _fill_buffer
self._buffer.append(next(self._stream))
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line 104, in _impl
for token in token_stream:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/parsing.py", line 3031, in _abort_on_error_tokens
raise SyntaxOrParseError(
debian._deb822_repro.types.SyntaxOrParseError: Syntax or Parse error on the line: " 2018-2024 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>\n"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/ci-license-scan", line 617, in <module>
main()
File "/usr/bin/ci-license-scan", line 491, in main
c = MutableCopyright(n, strict=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debian/copyright.py", line 171, in __init__
raise NotMachineReadableError(str(e))
debian.copyright.NotMachineReadableError: Syntax or Parse error on the line: " 2018-2024 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>\n"
pkg/rust-cbindgen-web!2 (comment 148222)
Reproducibility
How often the issue is hit when repeating the steps to reproduce and changing nothing?
Put the
-
✅ always - often, but not always
- rarely
Impact of bug
The update/import cannot be processed.
Outcomes
Management data
This section is for management only, it should be the last one in the description.
/cc @andrunko @em @Balasubramanian @sudarshan @wlozano
Phabricator link: https://phabricator.apertis.org/T10723