Skip to content

Pin SQLAlchemy to 2.0.54 - #1333

Merged
damonbayer merged 1 commit into
mainfrom
fix/pin-sqlalchemy-2-0
Sep 28, 2026
Merged

damonbayer merged 1 commit into
mainfrom
fix/pin-sqlalchemy-2-0

Conversation

@damonbayer

Copy link
Copy Markdown
Collaborator

Summary

  • downgrade the locked SQLAlchemy version from 2.1.1 to 2.0.54
  • restore the greenlet dependency required by SQLAlchemy 2.0
  • avoid the SQLAlchemy 2.1 PostgreSQL default-driver change from psycopg2 to psycopg

SQLAlchemy 2.1 makes bare PostgreSQL URLs select psycopg v3, while cfa-dagster currently installs psycopg2-binary. This caused just dagster to fail with ModuleNotFoundError: No module named psycopg.

This is a lockfile-only workaround pending an upstream driver-selection fix.

Validation

  • uv lock --check
  • uv run --frozen src/cfa/stf/routine/dagster/definitions.py
  • confirmed Dagster launched its services and served the webserver on 127.0.0.1:4000

@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.88%. Comparing base (fd15736) to head (f811ae9).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1333   +/-   ##
=======================================
  Coverage   81.88%   81.88%           
=======================================
  Files          41       41           
  Lines        1689     1689           
=======================================
  Hits         1383     1383           
  Misses        306      306           
Flag Coverage Δ
pipelines 81.86% <ø> (ø)
stfroutineforecasting 82.02% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@damonbayer
damonbayer merged commit e41013e into main Sep 28, 2026
15 checks passed
@damonbayer
damonbayer deleted the fix/pin-sqlalchemy-2-0 branch September 28, 2026 19:47

This branch was successfully deployed

1 active deployment
test — f811ae93 Deployed Sep 28, 2026 by damonbayer via Copy image from GHCR to ACR #4093
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant