Skip to content

Convert torThumbs to LAVA @artifact_processor (+ media migration)#814

Merged
abrignoni merged 1 commit into
mainfrom
lava-batch-62
Jun 21, 2026
Merged

Convert torThumbs to LAVA @artifact_processor (+ media migration)#814
abrignoni merged 1 commit into
mainfrom
lava-batch-62

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Converts torThumbs.py (Tor Browser cached page thumbnails) to the decorated @artifact_processor pattern.

Changes

  • Media migration (embedded): the .0 thumbnail files are extensionless image blobs, so each is decoded to PNG bytes and registered via check_in_embedded_media into a ('Thumbnail','media') column — same approach as SamsungHoneyboard. Replaces media_to_html + a loose PNG written into the report folder and the Windows ?-strip hack.
  • Modified Time is now an aware UTC datetime.
  • Image.open is guarded — a non-image file is logged and skipped instead of crashing the artifact.
  • Renamed torThumbsTOR Thumbnails.

Original creation_date/last_update_date (2021-12-23) preserved.

Converts the Tor Browser thumbnail parser to the decorated single-return
pattern. The .0 thumbnail files are extensionless image blobs, so decode
each to PNG bytes and register via check_in_embedded_media with a
('Thumbnail','media') column (replacing media_to_html + a loose PNG saved
into the report folder and the Windows '?'-strip hack). Modified time is
now an aware UTC datetime, and Image.open is guarded so a non-image file
is skipped rather than crashing the artifact. Renames the artifact from
'torThumbs' to 'TOR Thumbnails'.
@abrignoni abrignoni merged commit 16b8157 into main Jun 21, 2026
1 check passed
@abrignoni abrignoni deleted the lava-batch-62 branch June 21, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant