Skip to content

Convert offlinePages to LAVA @artifact_processor (+ media migration)#811

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

Convert offlinePages to LAVA @artifact_processor (+ media migration)#811
abrignoni merged 1 commit into
mainfrom
lava-batch-59

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Converts offlinePages.py (MHTML/MHT saved offline pages) to the decorated @artifact_processor pattern.

Changes

  • Media migration: the File column moves from legacy media_to_html to a proper ('File','media') column backed by check_in_media, so each archive is registered in the LAVA media store (refs/dedupe; exports get a path instead of an HTML snippet). First of the media_to_html migrations tracked from the media discussion.
  • Timestamp is now an aware UTC datetime (drops the no-op pytz UTC→UTC conversion).
  • Renamed from the generic pages to Offline Pages (MHTML)Offline Pages is already used by chromeOfflinePages (category Chromium); this one keeps category Offline Pages.
  • Real description (was a stale "fetch the timezone information" note); encoding= added to open() for W1514.

Original creation_date/last_update_date (2023-01-25) preserved.

Converts the MHTML/MHT offline-page parser to the decorated single-return
pattern and migrates the file column from the legacy media_to_html to a
proper ('File','media') column backed by check_in_media, so the archive
is registered in the LAVA media store. Timestamp is an aware UTC datetime
(drops the no-op pytz/UTC->UTC conversion). Renames the artifact from the
generic 'pages' to 'Offline Pages (MHTML)' (the name 'Offline Pages' is
taken by chromeOfflinePages) and replaces the stale description. Adds
encoding= to open() for the W1514 lint.
@abrignoni abrignoni merged commit 8f2a5b8 into main Jun 21, 2026
1 check passed
@abrignoni abrignoni deleted the lava-batch-59 branch June 21, 2026 02:54
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