Repository navigation
Update Python packages in ingestion images [Backport #36011 - 2.0] - #36078
Conversation
* 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)
❌ 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 |
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 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 |
|



Backport of #36011 to
2.0(git cherry-pick -x ec964e199b).Conflict resolution
2.0 still builds
cx_Oraclefrom source, so it keeps thesetuptools<81build pin and the closingsetuptools>=83layer that main no longer has. Resolved as:ingestion/Dockerfile,Dockerfile.ci: the hash-pinned pip 26.2.2 +certifi/uvupgrade replaces the oldpip>=26.2,<27in the user-level step; thesetuptools<81→ cx_Oracle →setuptools>=83flow is unchanged.openmetadata-managed-apisnow installs against the in-tree constraints file, as on main. The prekuv/virtualenvseed-patch layers go before the finalsetuptools>=83layer, which has to stay last.ingestion/operators/docker/Dockerfile,Dockerfile.ci: removed the root-levelpip>=26.2,<27refresh, because the new top-of-file pip 26.2.2 step replaces it. I did not add main's root-levelsetuptools>=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


Confidence 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.
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]Reviews (1) · Last reviewed commit: "Update Python packages in ingestion imag..." · Reviewed by Greptile