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

Add compat shim for SQLAlchemy to avoid warnings #21959

Merged
merged 1 commit into from
Mar 3, 2022

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Mar 3, 2022

SQLALchemy 1.4 is introducing a ton of deprecation warnings to our code base. They need to be fixed eventually if we want to support SQLALchemy 2.0, so this introduce shims to ease the migration in the future, while squelching the warnings in the mean time.

This cleans up 76 deprecation warnings emitted by test_dag_serialization.py, from 827 to 743. Yeah that’s still a ton of warnings, although a good portion are from days_ago usages in our example DAGs.

SQLALchemy 1.4 is introducing a ton of deprecation warnings to our code
base. They need to be fixed eventually if we want to support SQLALchemy
2.0, so this introduce shims to ease the migration in the future, while
squelching the warnings in the mean time.
@github-actions
Copy link

github-actions bot commented Mar 3, 2022

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Mar 3, 2022
@uranusjr uranusjr merged commit aa8bffd into apache:main Mar 3, 2022
@uranusjr uranusjr deleted the serialization-deprecations branch March 3, 2022 20:30
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:serialization area:webserver Webserver related Issues full tests needed We need to run full set of tests for this PR to merge type:misc/internal Changelog: Misc changes that should appear in change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants