Skip to content

fix(ci): remove Python 3.10 from the test matrix to unblock CI - #42058

Merged
rusackas merged 2 commits into
masterfrom
fix/remove-3.10-ci-matrix
Jul 15, 2026
Merged

rusackas merged 2 commits into
masterfrom
fix/remove-3.10-ci-matrix

Conversation

@rusackas

Copy link
Copy Markdown
Member

SUMMARY

Alternate, narrower fix for the master CI breakage described in #42007: drops Python 3.10 from the previous tier of the GHA test matrix instead of pinning syntaqlite back down.

Root cause (from #42007): syntaqlite 0.5.0+ (bumped to 0.6.0 in #41952) unconditionally imports enum.StrEnum, which doesn't exist before Python 3.11. superset/sql_validators/sqlite.py imports syntaqlite on the app-init path, so any test that builds the app fails at import time on the Python 3.10 ("previous") leg. That leg only runs on pushes to master (not PRs), which is why #41952 merged green and the break only surfaced on the next master push touching Python files.

Why this approach instead of #42007's syntaqlite pin-revert: Python 3.10 is close to upstream EOL (October 2026) and a fuller removal of 3.10 support is already in flight (#42045 — packaging metadata, docs, code-shim cleanup). Rather than reintroducing an older syntaqlite pin that will just get re-bumped and need re-pinning again, this stops testing 3.10 in CI now so master goes green immediately, without blocking on or duplicating the broader removal PR.

Scope, deliberately narrow: only touches .github/actions/setup-backend/action.yml (drops the previous → 3.10 alias) and the four workflows that consume it (pre-commit.yml, superset-extensions-cli.yml, superset-python-integrationtest.yml, superset-python-unittest.yml). It intentionally leaves pyproject.toml's requires-python, docs, Docker image presets, and the sys.version_info compat shims in superset/app.py / superset/middleware/legacy_prefix_redirect.py / superset/utils/backports.py untouched — those are covered by #42045 if/when it lands. If #42045 merges first, this PR becomes redundant and can be closed instead.

TESTING INSTRUCTIONS

  • pre-commit run --files <changed files> passes (yaml validity, zizmor GHA security audit, etc.)
  • Diffed against origin/master to confirm the change is exactly the five matrix/alias lines below, no incidental changes:
    • setup-backend/action.yml: removed the elif [ "$INPUT_PYTHON_VERSION" = "previous" ]; then RESOLVED_VERSION="3.10" branch
    • Four workflow files: ["previous", "current", "next"] / ["current", "previous", "next"] → ["current", "next"] in the push/master matrix expression

ADDITIONAL INFORMATION

Master's Python-Unit/Python-Integration/pre-commit/extensions-cli
"previous" (3.10) matrix leg has been red since #41952 bumped
syntaqlite 0.4.2 -> 0.6.0: syntaqlite 0.5.0+ unconditionally imports
enum.StrEnum, which doesn't exist before Python 3.11. Rather than
pinning syntaqlite back down (see #42007), this drops the 3.10 leg
from CI outright so the matrix stops testing an interpreter version
the app can no longer import cleanly against current dependencies.

This only touches the CI matrix (setup-backend's "previous" alias and
its four consumer workflows) — it intentionally leaves packaging
metadata (requires-python), docs, and the sys.version_info compat
shims alone, unlike the broader Python 3.10 removal in #42045.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@dosubot dosubot Bot added the github_actions Pull requests that update GitHub Actions code label Jul 15, 2026
@bito-code-review

bito-code-review Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Bito Automatic Review Skipped - Files Excluded

Bito didn't auto-review this change because all changed files are in the exclusion list for automatic reviews. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the excluded files settings here, or contact your Bito workspace admin at [email protected].

@codecov

codecov Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.49%. Comparing base (be768ef) to head (d79d686).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #42058   +/-   ##
=======================================
  Coverage   64.49%   64.49%           
=======================================
  Files        2747     2747           
  Lines      153843   153843           
  Branches    35268    35268           
=======================================
  Hits        99215    99215           
  Misses      52718    52718           
  Partials     1910     1910           
Flag Coverage Δ
hive 39.06% <ø> (ø)
mysql 57.89% <ø> (ø)
postgres 57.94% <ø> (ø)
presto 41.04% <ø> (ø)
python 58.15% <ø> (ø)
sqlite 57.55% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rusackas
rusackas merged commit c540f78 into master Jul 15, 2026
56 checks passed
@rusackas
rusackas deleted the fix/remove-3.10-ci-matrix branch July 15, 2026 22:48
rdg0 pushed a commit to rdg0/superset that referenced this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants