Skip to content

Refactor Python CI into event-owned workflows - #38105

Merged
tutte merged 82 commits into
mainfrom
ci-python-option2
Nov 25, 2026
Merged

tutte merged 82 commits into
mainfrom
ci-python-option2

Conversation

@IceS2

@IceS2 IceS2 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Split Python CI into event-owned ci-pr, ci-merge-queue and ci-nightly workflows. Each declares its workloads and dependencies and invokes reusable runners for one supplied Python version. Unit tests and checks run independently of the backend build; shared reporting remains reachable after test setup failures.

Type of change:

  • Improvement

High-level design:

Entrypoint Workloads, excluding preparation/status/reporting
ci-pr Highest-Python lint and units; lowest-Python types: 3 jobs
ci-merge-queue Lint, types, highest-Python units and six integration jobs: 9 jobs
ci-nightly Lint, types, three unit versions, eighteen integration jobs and seventeen connector jobs: 40 jobs
  • Share the backend build and classification model archives across consumers. Integration and connector jobs download the backend distribution rather than rebuild it.
  • Keep Make as the local entrypoint, Nox as profile/task owner and uv as the environment installer. Relevant host jobs install the pinned uv once and reuse its validated executable; persistent setup-uv caching stays disabled. Local commands reuse the matching version or provision the managed fallback.
  • Read supported versions and dependency profiles from ingestion/pyproject.toml. Nox reuses its loaded profile configuration and owns freshness checks and Python-only generation. Server preparation accepts the same explicit profile; all in-repository callers are migrated. Connector defaults live in ci-nightly.yml; jobs, matrices and expected results remain in their event entrypoints. scripts/python_ci.py reads versions, validates connector selections and verifies declared results.
  • Run types through make static-checks with an isolated typing profile. Exclude _openmetadata_testutils while retaining ingestion and Airflow-provider analysis. Static checks run no pytest suite; pytest remains a transitive runtime dependency through collate-sqlfluff.
  • Reduce helper regressions to behavioral coverage. Run them and the existing classifier tests once in the highest-Python nightly unit lane. PR and queue runs skip them; targeted execution for CI-changing PRs is deferred.
  • Skip the lint job on irrelevant PR/queue changes instead of allocating an idle runner. The status gate verifies selected success versus intentional skips; required check names are preserved. PR/queue call the highest version directly without singleton matrices.
  • Inline the single-consumer connector execution and nightly coverage preparation actions into their workflows.
  • Keep execution and reporting separate. A shared Nox test-process helper records actual pytest exit codes for unit, integration and connector suites; shell wrappers stream output. Shared reporting retains those exit codes, JUnit, logs and classifications after setup/test failures. Preserve required py-checkstyle and py-tests-status checks.
  • Match main's nightly unit/integration coverage producers: lowest-Python units and three MySQL shards. All twenty-one compatibility test jobs still run. CLI coverage is unchanged; combined coverage and Sonar publishing remain nightly-main only.
  • Remove duplicate host venv/pip preparation in Docker/API/package jobs. API setup generates models and installs the test profile directly. Publishing activates the environment after Make creates it. Compare Docker composite inputs with string values so ingestion setup runs when selected.
  • Keep source checkouts shallow where possible; merge-queue filtering deepens only when needed and Sonar retains SCM history. Preserve lightweight Playwright preparation and execution impact tracking.

API dependency resolution, Airflow image installers and release-branch Ruff compatibility remain separate installation paths. Classification archive preparation intentionally uses an isolated uv pip install.

Tests:

Unit tests and local checks

  • Latest focused Python regression run: 175 passed, covering tooling, coverage, helper/classifier and Playwright cache behavior. Real unit/integration and connector runs verify pytest exit codes 0/1/5, streamed output and subprocess coverage alongside locked installation and isolation behavior.
  • The helper suite has 24 behavioral cases, plus 12 classifier cases. Fake-Nox exit testing is replaced by six real unit/integration runs in the tooling suite. Relevant V2 offline meta tests: 77 passed.
  • Fresh Python 3.10 and 3.12 Nox hosts and target environments: cold/repeated installs passed; package selections, lockfile and application environment stayed unchanged.
  • Fresh real Python 3.10 setup: direct test-profile installation generated missing models without an explicit generation command or JavaScript parser output. Repeated test/dev installs and stable package selections passed. Both ingestion and managed APIs built wheel/sdist artifacts; all four passed twine check. Lockfile and the working application environment stayed unchanged. A local native-build cache mismatch was cleared before the successful retry.
  • Type-profile comparison retained all 9,842 production diagnostics unchanged while excluding forty-six helper files. Applicable basedpyright results: 0 errors, 150 warnings; application dependencies and the baseline remained unchanged.
  • Project Ruff checks/formatting passed; 3,221 files were already formatted. Core entrypoint/workload actionlint passed. The four extended Playwright/V2 workflows retain thirteen existing diagnostics; comparison found no new diagnostics and all migrated action inputs are valid. Repository workflow checks and git diff --check passed.
  • Local selector evaluation confirms four nightly unit/integration coverage uploads from twenty-one test jobs, and ingestion-only Docker preparation enabled for string true and skipped for false.

No application, API endpoint, connector implementation, schema, migration or UI rendering changes require new application integration tests or a UI recording. Live service startup, hosted artifact transfers and publishing execution remain GitHub validation; local checks do not establish merge readiness. No new line-coverage percentage is claimed for this orchestration change.

Manual validation in GitHub

  1. On a relevant PR, verify highest-Python lint/units and lowest-Python types, with no helper pytest step in the type job. On irrelevant changes, expect the lint job to be skipped without allocating a runner and the status gate to pass; lint-only changes still run lint. Confirm the required py-checkstyle and py-tests-status checks are satisfied. Exercise a setup failure after checkout and inspect the reporting summary/artifact.
  2. In the merge queue, verify six highest-Python integration jobs across two databases and three shards. Confirm units do not wait for the backend and path filtering uses the merge-group base SHA.
  3. After the new workflows are registered on the default branch, manually dispatch queue/nightly workflows on the desired ref. Start nightly with ["mysql"], then use the default connector list. Verify full version matrices, helper/offline meta tests only on the highest nightly unit version, four selected unit/integration coverage artifacts, connector reports and one reused backend distribution.
  4. Exercise API tests and Docker preparation/package builds in non-publishing jobs. Confirm cold environment creation and repeated ingestion preparation reuse pinned uv. Package/image release workflows publish artifacts and are not required to validate local build results.
  5. Verify nightly-main coverage/Sonar reporting, the 01:00 UTC schedule, failure notification, integration cleanup and Playwright fast/full setup.

Checklist:

  • Focused local evidence is recorded above; hosted checks remain explicit.
  • Self-review of the final follow-up diff against REVIEW.md: 84f5d7c.
  • Existing event ownership, required check names and four-worker unit default are preserved.
  • No separate design/spec document is committed.

RetriggerView in GreptileConfidence Score: 4/5

The PR still needs the previously reported antlr4 setup fix before merging.

Findings

  1. P1 Browser builds lose ANTLR ▶

Summary

Splits Python CI into event-owned workflows with shared build, environment, test, and reporting steps.

  • Each Python CI event selects the checks and test jobs it needs.
  • Shared runners prepare, run, and report Python test jobs.
  • Python tasks use configured dependency profiles and the pinned uv tool.
  • Playwright and other workflow callers keep using the renamed shared workflow.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  PR[Pull request] --> Plan[Select workloads]
  Queue[Merge queue] --> Plan
  Nightly[Nightly] --> Plan
  Plan --> Checks[Formatting and types]
  Plan --> Models[Classification models]
  Plan --> Backend[Shared backend build]
  Plan --> Image[Shared ingestion image]
  Models --> Units[Unit tests]
  Models --> Integration[Integration tests]
  Backend --> Integration
  Models --> Connectors[Connector tests]
  Backend --> Connectors
  Image --> Connectors
  Checks --> Status[Required status]
  Units --> Status
  Integration --> Status
  Connectors --> Status
Loading

Reviews (37) · Last reviewed commit: "Verify retained runner diagnostics when ..." · Reviewed by Greptile


Summary by Gitar

  • Airflow API CI:
    • Added standalone openmetadata-airflow-apis Nox/Makefile test flow with locked uv dependency group and JUnit/coverage output
  • Security check:
    • Allowed checks: write only for read-only PR workflow permission validation

This will update automatically on new commits.

@IceS2
IceS2 requested review from a team, akash-jain-10, harshach and tutte as code owners November 18, 2026 10:17
@IceS2 IceS2 added the skip-pr-checks Bypass PR metadata validation check label Nov 18, 2026
@IceS2
IceS2 requested a review from a team as a code owner November 18, 2026 10:17
@IceS2
IceS2 requested review from Khairajani and a balanced review from Copilot and removed request for Copilot November 18, 2026 10:17

@github-advanced-security github-advanced-security 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.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Comment thread .github/workflows/ci-pr.yml Resolved
Copilot AI balanced review requested due to automatic review settings November 19, 2026 09:30

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Comment thread .github/workflows/ci-merge-queue.yml Resolved
Copilot AI balanced review requested due to automatic review settings November 19, 2026 10:13

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@IceS2
IceS2 requested a review from a team as a code owner November 19, 2026 11:10
Copilot AI balanced review requested due to automatic review settings November 19, 2026 11:10

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 19, 2026 12:30

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 19, 2026 13:26

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 25, 2026 10:40

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@manerow manerow 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.

Thanks Pablo, both follow-ups are addressed. OK from my side, as long as py-checkstyle comes out of the merge-rules required checks at merge time and the companion PRs land together with this one.

Copilot AI balanced review requested due to automatic review settings November 25, 2026 10:58

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

ref: ${{ needs.plan.outputs.ref }}
python-version: ${{ needs.plan.outputs.python-lowest }}

py-tests-status:

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.

What is the point of this job? If the previous fail, the checks will fail and the user will get the feedback on the checks

Comment thread .github/workflows/ci-pr.yml Outdated
Comment on lines +60 to +94
py-static-checks:
name: py-static-checks
needs: plan
if: ${{ needs.plan.outputs.static == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
ref: ${{ needs.plan.outputs.ref }}
persist-credentials: false
fetch-depth: 1
- name: Run Python static checks
uses: ./.github/actions/python-static-checks
with:
python-version: ${{ needs.plan.outputs.python-lowest }}
check-types: ${{ needs.plan.outputs.python }}

python-unit:
needs: plan
if: ${{ needs.plan.outputs.python == 'true' }}
uses: ./.github/workflows/reusable-py-unit.yml
with:
python-version: ${{ needs.plan.outputs.python-highest }}
ref: ${{ needs.plan.outputs.ref }}
collect-coverage: false
prepare-models: true

airflow-apis:
needs: plan
if: ${{ needs.plan.outputs.airflow-apis == 'true' }}
uses: ./.github/workflows/reusable-py-airflow-apis.yml
with:
ref: ${{ needs.plan.outputs.ref }}
python-version: ${{ needs.plan.outputs.python-lowest }}

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.

Can these jobs be consolidated into 1 or max 2?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@tutte most of the PRs will either run python-unit or airflow-apis. Can we keep it separated for now? We can iterate later if we see it is an issue

Copilot AI balanced review requested due to automatic review settings November 25, 2026 12:46

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Comment thread .github/python-ci/paths.yml Resolved
…8691)

* ci(python): run PR static, unit and Airflow API checks in one job

Convert reusable-py-unit.yml and reusable-py-airflow-apis.yml into the
python-unit and python-airflow-apis composite actions. ci-pr.yml runs
static checks, unit tests and Airflow API tests as conditional steps of a
single python job; merge-queue and nightly call the actions from their own
jobs.

* ci(python): report PR Python results as checks from the python job

Drop the py-tests-status aggregate job from ci-pr.yml. The python job now
always runs for non-draft PRs, verifies the selected step results in a
final step, and publishes py-checkstyle, py-tests-status and (when the
Airflow API step ran) airflow-apis through LouisBrunner/checks-action.

* ci(python): keep py-tests-status as a job so fork PRs report it

Fork PRs get a read-only token and cannot create check runs. The
py-tests-status job verifies the python job and its gate output on every
non-draft PR. It is never skipped, because a skipped job reports success
and would override a failing check of the same name. The python job
publishes py-checkstyle and airflow-apis only when its token can write
checks.
Copilot AI balanced review requested due to automatic review settings November 25, 2026 14:10

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@tutte
tutte enabled auto-merge (squash) November 25, 2026 14:11
Copilot AI balanced review requested due to automatic review settings November 25, 2026 14:12

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

check_pr_workflow_security.py rejected every write scope. Check runs only
report results on the PR's own commit, and fork PRs still get a read-only
token, so checks is the one write scope PR jobs may request.
Copilot AI balanced review requested due to automatic review settings November 25, 2026 14:21

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@gitar-bot

gitar-bot Bot commented Nov 25, 2026

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

Reworks PR and merge-queue required-check gates and permits checks:write; reporting errors could misstate CI status and affect merge eligibility across Python changes.

Splits Python CI into event-owned ci-pr, ci-merge-queue and ci-nightly workflows with shared build, environment, test and reporting steps. Resolved the deleted py-tests.yml selection record conflict, lint placement against the accepted CI ADR, floating ubuntu-latest for Playwright jobs, the missing four-worker unit default guard test, and the unchecked stale Airflow API lock. No open issues remain.

✅ 5 closed
✅ Quality: Deleting py-tests.yml contradicts the Accepted Python CI selection record

📄 .github/workflows/ci-pr.yml:12-26 📄 .github/workflows/ci-merge-queue.yml:12-21 📄 .github/workflows/ci-nightly.yml:13-21 📄 .github/workflows/ci-nightly.yml:119 📄 .github/workflows/ci-nightly.yml:135 📄 .github/python-ci/paths.yml:1-15 📄 scripts/python_ci.py:22-36 📄 .github/workflows/py-integration.yml:106-107 📄 .github/workflows/py-unit.yml:62-63
docs/decisions/2026-11-11-python-ci-selects-workloads-by-event.md is Accepted and says: "py-tests.yml owns event triggers, path selection and the required py-tests-status check", "Manual dispatch selects pull-request, merge-queue or nightly workloads, defaulting to nightly", and "The default connector list lives in py-tests.yml". This PR deletes py-tests.yml and py-tests-shared.yml. It splits ownership across ci-pr.yml, ci-merge-queue.yml and ci-nightly.yml, each with its own manual dispatch and no mode input. It moves the path filter to .github/python-ci/paths.yml and puts the connector list in both ci-nightly.yml and scripts/python_ci.py. It also changes what coverage nightly collects: the old flow uploaded coverage only for coverage-python (the lowest version) and only for MySQL integration shards. Now every interpreter and both databases upload coverage-* artifacts, and all of them are combined for Sonar. No record in the tree states any of these rules, and the Accepted record still describes the deleted files.

The PR should either keep the old structure or add a record that supersedes this one, with the old record's Status naming its successor. The new record would state: "Python CI has one entrypoint per event (ci-pr.yml, ci-merge-queue.yml, ci-nightly.yml). Each owns its triggers, its manual dispatch and the shared-name required checks py-checkstyle/py-tests-status. Path selection lives in .github/python-ci/paths.yml. The nightly connector default in ci-nightly.yml must equal DEFAULT_CONNECTORS in scripts/python_ci.py, and nightly coverage combines unit and integration data from every supported interpreter and both databases." These rules come from the PR description ("split it into separate PR, merge-queue, and nightly workflows that each declare their own matrix and dependencies"; "Every entrypoint keeps manual dispatch for its own flow"). The repository squash-merges, so they will be lost unless they are recorded.

✅ Quality: Lint moved to highest Python, contradicting the Accepted CI ADR

📄 .github/workflows/ci-merge-queue.yml:60-74 📄 .github/workflows/ci-pr.yml 📄 .github/workflows/ci-nightly.yml 📄 .github/actions/python-lint/action.yml:1-15
docs/decisions/2026-11-11-python-ci-selects-workloads-by-event.md is Accepted. Its table sets static checks to "Lowest supported Python" for every event and says "Static checks run once on the minimum interpreter." This commit splits formatting/lint into a separate python-lint action and runs it on needs.plan.outputs.highest in all three entrypoints. Basedpyright stays on the lowest interpreter in a separate type-checks job. The PR description states the new rule ("Formatting/lint uses the locked style profile on the highest supported interpreter; basedpyright and CI contracts use the lowest interpreter"), but no record in the tree does. The existing record still reads as authoritative.

This is separate from the earlier py-tests.yml ownership finding: it is a second decision in the same PR. The superseding record (or a revision of the 2026-11-11 record, with its Status/Revisions updated) should state: "Formatting and lint run once on the highest supported interpreter using the locked style profile; basedpyright and CI contract tests run once on the lowest supported interpreter without models or a backend." Otherwise, put lint back on the lowest interpreter.

✅ Bug: Playwright jobs moved to floating ubuntu-latest while apt deps are noble-pinned

📄 .github/workflows/reusable-playwright-e2e.yml:177 📄 .github/workflows/reusable-playwright-e2e.yml:328 📄 .github/workflows/reusable-playwright-e2e.yml:368 📄 .github/workflows/reusable-playwright-e2e.yml:524 📄 .github/workflows/reusable-playwright-e2e.yml:577 📄 .github/workflows/reusable-playwright-e2e.yml:627 📄 .github/workflows/reusable-playwright-e2e.yml:958 📄 .github/workflows/reusable-playwright-e2e.yml:1017 📄 .github/workflows/reusable-playwright-e2e.yml:1338 📄 .github/workflows/reusable-playwright-e2e.yml:1424 📄 .github/workflows/reusable-playwright-e2e.yml:2244 📄 .github/workflows/playwright-search-nightly.yml:26 📄 .github/workflows/playwright-sso-login-nightly.yml:122 📄 .github/workflows/playwright-sso-login-nightly.yml:177 📄 .github/workflows/playwright-sso-login-nightly.yml:500 📄 docs/decisions/2026-11-11-python-ci-selects-workloads-by-event.md:43-45 🔗 link
This commit changes every Playwright runner from ubuntu-24.04 to ubuntu-latest. The shard setup still installs a fixed Chromium dependency list (libasound2t64, libcups2t64, …), and its own comment ties that list to "playwright 1.57 on ubuntu-24.04 / noble". The comment says to update the list and bump the playwright-chromium-deps-v2 cache version whenever the Ubuntu base changes.

GitHub's migration announcement says ubuntu-latest moves to Ubuntu 26.04 between 19 Oct and 19 Nov 2026, so the runner OS can change under these jobs with no edit here. Two things can go wrong when it does:

  • Shards can restore noble-built libraries from the same apt cache key onto a different OS.
  • The noble-only package names can fail on cache misses.

Those failures would hit the blocking merge-queue Playwright lanes. The same applies to the ubuntu-latest switch in playwright-search/sso nightly and populate-playwright-caches.

Fix: keep the Playwright jobs on ubuntu-24.04, and limit the ADR's "other jobs run on ubuntu-latest" rule to the Python CI jobs. Alternatively, put the OS release into the apt cache version and re-check the package list for 26.04.

✅ Quality: Guard test for ADR four-worker unit default was removed

📄 ingestion/tests/unit/test_python_tooling.py:251-265 📄 ingestion/noxfile.py:318-322
docs/decisions/2026-10-27-unit-tests-default-to-four-xdist-workers.md is Accepted and lists ingestion/tests/unit/test_python_tooling.py as its Guard. This delta rewrote test_unit_worker_count_defaults_to_four_and_respects_overrides as test_unit_commands_respect_worker_overrides and dropped the workers=None -> "4" case. Nothing else in the test tree checks PYTEST_XDIST_WORKER_COUNT == "4", so if someone removes or changes "-n", "4" in ingestion/noxfile.py:318-322, the tests still pass. That leaves the ADR without a guard, even though the PR description says the four-worker default is preserved. Add back at least one default case (for example make unit_ingestion with no -n, so both Make and Nox are covered), or update the ADR's Guard line.

✅ Edge Case: Stale Airflow API lock goes unchecked until the nightly run fails

📄 .github/python-ci/paths.yml:64-66 📄 openmetadata-airflow-apis/Makefile:7 📄 openmetadata-airflow-apis/pyproject.toml:36-43 📄 .github/actions/python-static-checks/action.yml:16-18
This PR adds openmetadata-airflow-apis/uv.lock, which locks openmetadata-ingestion as an editable path dependency (source = { editable = "../ingestion" }, including its airflow,pii-processor extras). The API Makefile runs uv run --exact --locked, so the API job fails with "lockfile needs to be updated" whenever ingestion's dependency metadata changes.

In both PR and merge-queue runs, airflow-apis is selected only by openmetadata-airflow-apis/** (.github/python-ci/paths.yml:64-66). Nothing else checks that lock. The only lock --check callers are scripts/update_version.py and the planning skill. So a PR that changes ingestion/setup.py or the ingestion/pyproject.toml dependencies can pass py-tests-status and merge. Every nightly airflow-apis run then fails, and so does the Sonar API publish, until someone re-locks.

The ADR accepts deferring API test coverage of SDK changes to the nightly run. It does not cover a lock that is guaranteed to go stale.

Fix: run "$(python3 scripts/python_tools.py uv-path)" lock --check --project openmetadata-airflow-apis in py-static-checks whenever the python filter matches. Alternatively, add ingestion/setup.py and ingestion/pyproject.toml to the airflow-apis filter. Either way, state the rule in the ADR.

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

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.

7 participants