Repository navigation
Fix nightly Python failures: relock airflow-apis uv.lock, drop stale Informix state reset - #39396
Conversation
… state reset - openmetadata-airflow-apis/uv.lock: relock with uv 0.13.4 for the mcp extra ingestion gained in #39226; airflow-apis tests ran with --locked and failed. - Informix stored-procedure IT: stored_procedure_source_state is now a per-instance PerSourceState, so the class-level .clear() raised AttributeError and is no longer needed (each workflow builds a fresh source).
Code Review ✅ Approved 🟡 Medium riskRelocking adds the mcp extra to airflow-apis dependency metadata, which could alter selected environments; the Informix change removes an obsolete test reset. Relocks the 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 |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the scoped lockfile and Informix fixture changes, though reported tests were not independently rerun and live CI was not checked.
No open issues 🎉
What changed in this PR
Fixes two nightly Python test failures without changing production logic: stale dependency metadata in the Airflow API lockfile and an obsolete state reset in the Informix integration fixture.
Changes:
- Synchronizes locked ingestion metadata with the MCP extra introduced in #39226.
- Removes the class-level stored-procedure state reset and unused import; each workflow creates a fresh source instance.
Placement: Changes remain in Airflow API test dependencies and the Informix two-run deletion test.
Trade-off: none.
Recommendation: Approve the scoped changes based on the supplied evidence; reported test results were not independently rerun, and live CI was not checked.
| File | Description |
|---|---|
openmetadata-airflow-apis/uv.lock |
Adds MCP requirement and extra metadata to match ingestion declarations. |
ingestion/tests/integration/informix/test_stored_procedures.py |
Removes the obsolete shared-state reset while retaining the filtering and deletion test flow. |
Review effort: Balanced
Describe your changes:
Fixes the nightly
airflow-apisfailure and thetests/integration/informix/test_stored_procedures.pyerrors on python-integration shard-3 (every Python version, MySQL and Postgres) — ci-nightly run 46553147189.openmetadata-airflow-apis/uv.lock— Fixes #39223: MCP connector uses the official MCP Python SDK #39226 added themcpextra toopenmetadata-ingestionbut did not relock airflow-apis, somake -C openmetadata-airflow-apis test(uv run --locked) failed with "The lockfile atuv.lockneeds to be updated". Relocked with uv 0.13.4 (the CI pin); the diff is only the newmcprequirement and extra.DatabaseServiceSource.stored_procedure_source_state.clear()between its two workflow runs. That state is now a per-instancePerSourceState(ADR:2026-10-30-topology-source-run-state-is-per-instance), so the class attribute is the descriptor and.clear()raisedAttributeErrorin the fixture, erroring all 3 tests. The reset is no longer needed:run_workflowcallsMetadataWorkflow.create(config), which builds a new source with empty state.Type of change:
High-level design:
N/A — small change (a lockfile refresh and a 4-line test fix).
Tests:
Use cases covered
storedProcedureFilterPatternon a second run is marked deleted; the others stay.Unit tests
Not applicable — no source code changed.
Backend integration tests
Ingestion integration tests
uvx [email protected] lock --checkinopenmetadata-airflow-apis/→Resolved 316 packages(lock current).python -m pytest tests/integration/informix/test_stored_procedures.pyagainst a local server built from992038676ed(./docker/run_local_docker.sh -m no-ui -i false -d mysql) and the Informix testcontainer → 3 passed in 31s. Before this change it failed in all 6 nightly shard-3 jobs withAttributeError: 'PerSourceState' object has no attribute 'clear'.Playwright (UI) tests
Manual testing performed
run_workflow(ingestion/tests/integration/conftest.py) builds a fresh workflow (and source) per call.UI screen recording:
Not applicable — CI and test fix, no UI.
Checklist:
Fixes <issue-number>: <short explanation>— N/A, test fix (skip-pr-checks).Fixes #<issue-number>above — N/A, test fix.REVIEW.mdand fixed every 🔴 finding, or answered it on the line below.992038676ed. No 🔴. Placement: the lock belongs to airflow-apis; the test fix is in the test that used the old class-level API. Trade-off: none. Recommendation: merge.🤖 Generated with Claude Code