This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new a1d1d69f5ea ci: enforce SQLAlchemy 2.0 deprecation warnings in
unit-test CI (#41915)
a1d1d69f5ea is described below
commit a1d1d69f5eae4cffc2e94e0afe01dc8fc58052d4
Author: Evan Rusackas <[email protected]>
AuthorDate: Sun Jul 12 08:43:09 2026 -0700
ci: enforce SQLAlchemy 2.0 deprecation warnings in unit-test CI (#41915)
Co-authored-by: Claude Sonnet 5 <[email protected]>
---
.github/workflows/superset-python-unittest.yml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/.github/workflows/superset-python-unittest.yml
b/.github/workflows/superset-python-unittest.yml
index ec28148bb58..b502bfca2af 100644
--- a/.github/workflows/superset-python-unittest.yml
+++ b/.github/workflows/superset-python-unittest.yml
@@ -53,6 +53,12 @@ jobs:
python-version: ${{ github.event_name == 'pull_request' &&
fromJSON('["current"]') || fromJSON('["previous", "current", "next"]') }}
env:
PYTHONPATH: ${{ github.workspace }}
+ # Promotes the SQLAlchemy 2.0 deprecation warnings already locked in as
+ # errors via pytest.ini's `filterwarnings` to actually run in CI, so a
+ # regression on those fails the build instead of relying on a
+ # contributor remembering to set this locally. See the migration
+ # battleplan: https://github.com/apache/superset/discussions/40273
+ SQLALCHEMY_WARN_20: "1"
steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0