Skip to content

WebP artifact file must be excluded from artifacts and not attempted to be parse as issues file #3365

Description

@Archaeopteryx

May 13 10:58:46Z 34.53.64.82 code-review/production/bot 2026-05-13 10:58:46 cli.py: [error ] Static analysis failure error=UnicodeDecodeError('utf-8', b'RIFF\xac=\x00\x00WEBPVP8X\n\x00\x00\x000\x00\x00\x00o\x00\x00s\x00\x00ICCP\xc8\x01\x00\x00\x00\x00\x01\xc8\x00\x00\x00\x00\x040\x00\x00mntrRGB XYZ \x07\xe0\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00acsp\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\xf6\xd6\x00\x01\x00\x00\x00\x00\xd3-...

...\xf7\xcc\xfb\xde\x05WJ\x04\x00\x00', 4, 5, 'invalid start byte') revision=9c869ccd7de6f73021555fcd105a6415b40333db@https://hg.mozilla.org/integration/autoland Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/code_review_bot-1.11.5-py3.13.egg/code_review_bot/cli.py", line 218, in main w.ingest_revision(revision, settings.generic_group_id) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/code_review_bot-1.11.5-py3.13.egg/code_review_bot/workflow.py", line 244, in ingest_revision self.backend_api.publish_issues(issues, revision) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/code_review_bot-1.11.5-py3.13.egg/code_review_bot/backend.py", line 141, in publish_issues if issue.hash is None: ^^^^^^^^^^ File "/usr/local/lib/python3.13/functools.py", line 1026, in get val = self.func(instance) File "/usr/local/lib/python3.13/site-packages/code_review_bot-1.11.5-py3.13.egg/code_review_bot/init.py", line 205, in hash file_content = f.read() File "", line 325, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac in position 4: invalid start byte

is a WebP file and CRB must not try to parse it as issues file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions