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

requirements.txt: update the need sqlalchemy version to 1.3.12 and above. #1454

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

Jingshui1037
Copy link

When the SQLAlchemy version is less than 1.3.11, there is an error like this File "/usr/local/lib/python3.6/site-packages/alembic/ddl/sqlite.py", line 56, in requires_recreate_in_batch and col.server_default.persisted AttributeError: 'NoneType' object has no attribute 'persisted'

The sqlalchemy/alembic repo fix compat issue with older SQLAlchemy versions in
sqlalchemy/alembic@2866272 and point the issue is caused by the lower SQLAlchemy version (less than SQLAlchemy 1.3.11)

so it's better for us to update the need SQLAlchemy version from 1.3 to 1.3.12 or update the need alembic version from 1.1.0 to 1.11.0. Obviouly, update the need sqlalchemy version to 1.3.12 and above is better than update the need alembic version to 1.11.0.

Fixes #1453

Signed-off-by: YiLin.Li YiLin.Li@linux.alibaba.com

…ove.

When the SQLAlchemy version is less than 1.3.11, there is an error like
this `File "/usr/local/lib/python3.6/site-packages/alembic/ddl/sqlite.py",
line 56, in requires_recreate_in_batch and col.server_default.persisted
AttributeError: 'NoneType' object has no attribute 'persisted'`

The sqlalchemy/alembic repo fix compat issue with older SQLAlchemy
versions in
sqlalchemy/alembic@2866272
and point the issue is caused by the lower SQLAlchemy version (less than
SQLAlchemy 1.3.11)

so it's better for us to update the need SQLAlchemy version from 1.3 to
1.3.12 or update the need alembic version from 1.1.0 to 1.11.0.
Obviouly,  update the need sqlalchemy version to 1.3.12 and
above is better than update the need alembic version to 1.11.0.

Signed-off-by: YiLin.Li <YiLin.Li@linux.alibaba.com>
@codecov
Copy link

codecov bot commented Aug 13, 2023

Codecov Report

Merging #1454 (64bce3e) into master (fc5cc69) will decrease coverage by 0.02%.
The diff coverage is n/a.

Additional details and impacted files
Flag Coverage Δ
packit-e2e 72.15% <ø> (-0.03%) ⬇️
testsuite 29.87% <ø> (ø)
unittests 7.64% <ø> (ø)

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

see 1 file with indirect coverage changes

Copy link
Member

@THS-on THS-on left a comment

Choose a reason for hiding this comment

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

CentOS Stream 9 is on 1.4.45, which is currently I think the oldest sqlalchemy version for the distributions we test

@maugustosilva maugustosilva merged commit 87f655b into keylime:master Aug 14, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants