Skip to content

Convert simInfo + recentApphistory + queryPredictions to LAVA#1587

Merged
abrignoni merged 1 commit into
mainfrom
convert-system-batch1
Jun 24, 2026
Merged

Convert simInfo + recentApphistory + queryPredictions to LAVA#1587
abrignoni merged 1 commit into
mainfrom
convert-system-batch1

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Modernizes three small system artifacts to LAVA. Context form, UTC. 4 processors.

simInfo (→ 2)

  • Split into simInfoUUID + simInfoLabelStore.
  • timestampcalc was naive datetime.fromtimestamp(int(ts))convert_unix_ts_to_utc (correct aware UTC; guarded empty/non-int).
  • Fixed the MDM header typo — the value is mdn, so → MDN. Dropped the duplicate datetime import + unused os/json.

recentApphistory (CarPlay)

  • biplistplistlib; timestamp → convert_unix_ts_to_utc; iterate+endswith+guard source selection.

queryPredictions

  • Replaced files_found[0] blind index with iterate+endswith+guard; datetime(creationTimestamp,'unixepoch') is UTC.

Validation

  • pylint 10.00/10; compile/ast OK; no legacy refs (fromtimestamp/files_found[0]/biplist gone).
  • Functional tests: SIM/CarPlay timestamps resolve to correct aware UTC; queryPredictions SQL executes. Reserved-word audit PASS for all 4. No external imports of the old names.

…_processor

Three small system artifacts -> context form, UTC.

- simInfo: split into simInfoUUID + simInfoLabelStore; timestampcalc was naive
  datetime.fromtimestamp(int(ts)) -> convert_unix_ts_to_utc (correct aware UTC),
  guarded empty/non-int ts; fixed the 'MDM' header typo (value is mdn -> 'MDN');
  dropped duplicate datetime import and unused os/json.
- recentApphistory: biplist -> plistlib; CarPlay timestamp -> convert_unix_ts_to_utc;
  iterate+endswith+guard source selection.
- queryPredictions: replaced files_found[0] blind index with iterate+endswith+guard;
  datetime(creationTimestamp,'unixepoch') is UTC.
@abrignoni abrignoni merged commit 2ad649b into main Jun 24, 2026
1 check passed
@abrignoni abrignoni deleted the convert-system-batch1 branch June 24, 2026 04:23
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