rusackas opened a new pull request, #42058:
URL: https://github.com/apache/superset/pull/42058
### 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
- [ ] Has associated issue: alternate to #42007; overlaps with #42045 (which
supersedes this once merged)
- [ ] Required feature flags:
- [ ] Changes UI
- [ ] Includes DB Migration
- [ ] Introduces new feature or API
- [x] Removes existing feature or API
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]