Require Python 3.12+#18
Merged
Merged
Conversation
Python 3.10 and 3.11 have a bug on macOS 15+ where os.stat() on files with high-precision nanosecond timestamps triggers infinite recursion: fill_time() → PyNumber_Multiply → k_mul → _PyErr_CheckSignalsTstate → signal handler → os_stat() again. This causes corpus downloads to hang indefinitely at ~200% CPU. - Bump minimum supported version from 3.10 to 3.12 in setup.py - Update runtime check in check_python_version() - Drop py310 and py311 from tox envlist - Document the macOS 15 incompatibility in DEVELOPER_GUIDE.md
- Remove PY310/PY311 from .ci/variables.json and bump MIN_PY_VER to 3.12.11 - Rename pyinst310/VERSION310 → pyinst312/VERSION312 in Makefile - Drop it310/it311 make targets; update develop target to use pyinst312
Update Python version references in quickstart.md, installing.md, and AGENTS.md to consistently state 3.12+ instead of 3.10+.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
pylint==2.9.0 uses inspect.formatargspec which was removed in Python 3.11+, causing ImportError on Python 3.12. Upgrade to pylint==3.3.9. pylint-quotes==0.2.1 uses removed IAstroidChecker/ITokenChecker interfaces from pylint and is incompatible with pylint 3.x; drop it along with the --load-plugins flag and the pylint-quotes section in .pylintrc. Disable new pylint 3.x checks (too-many-positional-arguments, cyclic-import, possibly-used-before-assignment, consider-using-min/max-builtin, use-yield-from) to avoid failing on pre-existing code patterns not covered by the old linter. Also fix overgeneral-exceptions config to use fully-qualified builtins names as required by pylint 3.x, and update PYTHON_SUPPORT_GUIDE.md examples to reference pyinst312/VERSION312 instead of the old pyinst310/VERSION310.
The docker-compose.yml.j2 template uses /solr/admin/info/system but the test expectations still referenced /solr/admin/ping, causing 2 CI failures.
janhoy
added a commit
to janhoy/solr-orbit
that referenced
this pull request
May 23, 2026
PR apache#18 bumped the minimum Python version to >=3.12 but the Dockerfile was still using python:3.11.2-slim, causing the Docker build to fail.
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
setup.py,check_python_version(), andtox.iniCloses #17
Background
Python 3.10/3.11 hang indefinitely (~200% CPU) during corpus downloads on macOS 15 (Darwin 25.4.0). Root cause is a CPython bug where
os.stat()on files with high-precision nanosecond timestamps triggers infinite recursion:Python 3.12 does not have this issue. Discovered by profiling the hung benchmark process with
sample.Test plan
pip install -e .[develop]succeedspython3 -m pytest tests/— all tests pass