Skip to content

Fix nightly Python failures: relock airflow-apis uv.lock, drop stale Informix state reset - #39396

Merged
ulixius9 merged 1 commit into
mainfrom
ulixius9/python-airflow-check
Dec 1, 2026
Merged

ulixius9 merged 1 commit into
mainfrom
ulixius9/python-airflow-check

Conversation

@ulixius9

@ulixius9 ulixius9 commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Fixes the nightly airflow-apis failure and the tests/integration/informix/test_stored_procedures.py errors 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 the mcp extra to openmetadata-ingestion but did not relock airflow-apis, so make -C openmetadata-airflow-apis test (uv run --locked) failed with "The lockfile at uv.lock needs to be updated". Relocked with uv 0.13.4 (the CI pin); the diff is only the new mcp requirement and extra.
  • Informix stored-procedure IT — the test reset DatabaseServiceSource.stored_procedure_source_state.clear() between its two workflow runs. That state is now a per-instance PerSourceState (ADR:2026-10-30-topology-source-run-state-is-per-instance), so the class attribute is the descriptor and .clear() raised AttributeError in the fixture, erroring all 3 tests. The reset is no longer needed: run_workflow calls MetadataWorkflow.create(config), which builds a new source with empty state.

Type of change:

  • Bug fix

High-level design:

N/A — small change (a lockfile refresh and a 4-line test fix).

Tests:

Use cases covered

  • airflow-apis test session resolves its locked environment again.
  • A routine excluded by storedProcedureFilterPattern on a second run is marked deleted; the others stay.

Unit tests

Not applicable — no source code changed.

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • uvx [email protected] lock --check in openmetadata-airflow-apis/ → Resolved 316 packages (lock current).
  • python -m pytest tests/integration/informix/test_stored_procedures.py against a local server built from 992038676ed (./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 with AttributeError: 'PerSourceState' object has no attribute 'clear'.

Playwright (UI) tests

  • Not applicable (no UI changes).

Manual testing performed

  1. Pulled the failed job logs from the nightly run and matched each error to this diff (above).
  2. Checked that 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:

  • I have read CONTRIBUTING.md (the pre-review gate) and the contributor docs.
  • My PR title is Fixes <issue-number>: <short explanation> — N/A, test fix (skip-pr-checks).
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above — N/A, test fix.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: N/A.
  • For a UI feature or feature task: N/A.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md and fixed every 🔴 finding, or answered it on the line below.
    • Reviewed 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.
  • Decision check: no new decision.

🤖 Generated with Claude Code

… 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).
@ulixius9 ulixius9 added the skip-pr-checks Bypass PR metadata validation check label Dec 1, 2026
@gitar-bot

gitar-bot Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Relocking adds the mcp extra to airflow-apis dependency metadata, which could alter selected environments; the Informix change removes an obsolete test reset.

Relocks the openmetadata-airflow-apis/uv.lock to add the mcp requirement and extra introduced in #39226, and removes the stale DatabaseServiceSource.stored_procedure_source_state.clear() reset from the Informix stored-procedure integration test. No issues found.

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

@ulixius9
ulixius9 marked this pull request as ready for review December 1, 2026 09:33
@ulixius9
ulixius9 requested a review from a team as a code owner December 1, 2026 09:33
@ulixius9
ulixius9 requested review from a team and mohittilala and a balanced review from Copilot and removed request for a team December 1, 2026 09:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@ulixius9
ulixius9 merged commit 4e8fa38 into main Dec 1, 2026
33 checks passed
@ulixius9
ulixius9 deleted the ulixius9/python-airflow-check branch December 1, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants