Repository navigation
chore: update sqlalchemy to 1.0.0 - #27776
Conversation
Code Review ✅ ApprovedUpdates the SQLAlchemy dependency to version 1.0.0. No issues were found. OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
There was a problem hiding this comment.
Pull request overview
Updates the ingestion build/install setup for the Redshift SQLAlchemy dialect by moving sqlalchemy-redshift installation into the redshift extra and removing the special-case preinstall from CI images/actions.
Changes:
- Add
sqlalchemy-redshift~=1.0.0to theredshiftextra iningestion/setup.py. - Remove
sqlalchemy-redshift==0.8.14from the “pre-install dialect packages” steps in ingestion CI Dockerfiles. - Remove
sqlalchemy-redshift==0.8.14from the composite GitHub Action’s dependency bootstrap.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ingestion/setup.py | Adds sqlalchemy-redshift to the Redshift plugin extra so it’s installed via pip install ingestion[redshift] / ingestion[all]. |
| ingestion/operators/docker/Dockerfile.ci | Stops preinstalling sqlalchemy-redshift with --no-deps during CI image build. |
| ingestion/Dockerfile.ci | Same as above for the main ingestion CI image. |
| .github/actions/setup-openmetadata-test-environment/action.yml | Stops preinstalling sqlalchemy-redshift in the test environment bootstrap step. |
| "redshift": { | ||
| # sqlalchemy-redshift is pre-installed with --no-deps (SA<2 metadata conflict) | ||
| "sqlalchemy-redshift~=1.0.0", |
There was a problem hiding this comment.
PR description is still the template text (e.g., "Fixes ") and doesn’t explain the actual change. Also, the PR title mentions updating "sqlalchemy" to 1.0.0, but this diff updates the Redshift dialect dependency (sqlalchemy-redshift) instead; please align the title/description with what’s actually being changed and link the issue if applicable.
|
🔴 Playwright Results — 1 failure(s), 21 flaky✅ 3663 passed · ❌ 1 failed · 🟡 21 flaky · ⏭️ 89 skipped
Genuine Failures (failed on all attempts)❌
|
(cherry picked from commit 11e5ac9)
…es (open-metadata#31338) * fix(security): clear the remaining fixable CVEs in the ingestion images The 10 Aug scan of the release image reports 43 findings, only 5 of which have a fix available; the other 38 are Debian packages with no upstream fix in bookworm. This clears all 5. black -- CVE-2026-31900 (Critical), CVE-2026-32274 (High), CVE-2024-21503 (Medium) black is not installed in any release image; it is a dev extra only. The sole occurrence on disk is spacy/tests/package/requirements.txt, a test fixture inside the spaCy wheel that pins black==22.3.0 and that scanners parse as a dependency manifest. Strip it after the final pip install in every image that ships spaCy. This strip previously shipped inside patch_pyspark_jars.sh and was reverted along with it in open-metadata#31074, because the jar-fetching half failed on sha mismatches. Nothing in this script fetches anything. It also cannot fail a build: every path exits 0, including python missing and an unexpected traceback, since the fixture is inert data and not worth blocking a release over. Walking sys.path rather than resolving spaCy once via find_spec is deliberate -- a user-site install shadows a system-site one, and find_spec would strip only the shadowing copy while the scanner kept reading the other, passing the build with the finding intact. apache-airflow 3.2.2 -> 3.3.0 -- CVE-2026-48891 (Medium) /ui/dependencies leaked Dag IDs the caller cannot read through the dep.source and dep.target fields, a residual gap in the CVE-2026-28563 fix. The pin, both base image tags, the vendored constraints file and the integration-test image move together. The constraints file is not a straight re-download. It carries two hand-patches marked "keep on regeneration" -- impyla and thrift at 0.24.0 for CVE-2026-66053 / CVE-2026-41608 / CVE-2026-48586 -- and upstream constraints-3.3.0 still ships impyla==0.22.0 and thrift==0.16.0. Both are re-applied, so the file diverges from upstream in exactly those two blocks and nothing else. A plain regeneration would have traded one airflow CVE for three thrift ones. setuptools 80.10.2 -> 84 -- CVE-2026-59890 (Medium) The setuptools<81 pin guards two separate things. cx_Oracle's setup.py imports pkg_resources, which 81.0.0 removed, and it has no cp312 wheel, so a source build is mandatory; that half of the pin stays. The other half, sqlalchemy-redshift 0.8.14, no longer applies: 1.0.0 moved to importlib.metadata and setup.py has pinned ~=1.0.0 since open-metadata#27776. The 0.8.14 entries removed here are a regression rather than a decision. open-metadata#27776 deleted them from all three install sites; open-metadata#26896, branched before it and merged after, then rewrote the same line to drop sqlalchemy-databricks and carried the stale redshift entry back in. Being a single-line replacement, it merged without conflict. cx_Oracle and mysqlclient need pkg_resources only at build time -- once built, both import cleanly against 84 -- so the lift becomes a final layer after the last source build instead of replacing the pin. Co-Authored-By: Claude Opus 5 <[email protected]> * fix(security): address review on the ingestion CVE cleanup Move the setuptools>=83 lift after `airflow db migrate` in both airflow images: the lift removes pkg_resources and migrate runs Airflow's import chain. Migrate is the last line in both files, so this costs nothing. Fall back to python3 in strip_spacy_test_fixture.sh when no `python` shim exists; without it the strip silently skips and the black findings survive a green build. `python` stays first -- pip installs into whichever interpreter it resolves to. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
…es (#31338) * fix(security): clear the remaining fixable CVEs in the ingestion images The 10 Aug scan of the release image reports 43 findings, only 5 of which have a fix available; the other 38 are Debian packages with no upstream fix in bookworm. This clears all 5. black -- CVE-2026-31900 (Critical), CVE-2026-32274 (High), CVE-2024-21503 (Medium) black is not installed in any release image; it is a dev extra only. The sole occurrence on disk is spacy/tests/package/requirements.txt, a test fixture inside the spaCy wheel that pins black==22.3.0 and that scanners parse as a dependency manifest. Strip it after the final pip install in every image that ships spaCy. This strip previously shipped inside patch_pyspark_jars.sh and was reverted along with it in #31074, because the jar-fetching half failed on sha mismatches. Nothing in this script fetches anything. It also cannot fail a build: every path exits 0, including python missing and an unexpected traceback, since the fixture is inert data and not worth blocking a release over. Walking sys.path rather than resolving spaCy once via find_spec is deliberate -- a user-site install shadows a system-site one, and find_spec would strip only the shadowing copy while the scanner kept reading the other, passing the build with the finding intact. apache-airflow 3.2.2 -> 3.3.0 -- CVE-2026-48891 (Medium) /ui/dependencies leaked Dag IDs the caller cannot read through the dep.source and dep.target fields, a residual gap in the CVE-2026-28563 fix. The pin, both base image tags, the vendored constraints file and the integration-test image move together. The constraints file is not a straight re-download. It carries two hand-patches marked "keep on regeneration" -- impyla and thrift at 0.24.0 for CVE-2026-66053 / CVE-2026-41608 / CVE-2026-48586 -- and upstream constraints-3.3.0 still ships impyla==0.22.0 and thrift==0.16.0. Both are re-applied, so the file diverges from upstream in exactly those two blocks and nothing else. A plain regeneration would have traded one airflow CVE for three thrift ones. setuptools 80.10.2 -> 84 -- CVE-2026-59890 (Medium) The setuptools<81 pin guards two separate things. cx_Oracle's setup.py imports pkg_resources, which 81.0.0 removed, and it has no cp312 wheel, so a source build is mandatory; that half of the pin stays. The other half, sqlalchemy-redshift 0.8.14, no longer applies: 1.0.0 moved to importlib.metadata and setup.py has pinned ~=1.0.0 since #27776. The 0.8.14 entries removed here are a regression rather than a decision. #27776 deleted them from all three install sites; #26896, branched before it and merged after, then rewrote the same line to drop sqlalchemy-databricks and carried the stale redshift entry back in. Being a single-line replacement, it merged without conflict. cx_Oracle and mysqlclient need pkg_resources only at build time -- once built, both import cleanly against 84 -- so the lift becomes a final layer after the last source build instead of replacing the pin. Co-Authored-By: Claude Opus 5 <[email protected]> * fix(security): address review on the ingestion CVE cleanup Move the setuptools>=83 lift after `airflow db migrate` in both airflow images: the lift removes pkg_resources and migrate runs Airflow's import chain. Migrate is the last line in both files, so this costs nothing. Fall back to python3 in strip_spacy_test_fixture.sh when no `python` shim exists; without it the strip silently skips and the black findings survive a green build. `python` stays first -- pip installs into whichever interpreter it resolves to. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
…es (open-metadata#31338) * fix(security): clear the remaining fixable CVEs in the ingestion images The 10 Aug scan of the release image reports 43 findings, only 5 of which have a fix available; the other 38 are Debian packages with no upstream fix in bookworm. This clears all 5. black -- CVE-2026-31900 (Critical), CVE-2026-32274 (High), CVE-2024-21503 (Medium) black is not installed in any release image; it is a dev extra only. The sole occurrence on disk is spacy/tests/package/requirements.txt, a test fixture inside the spaCy wheel that pins black==22.3.0 and that scanners parse as a dependency manifest. Strip it after the final pip install in every image that ships spaCy. This strip previously shipped inside patch_pyspark_jars.sh and was reverted along with it in open-metadata#31074, because the jar-fetching half failed on sha mismatches. Nothing in this script fetches anything. It also cannot fail a build: every path exits 0, including python missing and an unexpected traceback, since the fixture is inert data and not worth blocking a release over. Walking sys.path rather than resolving spaCy once via find_spec is deliberate -- a user-site install shadows a system-site one, and find_spec would strip only the shadowing copy while the scanner kept reading the other, passing the build with the finding intact. apache-airflow 3.2.2 -> 3.3.0 -- CVE-2026-48891 (Medium) /ui/dependencies leaked Dag IDs the caller cannot read through the dep.source and dep.target fields, a residual gap in the CVE-2026-28563 fix. The pin, both base image tags, the vendored constraints file and the integration-test image move together. The constraints file is not a straight re-download. It carries two hand-patches marked "keep on regeneration" -- impyla and thrift at 0.24.0 for CVE-2026-66053 / CVE-2026-41608 / CVE-2026-48586 -- and upstream constraints-3.3.0 still ships impyla==0.22.0 and thrift==0.16.0. Both are re-applied, so the file diverges from upstream in exactly those two blocks and nothing else. A plain regeneration would have traded one airflow CVE for three thrift ones. setuptools 80.10.2 -> 84 -- CVE-2026-59890 (Medium) The setuptools<81 pin guards two separate things. cx_Oracle's setup.py imports pkg_resources, which 81.0.0 removed, and it has no cp312 wheel, so a source build is mandatory; that half of the pin stays. The other half, sqlalchemy-redshift 0.8.14, no longer applies: 1.0.0 moved to importlib.metadata and setup.py has pinned ~=1.0.0 since open-metadata#27776. The 0.8.14 entries removed here are a regression rather than a decision. open-metadata#27776 deleted them from all three install sites; open-metadata#26896, branched before it and merged after, then rewrote the same line to drop sqlalchemy-databricks and carried the stale redshift entry back in. Being a single-line replacement, it merged without conflict. cx_Oracle and mysqlclient need pkg_resources only at build time -- once built, both import cleanly against 84 -- so the lift becomes a final layer after the last source build instead of replacing the pin. Co-Authored-By: Claude Opus 5 <[email protected]> * fix(security): address review on the ingestion CVE cleanup Move the setuptools>=83 lift after `airflow db migrate` in both airflow images: the lift removes pkg_resources and migrate runs Airflow's import chain. Migrate is the last line in both files, so this costs nothing. Fall back to python3 in strip_spacy_test_fixture.sh when no `python` shim exists; without it the strip silently skips and the black findings survive a green build. `python` stays first -- pip installs into whichever interpreter it resolves to. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>



Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
sqlalchemy-redshift==0.8.14from CI environment configuration and Docker build files.sqlalchemy-redshift~=1.0.0toingestion/setup.pyto align with the SQLAlchemy update.This will update automatically on new commits.