Repository navigation
fix(ci): run on Python 3.13.18 and avoid an order-dependent pylint E1136 (#492) - #493
Merged
Merged
Conversation
…136 (#492) ubuntu-latest is now Ubuntu 26.04, which has no Python 3.13.11 build, so every job failed at setup-python. Pin 3.13.18, the latest 3.13 patch published for it. The SQLAlchemy models also failed lint with E1136 on Mapped[...] when pylint visited grading_attempt.py before grading_config.py: astroid caches Uninferable once an inference context exhausts its budget, so Mapped loses its ancestors for later files (pylint-dev/astroid#3383). The order comes from the filesystem, so CI was flaky. Postponed annotations in the model modules keep pylint from checking those subscripts; remove them once astroid ships the fix.
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
#492) Ubuntu 26.04 runners ship Docker 29, whose containerd snapshotter keeps Docker's own mountpoints (/app, /sbin/docker-init) in the container's writable layer; overlay2 kept them in its init layer. On ext4 each directory is a 4 KiB block, so a fresh read-only sandbox reports SizeRw 8192 before the submission runs, under runc and runsc alike. The storage tests now check that the writable layer holds only those mountpoints and that the probe leaves SizeRw unchanged, which still catches any byte a submission writes to host disk on either driver.
ArthurCRodrigues
approved these changes
Nov 21, 2026
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.
Closes #492
Every CI job fails at
actions/setup-python.ubuntu-latestis now Ubuntu 26.04, and no Python 3.13.11 build exists for it (example run). This unblocks #490 and the other PRs waiting on CI.Changes
.tool-versions:python 3.13.18, whichactions/python-versionspublishes for Ubuntu 22.04, 24.04 and 26.04. All 10setup-pythonsteps (verify, release, docs-pages) read this file. No other file pins the patch version: the Dockerfiles use the digest-pinnedpython:3.13-slim-trixie,pyproject.tomlrequires==3.13.*, and the docs say 3.13.web/database/models/*.py(the 5 modules usingMapped[...]):from __future__ import annotations. This fixes a separatemake lintfailure,E1136 unsubscriptable-objectonMapped[...]. It does not come from the Python bump: it reproduces on 3.13.11 with the locked pylint 4.1.3 / astroid 4.3.4 whenever pylint visitsgrading_attempt.pybeforegrading_config.py. That order follows the filesystem's directory listing, so CI could pass or fail by chance. The cause is that astroid cachesUninferableonce an inference context exhausts itsmax_inferredbudget, soMappedloses its ancestors for later files (Inference cache stores results truncated by the inference budget, making inference order-dependent pylint-dev/astroid#3383; the fix, Fix order-dependent inference caused by caching budget-truncated results pylint-dev/astroid#3384, is unreleased and 4.3.4 is the latest). Pylint does not check postponed annotations for subscriptability. Remove the import once astroid ships the fix.Verification
make linthas no E/F messages in either file order and is rated 9.56/10, the same as the last green run onmain.make test-web(SQLite HTTP tests, including the alembic upgrade check that migrations match the models) passes: 496 passed.test_missing_credentials_are_not_retryableread a local~/.awsconfig and passes with it hidden, andtest_trickled_error_body_is_boundedis a timing flake that passed 3/3 when rerun.configure_mappers()matchmainexactly.make test-postgreswas not run locally (it needs Docker). It covers the same mappers viaschema_differences == [].🤖 Generated with Claude Code