Repository navigation
feat(ingest/boomi): add process lineage from connector shapes and process calls - #20891
acrylJonny wants to merge 13 commits into
Conversation
PR SummaryOverview A new Docs, connector registry ( Reviewed by Cursor Bugbot for commit 8625e1f. Bugbot is set up for automated code reviews on this repo. Configure here. |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
2 issues found across 32 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="metadata-ingestion/src/datahub/ingestion/source/boomi/config.py">
<violation number="1" location="metadata-ingestion/src/datahub/ingestion/source/boomi/config.py:36">
P2: Per-connection environments bypass the source environment normalization, so configuring `env: "dev"` creates dataset URNs with a different environment from the source's canonical `DEV` URNs. Validate and normalize this override with the same `EnvConfigMixin` environment rules before using it.</violation>
</file>
<file name="metadata-ingestion/tests/integration/boomi/test_boomi.py">
<violation number="1" location="metadata-ingestion/tests/integration/boomi/test_boomi.py:636">
P2: Custom agent: **Enforce Strict Maintainability Standards**
The component-cache assertions filter request history with `if "/component/" in r.path`, but the client requests `Component/{id}` with a capital C (`OBJECT_COMPONENT = "Component"` in boomi/constants.py, used in `get_component_xml`), and the mocks register the same capital-C paths. urlsplit preserves path case, so `r.path` never contains the lowercase substring: `component_gets` stays empty and `assert component_gets.count("conn-erp") == 1` fails (0 != 1), or the check silently validates nothing. Match the actual path case (`"/Component/"`) or compare case-insensitively.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Bundle ReportChanges will increase total bundle size by 155 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: datahub-react-web-esmAssets Changed:
Files in
|
|
✅ Meticulous spotted 0 visual differences across 30 screens tested: view results. Meticulous evaluated ~18 hours of user flows against your PR. Expected differences? Click here. Last updated for commit |
Initial JS bundle size ➡️
|
Boot web vitals (no backend)Unauthenticated /login against the two dist/ trees from this job. No GMS — this is eager JS, not search/dataset payload. Lantern, desktop, 1x CPU. Does not forecast fleet p75; do not gate on LCP. Web-vitals A/B — base (ce3fecd) (A) vs pr (8625e1f) (B)Lighthouse 12.8.2, throttling simulate (cpu 1x, rtt 40 ms, 10240 kbps). Form factor: desktop. Cache: cold (fresh incognito context per run). target n=3/build, 1 warm-up discarded, alternating A,B. Boot-only (no GMS). Unauthenticated login route — eager JS/CSS/font transfer and parse, not search/dataset payload. Do not treat as a fleet p75.
|
| metric | A p50 | B p50 | Δ p50 | Δ% | A p95 | B p95 |
|---|---|---|---|---|---|---|
| fcp | 843 ms | 840 ms | -3 ms | -0.3% | 845 ms | 842 ms |
| lcp | 1288 ms | 1284 ms | -4 ms | -0.3% | 1290 ms | 1287 ms |
| cls | 0.0000 | 0.0000 | 0.0000 | — | 0.0000 | 0.0000 |
| tbt | 6 ms | 5 ms | 0 ms | -0.0% | 8 ms | 6 ms |
| tti | 1289 ms | 1285 ms | -3 ms | -0.3% | 1291 ms | 1288 ms |
| ttfb | 1 ms | 1 ms | 0 ms | -27.3% | 1 ms | 1 ms |
| transferredBytes | 1077.2 KB | 1077.2 KB | 0.0 KB | +0.0% | 1077.2 KB | 1077.2 KB |
| mainThread | 237 ms | 235 ms | -2 ms | -0.8% | 291 ms | 251 ms |
| bootup | 122 ms | 123 ms | 1 ms | +0.5% | 123 ms | 128 ms |
Resource transfer by type (p50):
| type | A bytes | B bytes | Δ bytes | A requests | B requests |
|---|---|---|---|---|---|
| document | 1.3 KB | 1.3 KB | -0.0 KB | 1 | 1 |
| script | 645.4 KB | 645.4 KB | 0.0 KB | 8 | 8 |
| stylesheet | 3.0 KB | 3.0 KB | 0.0 KB | 2 | 2 |
| image | 48.7 KB | 48.7 KB | 0.0 KB | 1 | 1 |
| media | 257.3 KB | 257.3 KB | 0.0 KB | 1 | 1 |
| font | 106.6 KB | 106.6 KB | 0.0 KB | 3 | 3 |
| other | 0.0 KB | 0.0 KB | 0.0 KB | 0 | 0 |
LCP element A: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub
LCP element B: div > div.sc-fpAkvV > div.sc-pRPz > p.sc-pNWdM — Welcome to DataHub
These numbers rank changes and gate regressions against the measured origin(s). They do not sum across PRs and do not forecast any fleet-wide production number.
56f2a18 to
58946c2
Compare
58946c2 to
4472096
Compare
4472096 to
2afcbf6
Compare
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
276feea to
0e3509b
Compare
…cess calls Resolves each process's connector shapes to dataset lineage on its DataJob. Read/write direction comes from the operation component, not the shape's actionType. Platforms resolve from connection_to_platform, then the parsed connection (legacy Database driverId or JDBC URL, Database V2 JDBC URL, Salesforce), then connection_type_platform_map. Legacy Database profile SQL and Database V2 queries go through SQL parsing; Database V2 objectTypeId, Salesforce objects and mapped generic connectors use the operation's object. Process Call shapes become inputDatajobs edges to emitted child processes. Unresolved shapes are counted and reported once per cause rather than turned into guessed URNs. Connection, operation and profile components are cached so shared components are fetched once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l locales Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ep lineage on fetch failures - Read the legacy Database operation's profile from its ReadProfile or WriteProfile child, as Boomi documents it, keeping the attribute forms as a fallback. Fixtures now use the documented shape. - When a connection, operation or profile cannot be read, leave out the process's dataJobInputOutput so lineage from an earlier run is not replaced by a partial set. Such processes are listed in lineage_processes_incomplete. - Count unreadable database profiles as component_unreadable, not no_table. - Validate and uppercase the per-connection env like EnvConfigMixin does. - Clarify which connectors produce lineage and how the type map overrides the non-dataset skip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o-tier
A legacy Database connection with driverId="custom" stores urlFormat as
a template (jdbc:postgresql://{0}:{1}/{2}{3}) and keeps host, port,
dbname and additional as separate attributes. The template was parsed
as-is, so the database became the literal "{2}{3}". The placeholders are
now filled first, and a leftover placeholder is never used as the
database.
Database V2 MySQL connections repeat the database as schemaName, which
produced db.db.table URNs. For MySQL and MariaDB the schemaName is now
the database.
Both shapes come from a live Boomi account; the docs now say the
lineage shapes were validated against one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The integration test registers the connection, operation and profile components captured from a Boomi trial account: a legacy Database connection with a custom PostgreSQL driver, Database V2 MySQL table and query operations, a Salesforce query, a dynamic-insert write profile, and HTTP, Disk and SFTP connectors that are skipped. A synthetic process built from the same XML covers a listen shape, a table-only SQL Server profile, a mapped Snowflake connector, an unsupported connector and a call to a filtered process. Unit test XML follows the live shapes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the connector's own JDBC URL parser with parse_jdbc_url from common/jdbc and drop the duplicated JDBC_* constants. Boomi keeps its own rules on top: custom-driver URL templates are filled before parsing, a placeholder left in the template is never a database, Oracle drops the SID or service, and MySQL/MariaDB stay two-tier. The boomi unit tests now cover only those rules; URL format coverage lives with the shared parser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lineage parses Database connector SQL with datahub.sql_parsing, so a standalone install of the boomi extra failed to import without sqlglot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…JDBC URL Connections other than legacy Database, Database V2 and Salesforce are scanned for a field whose value is a JDBC URL, so connectors such as Snowflake resolve their platform, database and schema without a recipe mapping. Operations of these connectors parse a SQL field when present. More than one JDBC URL or SQL statement is skipped and reported, and connection_type_platform_map still wins over a disagreeing URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kipped Also assert the shared Snowflake JDBC connection is fetched once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0e3509b to
d5f36f9
Compare
# Conflicts: # datahub-web-react/src/app/ingest/source/builder/sources.json
Smart test selectionPlaywright E2E testsThis run:
Specs selected because of this PR (18)
Add the commit |
| pending.flow.urn, PROCESS_JOB_ID | ||
| ) | ||
| for pending in pending_jobs: | ||
| yield self._make_process_job(pending, process_jobs) |
There was a problem hiding this comment.
Job emission lacks per-process isolation
Medium Severity
DataJobs are built in a second loop that is no longer inside the per-process try/except. A failure in _make_process_job stops remaining jobs after those processes' DataFlows were already yielded and counted in processes_emitted and process_jobs. Call edges can then point at jobs this run never emitted.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit e7856e6. Configure here.
i18n locale parityStatus:
Per-key detail is in the job summary of the ./gradlew :datahub-web-react:yarnI18nParityCheck # all locales
cd datahub-web-react && yarn check-i18n-parity --lang de # one locale |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8625e1f. Configure here.
| and sub_type in NON_DATASET_SUBTYPES | ||
| ): | ||
| self.report.lineage_skipped_subtypes[sub_type] += 1 | ||
| return |
There was a problem hiding this comment.
Skipped connectors mark lineage incomplete
High Severity
Non-dataset connectors such as HTTP, disk, FTP, SFTP, and mail are fetched before the skip check. If that fetch fails, _component_unreadable marks the whole process incomplete, so _resolve_lineage drops every dataset edge and process-call edge for that process. Folder-restricted or deleted HTTP/disk connections are common on processes that also have database connectors; a 403/404 on the skipped connection omits lineage that already resolved. shape.connector_type and connection_to_platform are available before the fetch, so these shapes can be skipped without treating the failure as incomplete.
Reviewed by Cursor Bugbot for commit 8625e1f. Configure here.
Meticulous Agent Swarm
Tested on commit
|




Summary
Stacked on #20889. Adds lineage to the
boomisource.Each process's
connectoractionshapes resolve to dataset lineage on itsprocessDataJob, andprocesscallshapes becomeinputDatajobsedges.Direction. Read/write comes from the operation component, not the shape's
actionType. Real exports useGet,GET,Send,UPSERT,QUERY,EXECUTE,ListenandProducethere.*GetAction,QUERYandGETmean read.*SendAction,CREATE,INSERT,UPSERT,UPDATE,DELETEandEXECUTEmean write.Platform resolution, first match wins:
connection_to_platform[<connection component id>].driverIdor custom JDBC URL, Database V2 JDBC URL, or Salesforce.connection_type_platform_map[<subType>].Tables
create_lineage_from_sql_statements. Falls back toDBStatement@tableName.objectTypeId, or thequeryfield through SQL parsing.connection_type_platform_mapobjectTypeId. Experimental.Unresolved shapes are counted by reason and reported once per cause. URNs are never built from guessed values. Connection, operation and profile components are cached, so shared components are fetched only once.
Behaviour changes:
dataJobInputOutputis no longer emitted wheninclude_lineage: falseor when the process XML can't be read. That avoids overwriting existing lineage with an empty aspect.Known limitation. For write SQL such as
INSERT ... SELECT, only the target table is kept. The source tables it selects from are not added as inputs.Validation status
The XML shapes match Boomi's documented component structure and the shape of real exported components:
bns:root withxmlns=""children. They haven't been checked against a live account yet. Still unconfirmed:objectTypeIdvalues.Testing
🤖 Generated with Claude Code
Summary by cubic
Adds process lineage to the
boomisource: connector action shapes resolve to dataset lineage on each process's DataJob, and process call shapes becomeinputDatajobsedges to the called processes.actionType.connection_to_platform, then the parsed connection (legacy DatabasedriverIdor JDBC URL, Database V2 JDBC URL, Salesforce, or a JDBC URL field in any other connection), thenconnection_type_platform_map.connection_to_platformandconnection_type_platform_mapmap connections and subtypes to platforms, with optionalplatform_instance,env,database, anddefault_schemaoverrides; the type map wins over a disagreeing JDBC URL.ReadProfile/WriteProfilechild elements, with the attribute form as fallback; Database V2 tables come fromobjectTypeIdor query SQL parsing; Salesforce from the operation's object name; other JDBC-URL connections from a SQL field when present.datahub.sql_parsing, addingsqlglotto theboomiplugin dependencies.host,port,dbname, andadditionalbefore parsing; Oracle drops its SID/service, and Database V2 MySQL/MariaDB usesschemaNameas the database.dataJobInputOutputis left out so lineage from an earlier run isn't overwritten; such processes are listed inlineage_processes_incomplete.dataJobInputOutputis skipped wheninclude_lineage: falseor the process XML can't be read.INSERT ... SELECTkeeps only the target table; selected source tables are not added as inputs.Written for commit 8625e1f. Summary will update on new commits.