Skip to content

Update Python packages in ingestion images [Backport #36011 - 2.0] - #36078

Merged
harshsoni2024 merged 1 commit into
2.0from
backport/36011-2.0
Oct 23, 2026
Merged

harshsoni2024 merged 1 commit into
2.0from
backport/36011-2.0

Conversation

@ulixius9

@ulixius9 ulixius9 commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Backport of #36011 to 2.0 (git cherry-pick -x ec964e199b).

Conflict resolution

2.0 still builds cx_Oracle from source, so it keeps the setuptools<81 build pin and the closing setuptools>=83 layer that main no longer has. Resolved as:

  • ingestion/Dockerfile, Dockerfile.ci: the hash-pinned pip 26.2.2 + certifi/uv upgrade replaces the old pip>=26.2,<27 in the user-level step; the setuptools<81 → cx_Oracle → setuptools>=83 flow is unchanged. openmetadata-managed-apis now installs against the in-tree constraints file, as on main. The prek uv / virtualenv seed-patch layers go before the final setuptools>=83 layer, which has to stay last.
  • ingestion/operators/docker/Dockerfile, Dockerfile.ci: removed the root-level pip>=26.2,<27 refresh, because the new top-of-file pip 26.2.2 step replaces it. I did not add main's root-level setuptools>=83, since 2.0 lifts setuptools at the end of the file.
  • setup.py, the constraints file, the scripts and the ADR applied cleanly.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge based on the inspected code.

Summary

Updates Python packages and certificate stores in production and CI ingestion images.

  • Ingestion images install newer Python tools and use updated trust roots.
  • A manual checker inspects package versions and certificate trust in ingestion images.

No actionable issues were established. Review was limited to code inspection; image builds and the TLS verification script were not run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Base image] --> B[Update packages and certificate stores]
  B --> C[Install hash-pinned pip wheel]
  C --> D[Patch ensurepip bundled wheel]
  D --> E[Install ingestion dependencies]
  E --> F{Airflow image?}
  F -->|Yes| G[Update isolated uv and virtualenv seeds]
  F -->|No| H[Final setuptools upgrade]
  G --> H
  H --> I[Manual TLS and fresh-environment checks]
Loading

Reviews (1) · Last reviewed commit: "Update Python packages in ingestion imag..." · Reviewed by Greptile

* chore: update Python image packages

* chore: simplify pip package version pins

* chore: simplify Python package updates

* chore: restore bundled pip seed patch and address review comments

- Restore patch_python_seeds.py so ensurepip and virtualenv seed pip 26.2.2
  into fresh environments, and restore the verifier's fresh-venv checks
- Move verify_python_tls.py under ingestion/scripts/ to match its license
- Set a TLS 1.2 floor in the verifier's SSL context
- Record the BASE_IMAGE contract, in-tree constraints overrides and seed
  patch in a decision record

* docs: state that the ingestion image TLS verifier is run by hand

---------

Co-authored-by: ulixius9 <[email protected]>
(cherry picked from commit ec964e1)
@ulixius9
ulixius9 requested a review from a team as a code owner October 23, 2026 08:37
@ulixius9
ulixius9 removed the request for review from a team October 23, 2026 08:37
@ulixius9
ulixius9 requested a review from mohittilala October 23, 2026 08:37
@ulixius9 ulixius9 added the safe to test Add this label to run secure Github workflows on PRs label Oct 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

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

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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.

@gitar-bot

gitar-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Updating ingestion image dependencies and CA trust configuration could change accepted TLS certificates or disrupt connections across ingestion workloads.

Backports the Python package update for ingestion images to 2.0, keeping the setuptools<81 build pin and final setuptools>=83 layer that cx_Oracle requires on this branch. 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

@sonarqubecloud

Copy link
Copy Markdown

@harshsoni2024
harshsoni2024 merged commit 387d456 into 2.0 Oct 23, 2026
98 of 114 checks passed
@harshsoni2024
harshsoni2024 deleted the backport/36011-2.0 branch October 23, 2026 09:49

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion 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.

3 participants