Skip to content

Convert notificationsDuet + notificationsXII to artifact_processor (LAVA, context form)#1566

Merged
abrignoni merged 1 commit into
mainfrom
convert-notifications-duet-xii
Jun 23, 2026
Merged

Convert notificationsDuet + notificationsXII to artifact_processor (LAVA, context form)#1566
abrignoni merged 1 commit into
mainfrom
convert-notifications-duet-xii

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Summary

Notifications cluster (2 artifacts) → @artifact_processor, context form.

  • notificationsDuet — was a hybrid (v2 header + an undecorated function that built a per-file ArtifactHtmlReport and called lava_process_artifact/lava_insert_sqlite_data by hand). Now decorated (context form), 'function' key dropped, output_types set to standard (was none), single datetime-marked header set, wrapper emits everything. Hardened the blackboxprotobuf decode + .get() fallbacks on the proto message.
  • notificationsXII — v1 __artifacts__ → v2, context form. Robust file discovery (iterate files_found, glob dirs) instead of files_found[0]+glob; AppNotificationCreationDate returned as aware-UTC datetime; guarded plist deserialize; merged the two bundle-name helpers.
  • Both: context.get_relative_path() on the source; reserved-word audit run on both header sets; pylint 10.00.

Validation

  • ast.parse OK; 0 legacy refs; no cross-module imports.
  • Reserved-word audit: both header sets create SQLite tables cleanly.
  • pylint (CI config): 10.00/10 both.
  • Both load: decorated, key matches function name, context-form, no legacy/function registry.

…AVA, context form)

- notificationsDuet: finish the hybrid (was a v2 header + undecorated function
  doing a per-file ArtifactHtmlReport AND a manual lava_process_artifact/
  lava_insert_sqlite_data). Decorate with the context form, drop the 'function'
  key, set output_types 'standard' (was 'none'), use the single datetime-marked
  header set, and let the wrapper emit HTML/TSV/timeline/LAVA. Harden the
  blackboxprotobuf decode (try/except) and use .get() fallbacks on the proto
  message. SEGB timestamps already aware-UTC.
- notificationsXII: v1 __artifacts__ -> v2, context form. Robust file discovery
  (iterate files_found, glob dirs) instead of files_found[0]+glob; AppNotification
  CreationDate returned as an aware-UTC datetime; guarded plist deserialize;
  merged the two bundle-name helpers.
- Both: context.get_relative_path() on the returned source; reserved-word audit
  run on both header sets; pylint 10.00. Drop ArtifactHtmlReport/tsv/timeline/
  logfunc/is_platform_windows/manual-lava imports.
@abrignoni abrignoni merged commit 0dbc1a5 into main Jun 23, 2026
1 check passed
@abrignoni abrignoni deleted the convert-notifications-duet-xii branch June 23, 2026 19:18
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