Repository navigation
fix(ci): remove Python 3.10 from the test matrix to unblock CI - #42058
Merged
Merged
Conversation
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]>
rusackas
requested review from
betodealmeida,
dpgaspar,
eschutho,
geido,
hainenber,
kgabryje,
mistercrunch,
nytai,
sadpandajoe,
sha174n and
villebro
as code owners
July 15, 2026 00:41
Contributor
|
Bito Automatic Review Skipped - Files Excluded |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sadpandajoe
approved these changes
Jul 15, 2026
1 of 9 tasks
rdg0
pushed a commit
to rdg0/superset
that referenced
this pull request
Jul 20, 2026
…e#42058) Co-authored-by: Claude Sonnet 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
Alternate, narrower fix for the master CI breakage described in #42007: drops Python 3.10 from the
previoustier of the GHA test matrix instead of pinningsyntaqliteback down.Root cause (from #42007):
syntaqlite0.5.0+ (bumped to 0.6.0 in #41952) unconditionally importsenum.StrEnum, which doesn't exist before Python 3.11.superset/sql_validators/sqlite.pyimportssyntaqliteon 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
syntaqlitepin-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 oldersyntaqlitepin 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 theprevious→3.10alias) and the four workflows that consume it (pre-commit.yml,superset-extensions-cli.yml,superset-python-integrationtest.yml,superset-python-unittest.yml). It intentionally leavespyproject.toml'srequires-python, docs, Docker image presets, and thesys.version_infocompat shims insuperset/app.py/superset/middleware/legacy_prefix_redirect.py/superset/utils/backports.pyuntouched — 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.)origin/masterto confirm the change is exactly the five matrix/alias lines below, no incidental changes:setup-backend/action.yml: removed theelif [ "$INPUT_PYTHON_VERSION" = "previous" ]; then RESOLVED_VERSION="3.10"branch["previous", "current", "next"]/["current", "previous", "next"]→["current", "next"]in the push/master matrix expressionADDITIONAL INFORMATION