Skip to content

Convert dhcphp/dhcpl to context form + relative Source File + UTC#1608

Merged
abrignoni merged 1 commit into
mainfrom
lava-convert-dhcp
Jun 25, 2026
Merged

Convert dhcphp/dhcpl to context form + relative Source File + UTC#1608
abrignoni merged 1 commit into
mainfrom
lava-convert-dhcp

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Summary

Finishes the relative-path sweep: the two DHCP artifacts (DHCP Hotspot Clients + DHCP Received List) were on the legacy 5-arg signature, so they couldn't take the simple get_relative_path wrap the other 28 got.

Changes

  • Convert both to the context form (drops the unused report_folder/seeker/wrap_text/timezone_offset args — the lint debt).
  • Source File column now uses context.get_relative_path (was the full on-disk path).
  • 🔴 dhcpl: store LeaseStartDate as UTC (plist <date> is UTC) instead of shifting it to the examiner's local tz via convert_plist_date_to_timezone_offset; guards the plist read.
  • dhcphp: add encoding= to open(); fix the paths tuple (was a bare string).
  • version/datecreation_date/last_update_date; author preserved (@AlexisBrignoni on dhcphp).

Validation

  • pylint 10.00/10 both.
  • Runtime-tested: relative source paths, UTC LeaseStartDate (unshifted), MAC formatting, non-wanted keys excluded.
  • PluginLoader loads all 577.

This closes out the path-in-data-column sweep — every artifact's source column now shows the clean in-extraction path.

Finish the relative-path sweep for the two DHCP artifacts that were on the legacy 5-arg
signature (so they couldn't take the simple get_relative_path wrap):
- Convert both to the single-arg context form (removes the unused report_folder/seeker/
  wrap_text/timezone_offset args that were the lint debt).
- Source File column now uses context.get_relative_path (was the full on-disk path).
- dhcpl: store LeaseStartDate as UTC (plist <date> is UTC) instead of shifting it to the
  examiner's local timezone via convert_plist_date_to_timezone_offset; guard plist read.
- dhcphp: add encoding= to open(); fix the paths tuple (was a bare string).
- version/date -> creation_date/last_update_date; preserves author (@AlexisBrignoni on dhcphp).

Validation: pylint 10.00 both; runtime-tested parsing (relative source paths, UTC
LeaseStartDate, MAC formatting); PluginLoader loads.
@abrignoni abrignoni merged commit 87ad29c into main Jun 25, 2026
1 check passed
@abrignoni abrignoni deleted the lava-convert-dhcp branch June 25, 2026 02:31
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