Repository navigation
Update Python packages in ingestion images - #36011
Conversation
❌ 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 |
🚦 Removed from the merge queue —
|
- 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
Code Review ✅ Approved 4 closed / 4 findings🟡 Medium risk · Updating ingestion-image package pins, pip seeds, and CA trust bundles changes dependency and TLS behavior; incompatibilities could disrupt ingestion builds or connections. Updates pip, certifi, uv and virtualenv pins across ingestion images, adds a ✅ 4 closed✅ Quality: Undocumented contract: BASE_IMAGE arg and OSS-before-Collate build order
✅ Quality: Undocumented rule: images use the in-tree constraints with security overrides
✅ Quality: verify_python_tls.py uses ingestion's license, not root scripts/ header
✅ Quality: ADR's guard script verify_python_tls.py is never run in any image build
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 |
|



Describe your changes
Update pip to 26.2.2, certifi to >=2026.10.19, uv to >=0.13.4 and virtualenv to >=21.14.12 in ingestion images, with matching CI recipes and a certifi floor in package metadata.
Type of change
High-level design
Install pip directly from its fixed wheel URL with the published SHA256 checksum, then use the updated pip to upgrade certifi and uv. Apply this to both root and Airflow-user installations; update the separate uv installation in Airflow's existing prek environment. Refresh OS certificate packages and use the OS bundle for gRPC and prek.
Airflow stays on 3.3.2/Python 3.12 and uses the checked-in constraints with updated certifi, uv, virtualenv and python-discovery pins. The standalone
scripts/verify_python_tls.pychecks installed packages and runtime certificate bundles. The change does not modify Python or virtualenv internals.Rebuild with
docker build --pull --no-cacheand replace deployed images. Publish the OpenMetadata images before rebuilding their Collate derivatives.Tests
--pull --no-cache. Hashed pip installation and package upgrades pass. Runtime TLS checks pass for Python root and Airflow root/default user, including pip, certifi, OS and applicable botocore/httplib2/gRPC bundles and the isolated uv version. Python's ensurepip files remain byte-identical.Existing
pip checkfindings remain: huggingface-hub requires click >=8.4.2 while Airflow resolves 8.3.3; pydoris declares mysqlclient despite the intentional PyMySQL migration. Dependency checks are not reported as clean.Manual reproduction: rebuild with refreshed parents and caching disabled; run
docker run --rm -i --entrypoint python IMAGE - --network < scripts/verify_python_tls.pyas default user and root, then exercise metadata CLI and Airflow migration as applicable.UI screen recording
Not applicable: no UI changes.
Checklist
REVIEW.md.Self-review:
f94454096856630c75518514f9e9f57228e9ca2d; no unresolved blocking findings.Collate counterpart: https://github.com/open-metadata/openmetadata-collate/pull/7720
Summary by Gitar
patch_python_seeds.py_PIP_VERSIONlayout changes unexpectedlyBASE_IMAGEbuild arg to ingestion Dockerfiles for Collate derivativesairflow-constraints-3.3.2.txtwith security overridesGRPC_DEFAULT_SSL_ROOTS_FILE_PATHto the OS CA bundle and installsca-certificatesPREK_NATIVE_TLSand upgrades uv in the isolated prek environmentverify_python_tls.pychecking package floors, CA bundles, and fresh-venv pipThis will update automatically on new commits.


Confidence Score: 5/5
The latest change appears safe to merge; no new blocking issue was found.Summary
Updates Python packages and certificate bundles in ingestion images.
No new issues were found since the previous review. The earlier unnumbered finding is addressed: all four Dockerfiles patch bundled seeds, and the verifier checks newly created environments.
Reviews (4) · Last reviewed commit: "docs: state that the ingestion image TLS..." · Reviewed by Greptile