feat(ingest/boomi): ingest process execution history

AC
3d ago
+3961-1006

Summary

Stacked on #20888. This adds Boomi execution history to the boomi source.

  • Boomi ExecutionRecords become DataProcessInstances whose template is the process's process DataJob.

  • The source runs one account-wide ExecutionRecord/query per window. The window is executionTime >= now - execution_history_days, and it is paged with queryMore.

  • Results are grouped by process and capped per process with max_executions_per_process, keeping the most recent runs. Runs of processes that were not ingested are skipped and counted.

  • Status mapping:

    Boomi statusResult
    COMPLETE, COMPLETE_WARNsuccess
    ERROR, ABORTEDfailure
    DISCARDEDskipped
    INPROCESS, STARTED, ENQUEUED, ABORTED_RECOVERINGstart event only
    anything elsestart event only, plus a report warning once per status
  • End time is executionTime + executionDuration, where the duration is in milliseconds. ["Long", n] values are handled.

  • Manual runs (exec_manual) are typed as ad hoc; all other runs are typed as scheduled.

  • execution_history_days is capped at 30, because Boomi purges execution history after 30 days by default.

  • A token without View Results gets a warning and the stage is skipped.

Testing

  • Unit tests cover:
    • Status mapping.
    • End-time calculation.
    • Per-process cap and ordering.
    • Skipping runs of processes that were not ingested.
    • The unknown-status warning.
    • The 403 and non-403 failure paths.
    • The window filter body.
  • The golden test now includes 14 executions across two pages and every status class. It reruns deterministically.

Checklist

  • PR title follows the Contributing Guideline
  • Tests added
  • Docs updated: View Results privilege, execution history, retention

🤖 Generated with Claude Code


Summary by cubic

Adds Boomi execution history to boomi, emitting each process's recent executions as run history on its DataJob. Source descriptions and docs now cover run history, retention, and the required View Results privilege.

  • History is enabled by default; the 7-day window is capped at 30 days, with up to 50 recent executions per process.
  • One account-wide query is paged and grouped by process. Runs of processes that weren't ingested are skipped, and the query is skipped entirely when no process was emitted.
  • Terminal statuses map to success, failure, or skipped. In-progress and unknown statuses get a start event only, and unknown-status warnings are de-duplicated case-insensitively. Finished runs without a duration record their result at the start time.
  • Manual runs are typed as ad hoc, and sub-process runs inherit their top-level run's type and are linked to it as a parent when that run is ingested in the same window.
  • Missing View Results skips history with a warning, and other API errors are reported as warnings so stale process removal still runs. A 400 "no access to any containers" response is treated as an account with no runtimes and recorded as info.