Skip to content

chore: update sqlalchemy to 1.0.0 - #27776

Merged
TeddyCr merged 1 commit into
open-metadata:mainfrom
TeddyCr:MINOR-Redshift-Upgrade
Apr 28, 2026
Merged

TeddyCr merged 1 commit into
open-metadata:mainfrom
TeddyCr:MINOR-Redshift-Upgrade

Conversation

@TeddyCr

@TeddyCr TeddyCr commented Apr 28, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Summary by Gitar

  • Dependency management:
    • Removed sqlalchemy-redshift==0.8.14 from CI environment configuration and Docker build files.
    • Added sqlalchemy-redshift~=1.0.0 to ingestion/setup.py to align with the SQLAlchemy update.

This will update automatically on new commits.

Copilot AI review requested due to automatic review settings April 28, 2026 01:39
@TeddyCr
TeddyCr requested review from a team, akash-jain-10, harshach and tutte as code owners April 28, 2026 01:39
@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Apr 28, 2026
@gitar-bot

gitar-bot Bot commented Apr 28, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

Updates the SQLAlchemy dependency to version 1.0.0. No issues were found.

Options

Display: compact → Showing less information.

Comment with these commands to change:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

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.

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.0 to the redshift extra in ingestion/setup.py.
  • Remove sqlalchemy-redshift==0.8.14 from the “pre-install dialect packages” steps in ingestion CI Dockerfiles.
  • Remove sqlalchemy-redshift==0.8.14 from 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.

Comment thread ingestion/setup.py
Comment on lines 358 to +359
"redshift": {
# sqlalchemy-redshift is pre-installed with --no-deps (SA<2 metadata conflict)
"sqlalchemy-redshift~=1.0.0",

Copilot AI Apr 28, 2026

Copy link

Choose a reason for hiding this comment

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

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.

Copilot uses AI. Check for mistakes.
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — 1 failure(s), 21 flaky

✅ 3663 passed · ❌ 1 failed · 🟡 21 flaky · ⏭️ 89 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 478 0 2 4
🔴 Shard 2 648 1 2 7
🟡 Shard 3 655 0 5 1
🟡 Shard 4 629 0 5 27
🟡 Shard 5 610 0 1 42
🟡 Shard 6 643 0 6 8

Genuine Failures (failed on all attempts)

❌ Features/ActivityFeed.spec.ts › Mention notification shows correct user details in Notification box (shard 2)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed

Locator: locator('[data-testid="message-container"]').filter({ hasText: 'Initial conversation thread for mention test' }).first()
Expected: visible
Timeout: 30000ms
Error: element(s) not found

Call log:
�[2m  - Expect "toBeVisible" with timeout 30000ms�[22m
�[2m  - waiting for locator('[data-testid="message-container"]').filter({ hasText: 'Initial conversation thread for mention test' }).first()�[22m

🟡 21 flaky test(s) (passed on retry)
  • Flow/Tour.spec.ts › Tour should work from welcome screen (shard 1, 1 retry)
  • Pages/UserCreationWithPersona.spec.ts › Create user with persona and verify on profile (shard 1, 1 retry)
  • Features/ChangeSummaryBadge.spec.ts › Automated badge should appear on entity description with Automated source (shard 2, 1 retry)
  • Features/Glossary/GlossaryHierarchy.spec.ts › should cancel move operation (shard 2, 1 retry)
  • Features/RestoreEntityInheritedFields.spec.ts › Validate restore with Inherited domain and data products assigned (shard 3, 1 retry)
  • Features/RestoreEntityInheritedFields.spec.ts › Validate restore with Inherited domain and data products assigned (shard 3, 1 retry)
  • Features/RestoreEntityInheritedFields.spec.ts › Validate restore with Inherited domain and data products assigned (shard 3, 1 retry)
  • Features/RTL.spec.ts › Verify Following widget functionality (shard 3, 1 retry)
  • Flow/AddRoleAndAssignToUser.spec.ts › Verify assigned role to new user (shard 3, 1 retry)
  • Pages/Customproperties-part2.spec.ts › entityReferenceList shows item count, scrollable list, no expand toggle (shard 4, 1 retry)
  • Pages/DataContracts.spec.ts › Create Data Contract and validate for DashboardDataModel (shard 4, 1 retry)
  • Pages/DataContracts.spec.ts › Create Data Contract and validate for Container (shard 4, 1 retry)
  • Pages/DataContracts.spec.ts › Create Data Contract and validate for Database Schema (shard 4, 1 retry)
  • Pages/DataContracts.spec.ts › Add and update Security and SLA tabs (shard 4, 1 retry)
  • Pages/Glossary.spec.ts › Add and Remove Assets (shard 5, 2 retries)
  • Pages/Lineage/LineageFilters.spec.ts › Verify lineage schema filter selection (shard 6, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab IS visible for supported type: searchIndex (shard 6, 1 retry)
  • Pages/ODCSImportExportPermissions.spec.ts › User with EditAll can export ODCS contract (shard 6, 1 retry)
  • Pages/Users.spec.ts › Permissions for table details page for Data Consumer (shard 6, 1 retry)
  • Pages/Users.spec.ts › Check permissions for Data Steward (shard 6, 1 retry)
  • VersionPages/EntityVersionPages.spec.ts › Directory (shard 6, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@TeddyCr
TeddyCr merged commit 11e5ac9 into open-metadata:main Apr 28, 2026
62 of 67 checks passed
TeddyCr added a commit that referenced this pull request May 1, 2026
jatinmasaram pushed a commit to jatinmasaram/OpenMetadata that referenced this pull request May 2, 2026
jaya6400 pushed a commit to jaya6400/OpenMetadata that referenced this pull request May 4, 2026
MannXo pushed a commit to MannXo/OpenMetadata that referenced this pull request Aug 12, 2026
…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]>
harshsoni2024 added a commit that referenced this pull request Aug 12, 2026
…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]>
k-anshul pushed a commit to k-anshul/OpenMetadata that referenced this pull request Aug 12, 2026
…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]>

This branch was previously deployed

1 inactive deployment
test — cef2df31 Deployed Apr 28, 2026 by TeddyCr via playwright-ci-postgresql (3, 6) #44611
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