From a1d1d69f5eae4cffc2e94e0afe01dc8fc58052d4 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Sun, 12 Jul 2026 08:43:09 -0700 Subject: [PATCH] ci: enforce SQLAlchemy 2.0 deprecation warnings in unit-test CI (#41915) Co-authored-by: Claude Sonnet 5 --- .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