Skip to content

Convert geodApplications + geodPDPlaceCache to artifact_processor (LAVA, context form)#1569

Merged
abrignoni merged 1 commit into
mainfrom
convert-geod-cluster
Jun 23, 2026
Merged

Convert geodApplications + geodPDPlaceCache to artifact_processor (LAVA, context form)#1569
abrignoni merged 1 commit into
mainfrom
convert-geod-cluster

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Summary

geod/location cluster — two simple AP.db / PDPlaceCache.db artifacts.

Artifact Source
Geolocation - Applications AP.db (mkcount/dailycounts)
Geolocation - PD Place Cache PDPlaceCache.db

Changes

  • v1 __artifacts__ → v2; context form; pylint 10.00.
  • Timestamps → aware UTC via convert_cocoa_core_data_ts_to_utc (Mac absolute time, seconds since 2001). PDPlaceCache already used the Cocoa epoch in SQL; AP.db createtime assumed Cocoa (same geod family, noted in notes). Time columns marked ('datetime').
  • get_sqlite_db_records + does_table_exist_in_db helpers instead of manual cursors.
  • geodPDPlaceCache: place strings now joined with newlines (was <br> + html_escape=False).
  • context.get_relative_path() on the source.

Validation

  • ast.parse OK; 0 legacy refs; no cross-module imports; names unique.
  • Reserved-word audit: both header sets create SQLite tables cleanly.
  • pylint (CI config): 10.00/10 both.
  • Functional test on fixture DBs: Cocoa→UTC conversion verified (725846400 → 2024-01-02), place strings extracted + sorted, source relative.

…VA, context form)

geod/location cluster (2 simple AP.db / PDPlaceCache.db artifacts).

- v1 __artifacts__ -> v2; context single-arg form; pylint 10.00.
- Timestamps converted to aware UTC with convert_cocoa_core_data_ts_to_utc
  (Mac absolute time / Cocoa seconds since 2001). PDPlaceCache already used the
  Cocoa epoch in SQL; AP.db createtime assumed Cocoa (same geod family) and
  noted as such.
- Marked the time columns as ('datetime'); use get_sqlite_db_records +
  does_table_exist_in_db helpers instead of manual cursors.
- geodPDPlaceCache: join pdplacelookup/pdplaces, extract the place strings and
  join with newlines (was '<br>' + html_escape=False).
- context.get_relative_path() on the returned source; reserved-word audited.
- Drop base64/json/sqlite3/os/version/strings(unused in apps)/ArtifactHtmlReport/
  tsv/timeline/logfunc/is_platform_windows.
@abrignoni abrignoni merged commit 867d662 into main Jun 23, 2026
1 check passed
@abrignoni abrignoni deleted the convert-geod-cluster branch June 23, 2026 19:58
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