WebP artifact file must be excluded from artifacts and not attempted to be parse as issues file
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start at code_review_bot/cli.py:218 and follow the revision ingestion path through workflow.py:244, backend.py:141, and init.py:205, where file content is read for hashing. Trace how artifacts and issues files are identified; done means WebP artifacts are excluded and no UnicodeDecodeError occurs when processing them.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 67
- Forks
- 52
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 54
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/code-review
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
mozilla/code-review#3399 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
mozilla/code-review#3666 ·
-
Remove the frontend Open
Difficulty 5/5 Over a week Newbie friendliness 30/100
mozilla/code-review#3648 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mozilla/code-review#3640 ·
-
mozilla/code-review#3638 · 1 assignee ·
All issues in mozilla/code-review
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zilliztech/memsearch#759 ·