Skip to content

Fixes #37631: Run Data 360 Pipeline lineage and run status in the metadata agent - #37632

Merged
Khairajani merged 19 commits into
mainfrom
fix/data360-pipeline-reliability
Nov 17, 2026
Merged

Khairajani merged 19 commits into
mainfrom
fix/data360-pipeline-reliability

Conversation

@Khairajani

@Khairajani Khairajani commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #37631

The Data 360 Pipeline connector was the only pipeline connector with separate Lineage and Usage agents. The UI and AutoPilot build those with database settings, so they crashed, and the lineage run failed trying to delete pipelines as the lineage bot. Lineage and run status now come from the metadata agent, as for every other pipeline service. The same PR fixes the Test Connection and listing issues found in release testing.

Type of change:

  • Bug fix

High-level design:

  • base.py is the old metadata.py (listing, pipelines, tags), renamed to Data360PipelineBaseSource. The only changes are the status filter and the dedupe.
  • lineage.py and operational.py are now mixins. metadata.py combines them into the metadata source.
  • The old lineage and usage sources stay registered, so agents and CLI configs that already exist keep working. The lineage one no longer deletes pipelines.
  • supportsLineageExtraction / supportsUsageExtraction stay in the schema, so stored connections still validate, but they now default to false. A 2.1.0 data migration sets them to false on existing services, so the UI and AutoPilot stop offering the broken agents.
  • salesforceDomain is required with no login default (already on main via Fixes 37626: Data 360 connection and filter reliability #37627); on top of that, the pipeline connection refuses login/test before logging in, with a My Domain hint.

Other fixes:

  • Test Connection logs in inside CheckAccess, so a bad login is a failed step with its reason, not an exception before any result.
  • Probes read one page only.
  • login / test are refused with a My Domain hint.
  • Only INACTIVE objects are filtered, so PROCESSING and ERROR objects are kept.
  • Streaming transforms skip run history, which Data 360 doesn't keep (404).
  • A name listed twice is yielded once.
  • The status tag is dropped.
  • Docs: help page and example YAML.

Tests:

Use cases covered

Live before/after: main and this branch run against a Data 360 org and a 2.1 server, each on a fresh pipeline service, as ingestion-bot and lineage-bot.

  • Test Connection with a bad secret or login: raised before any result → failed CheckAccess with the reason.
  • Test Connection probe calls: 23 → 3.
  • One metadata run: pipelines only → pipelines, run status and lineage edges (14), Success.
  • Lineage agent as lineage-bot: Failed ([Delete] not allowed) → Success.
  • New service: supportsLineageExtraction / supportsUsageExtraction stored true → false.
  • PROCESSING streaming transform: skipped → ingested, no run-status failure.
  • Status tag: on every pipeline → gone.
  • Migration: run twice on MySQL 8.3 and Postgres 15. It flips only Data 360 Pipeline services and leaves services without a connection alone.

Unit tests

  • Added/updated: test_data360pipeline*.py (new test_data360pipeline_connection.py), data360/test_client.py, data360/test_connection.py. 130 pass.

Backend integration tests

  • Not applicable. make java_affected --scope focused selects nothing. The spec module compiles.

Ingestion integration tests

  • Not applicable. No integration tests exist for this connector; covered by the live runs above.

Playwright (UI) tests

  • Not run locally. Generated schemas changed, so the impact map selects many specs. The Data360Pipeline connector-form visual snapshot is expected to change: Salesforce Domain is now required and empty.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Decision check: ADR:2026-11-12-data360-pipeline-lineage-and-run-status-run-in-the-metadata-agent, ADR:2026-11-12-data360-salesforce-domain-is-a-required-my-domain (v2 amendment).
  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable defects were found.

Summary

Moves Data 360 Pipeline lineage and run status into the metadata agent while retaining the older source classes.

  • Data 360 pipeline runs now include lineage and run status.
  • Data 360 keeps live pipelines through partial and changing listings.
  • Data 360 connection checks give focused My Domain errors.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Metadata agent] --> B[List and deduplicate pipelines]
  B --> C[Create or update pipeline]
  C --> D[Extract run status]
  D --> E{includeLineage enabled?}
  E -->|Yes, database service configured| F[Extract pipeline lineage]
  E -->|No| G[Skip lineage]
  B --> H{All listings complete?}
  H -->|Yes| I[Reconcile stale pipelines]
  H -->|No| J[Skip deletion]
Loading

Reviews (3) · Last reviewed commit: "Merge branch 'main' into fix/data360-pip..." · Reviewed by Greptile

…etadata agent

The separate Lineage and Usage agents were built with database settings and
could not run on a pipeline service, and the lineage run failed trying to
delete pipelines. Lineage and run status now come from the metadata agent,
as for every other pipeline service; the old sources stay for existing agents.

Also: Test Connection logs in inside CheckAccess and probes one page, the
domain must be the org's My Domain, busy or failing objects are no longer
filtered out, duplicate listings are dropped and the status tag is gone.
Data 360 keeps no run history for a streaming transform and answers with a
404, which failed the metadata run once those transforms stopped being
filtered out.
@Khairajani
Khairajani requested a review from a team as a code owner November 12, 2026 07:04
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

…reliability

# Conflicts:
#	bootstrap/sql/migrations/native/2.1.0/mysql/postDataMigrationSQLScript.sql
#	bootstrap/sql/migrations/native/2.1.0/postgres/postDataMigrationSQLScript.sql
@Khairajani Khairajani added the safe to test Add this label to run secure Github workflows on PRs label Nov 12, 2026
@Khairajani
Khairajani requested a review from a team as a code owner November 13, 2026 07:31
@Khairajani
Khairajani requested a review from Rohit0301 November 13, 2026 07:31
Khairajani and others added 3 commits November 13, 2026 14:19
…reliability

# Conflicts:
#	ingestion/src/metadata/examples/workflows/data360pipeline.yaml
#	ingestion/src/metadata/ingestion/source/pipeline/data360pipeline/connection.py
#	openmetadata-spec/src/main/resources/json/schema/entity/services/connections/pipeline/data360PipelineConnection.json
#	openmetadata-ui/src/main/resources/ui/public/jsons/connectionSchemas/connections/pipeline/data360PipelineConnection.json
#	openmetadata-ui/src/main/resources/ui/public/jsons/connectionSchemas/connections/serviceConnection.json
#	openmetadata-ui/src/main/resources/ui/public/locales/en-US/Pipeline/Data360Pipeline.md
#	openmetadata-ui/src/main/resources/ui/src/generated/api/automations/createWorkflow.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/api/services/createPipelineService.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/api/services/ingestionPipelines/createIngestionPipeline.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/entity/automations/testServiceConnection.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/entity/automations/workflow.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/pipeline/data360PipelineConnection.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/serviceConnection.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/entity/services/ingestionPipelines/ingestionPipeline.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/entity/services/ingestionPipelines/serviceProgressEvent.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/entity/services/pipelineService.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/testSuitePipeline.ts
#	openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/workflow.ts
#	openmetadata-ui/src/main/resources/ui/src/jsons/ingestionSchemas/testSuitePipeline.json
#	openmetadata-ui/src/main/resources/ui/src/jsons/ingestionSchemas/workflow.json
Khairajani and others added 2 commits November 16, 2026 14:04
…d drop its old status tags

The connector no longer tags a pipeline with its status, but an ingestion PUT never removes a tag, so the 2.1.0 data migration deletes the automated Data360.ACTIVE label from Data 360 Pipeline pipelines.
@gitar-bot

gitar-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk 1 closed / 1 findings

The 2.1.0 migration deletes Data360.ACTIVE tag records and disables extraction flags on existing services, potentially removing labels and changing agent availability.

Moves Data 360 Pipeline lineage and run status into the metadata agent, fixing the crashing separate Lineage and Usage agents, with Test Connection and listing fixes. Resolved: the required My Domain salesforceDomain contract is now documented in the new ADR.

✅ 1 closed
✅ Quality: Required My Domain salesforceDomain contract is not in the new ADR

📄 openmetadata-spec/src/main/resources/json/schema/entity/services/connections/pipeline/data360PipelineConnection.json:43-47 📄 openmetadata-spec/src/main/resources/json/schema/entity/services/connections/pipeline/data360PipelineConnection.json:92-96 📄 ingestion/src/metadata/ingestion/source/pipeline/data360pipeline/connection.py:48-62 📄 docs/decisions/2026-11-12-data360-pipeline-lineage-and-run-status-run-in-the-metadata-agent.md:16-25
This PR changes a JSON Schema contract: salesforceDomain loses its login default and becomes required, and the connection now refuses login/test with InvalidDomainException. That rule comes from the description: "salesforceDomain is now required with no login default, so a CLI config without it fails validation instead of failing at login" and "login and test are refused with a My Domain hint". The only record added here, 2026-11-12-data360-pipeline-lineage-and-run-status-run-in-the-metadata-agent.md, covers which agent extracts lineage and run status. It says nothing about the domain, and adding one record does not cover a second decision. The record should say: "Data 360 Pipeline authenticates only with OAuth client credentials on the org's My Domain. salesforceDomain is required, has no default, and the generic login/test hosts are refused before any login attempt." Without it, a later change could restore the login default (which matches the Data 360 database connector) and break stored configs without anyone noticing.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Khairajani
Khairajani enabled auto-merge (squash) November 16, 2026 15:15
@Khairajani
Khairajani requested a review from IceS2 November 17, 2026 06:12
@Khairajani
Khairajani merged commit c74f662 into main Nov 17, 2026
61 of 64 checks passed
@Khairajani
Khairajani deleted the fix/data360-pipeline-reliability branch November 17, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Salesforce Data 360 Pipeline: Lineage/Usage agents crash, lineage runs fail, Test Connection hangs on bad credentials

4 participants