Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: limit sqlalchemy<1.4.45 #5871

Closed
wants to merge 2 commits into from

Conversation

ltalirz
Copy link
Member

@ltalirz ltalirz commented Jan 26, 2023

sqla 1.4.45 introduced a breaking change resulting in two test failures

FAILED tests/orm/test_querybuilder.py::TestRepresentations::test_as_sql_literal_quote - sqlalchemy.exc.CompileError: No literal value renderer is available for literal value "['Si']" with datatype JSONB
FAILED tests/orm/test_querybuilder.py::test_analyze_query - sqlalchemy.exc.CompileError: No literal value renderer is available for literal value "['x', 1]" with datatype JSONB

@ltalirz ltalirz linked an issue Jan 26, 2023 that may be closed by this pull request
sqla 1.4.45 introduced a breaking change resulting in two test failures

FAILED tests/orm/test_querybuilder.py::TestRepresentations::test_as_sql_literal_quote - sqlalchemy.exc.CompileError: No literal value renderer is available for literal value "['Si']" with datatype JSONB
FAILED tests/orm/test_querybuilder.py::test_analyze_query - sqlalchemy.exc.CompileError: No literal value renderer is available for literal value "['x', 1]" with datatype JSONB
@ltalirz ltalirz force-pushed the fix/5857/sqlalchemy-break branch from c6d347b to 3e18a39 Compare January 26, 2023 12:45
@ltalirz
Copy link
Member Author

ltalirz commented Jan 26, 2023

Note: in the meanwhile sqlalchemy 1.4.46 is out with a couple of fixes, some of which look like they could be related, but the nightly aiida-core test install workflow still fails with sqlalchemy 1.4.46

@ltalirz
Copy link
Member Author

ltalirz commented Jan 26, 2023

@aiidateam/dependency-manager

@ltalirz ltalirz requested a review from sphuber January 26, 2023 13:10
@ltalirz
Copy link
Member Author

ltalirz commented Jan 26, 2023

@sphuber The conda-based installs fail, but that is a separate issue #5872 (also failing on nightly installs currently)

my local yapf did not pick up on this...
@ltalirz
Copy link
Member Author

ltalirz commented Jan 27, 2023

@sphuber I think this one is important to merge relatively soon + make a new release, since AiiDA installations created after december 11th 2022 are likely broken in the way the tests point out

@ltalirz
Copy link
Member Author

ltalirz commented Jan 27, 2023

Follow-up PR #5873 is also ready to go after this one, which will fix the conda-based install

@ltalirz ltalirz changed the title fix: limit sqla version fix: limit sqlalchemy<1.4.45 Jan 27, 2023
@ltalirz
Copy link
Member Author

ltalirz commented Jan 27, 2023

Superseded by #5875

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.

test-install workflow broken
1 participant