Repository navigation
Fixes 34856: Parse run_pipeline trigger response as PipelineServiceClientResponse - #35366
Conversation
❌ PR checklist incompleteThis 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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi @stout-yeoman @open-metadata/ingestion, could you please add the |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ Approved🔴 High risk · Changing run_pipeline() from IngestionPipeline to PipelineServiceClientResponse alters the SDK interface and could break callers that access pipeline-specific fields. Fixes VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
aa3b2c7



Describe your changes:
Fixes #34856
I worked on this because
OpenMetadata.run_pipeline()always raises after successfully triggering a run. ThePOST /v1/services/ingestionPipelines/trigger/{id}endpoint returns aPipelineServiceClientResponse(code,reason,platform,version,runId), but the SDK parsed it as anIngestionPipeline. That failed withKeyError: 'sourceConfig'and then a pydanticValidationError, so callers could not tell a failed trigger from a successful one.run_pipeline()now validates the response asPipelineServiceClientResponseand returns it, so callers can readcode,reason,platformandrunId.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
runId(e.g. Kubernetes) returns the parsed trigger response instead of raising.runId(e.g. Airflow) returns the parsed response withrunIdunset.Unit tests
ingestion/tests/unit/metadata/ingestion/ometa/test_ingestion_pipeline_mixin.pymainwith the reportedKeyError/ValidationErrorand pass with this change.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
main:run_pipeline()raisesKeyError: 'sourceConfig'.run_pipeline()returns aPipelineServiceClientResponsewith the expectedcode,platformandrunId.ruff checkandruff format --checkpass on the changed files.UI screen recording:
Not applicable — ingestion SDK fix with no UI impact.
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.
For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable).
I have added tests (unit / integration / Playwright as applicable) and listed them above.
Decision check: this PR aligns the SDK with the existing API contract and does not introduce a new decision.
I have added a test that covers the exact scenario we are fixing.