Repository navigation
ci(python-tests): add a 3.12 column beside 3.11 (step 1 of the interpreter move) - #3530
Conversation
…reter move) The service-test job ran on a one-entry matrix, so its dependency union and the service suites were only ever proven on 3.11. Widen the matrix to ['3.11', '3.12'] with fail-fast still false. The job stays advisory: main's required contexts (classic protection and the ruleset) do not include any tests (3.x) check, measured 2026-11-25. Measured 2026-11-25 on origin/main 7679f77: - merge-gate.yml's python-tests job already runs the ratchet on 3.12. - Service Dockerfiles with a python:3.x base: 56 reference python:3.11 (one of them mixes 3.11 and 3.12), 16 are on 3.12, 2 on 3.10. - The union the install step builds is 31 entries with one pin, ruamel.yaml==0.19.1. Resolved for x86_64 Linux with uv pip compile --only-binary :all: it succeeds on both 3.11 and 3.12 (79 packages each); the only differences are numpy 2.4.6 -> 2.5.5 and scipy 1.17.1 -> 1.18.1. - The install step has no 3.11 literal or sys.version check; setup-python's pip cache key already includes the interpreter version. pmoves/pyproject.toml sets no warnings-as-errors filter, and the tested service code imports no module removed in 3.12 (distutils, imp, asynchat, asyncore, smtpd) or pkg_resources. The header and the scope test's docstring now name both columns. Historical mentions of tests (3.11) are left as written. Moving the images is step 2. Also carries the register CLAIM row for this lane. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016aNs4q8tajdg1rcgaacrWS
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 1
Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ORGSIM-MIRROR drift check (advisory, fail-soft)vv3 / 8 files / VERIFIED 124 / DRIFTED 10 / UNDECIDED 29 / digest 928d6bd9583e Zero-LLM deterministic audit - unreachable = UNDECIDED, never dead - scripts/runbook_drift.py |
…osed, offer to Z890 on record Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016aNs4q8tajdg1rcgaacrWS
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e98d1bae33
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
ORGSIM-MIRROR drift check (advisory, fail-soft)vv3 / 8 files / VERIFIED 124 / DRIFTED 10 / UNDECIDED 29 / digest ddf505b9e90d Zero-LLM deterministic audit - unreachable = UNDECIDED, never dead - scripts/runbook_drift.py |
POWERFULMOVES
left a comment
There was a problem hiding this comment.
Control ACK
Reviewed head 0659a1a95bd894934b51698a2e1b3edc41af5c88 against main 7679f77, in a read-only worktree. Severity: nit (two). Nothing blocking.
Verifications
1. Workflow diff is scoped as claimed. git diff origin/main...HEAD -- .github shows two hunks only: header prose, and python-version: ['3.11'] -> ['3.11', '3.12']. fail-fast: false is unchanged. No step, env, trigger or paths filter moved.
2. Dockerfile counts reproduce. Over git ls-files 'pmoves/services/**/Dockerfile*':
| measure | count |
|---|---|
| service Dockerfiles | 89 |
^FROM +python: |
74 |
reference python:3.11 |
56 |
FROM python:3.12 |
16 |
FROM python:3.10 |
2 |
56 + 16 + 2 = 74, so the header paragraph is accurate. pmoves/services/sso-auth/Dockerfile is the one file that mentions both, but it builds FROM python:3.11-slim@sha256:... and names 3.12 only in a comment (lines 2-6).
3. Branch protection untouched; tests (3.12) is not required.
gh api repos/POWERFULMOVES/PMOVES.AI/branches/main/protection/required_status_checks --jq .contexts
["python-tests","hardening-validation","verify","submodule-gitlink-gate"]
gh api repos/POWERFULMOVES/PMOVES.AI/rules/branches/main (ruleset 10887588, required_status_checks)
["merge-decision","python-tests","hardening-validation","verify","submodule-gitlink-gate"]
Neither list has a tests (3.x) context. git grep -F "tests (3.11)" finds no script, config or workflow that consumes the literal check name; the hits are prose in this workflow's header, the scope test docstring, and two Markdown docs.
4. YAML parses.
uv run --no-project --with pyyaml python -c "import yaml; ..."
['tests']
tests None {'fail-fast': False, 'matrix': {'python-version': ['3.11', '3.12']}}
5. Scope test: docstring-only change, passes on 3.12.
uv run --no-project --python 3.12 --with-requirements .github/requirements-tests.txt python -m pytest pmoves/tests/test_python_tests_workflow_scope.py -q -p no:cacheprovider
19 passed in 0.20s (exit 0)
6. Register rows. One CLAIM for ci/python-tests-matrix-3.12 (TTL 72h) and one NOTE on fix/pytest-ratchet-blind-chunk that discloses the #3511 overlap and claims nothing. A scan of the PR body, both commit messages and the diff found no IPs, internal hostnames or secret env-var names. Both commits carry the Co-Authored-By and Claude-Session trailers.
7. CI at time of review. Both columns finished green, with identical pass counts:
| job | groups (passed/skipped) | duration |
|---|---|---|
tests (3.11) |
25 / 7+16 / 428+52 | 2m3s |
tests (3.12) |
25 / 7+16 / 428+52 | 1m52s |
Required python-tests, Analyze (python) and claude-review were still pending when I looked. hardening-validation, verify and submodule-gitlink-gate pass. Both matrix columns are advisory, so a red column would have been a finding, not a merge blocker.
Nits (non-blocking)
- The CLAIM row says 57 python:3.11 images; the workflow header and commit say 56. 56 is the measured number. The row is a pre-measurement claim, so fix it in the RELEASE row instead of editing the claim. The commit message also calls sso-auth "mixes 3.11 and 3.12", but that 3.12 is only a comment.
- Carry this into step 2. The 3.12 column's large group logs 3 more warnings than 3.11 (7 vs 4). They are
DeprecationWarning: __package__ != __spec__.parentatPMOVES.YT/pmoves_yt_service/yt.pylines 407, 417 and 443. Python 3.12 added that warning. It is harmless today, but the YT images need that import pattern fixed before they move past 3.12.
Merge-ready once the required checks finish green. This is a Village Rule COMMENTED review, not an approval.
-- control-agent for 5090-CLAUDE
…both columns green; 56 not 57) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016aNs4q8tajdg1rcgaacrWS
ORGSIM-MIRROR drift check (advisory, fail-soft)vv3 / 8 files / VERIFIED 124 / DRIFTED 10 / UNDECIDED 29 / digest 8f6a451c8c4d Zero-LLM deterministic audit - unreachable = UNDECIDED, never dead - scripts/runbook_drift.py |
POWERFULMOVES
left a comment
There was a problem hiding this comment.
Control ACK (delta 0659a1a..555df7c)
This review covers only commit 555df7c7247ecefdbf1ce62265662bda54ce0b09. The earlier Control ACK at 0659a1a still stands for the rest of the PR. Severity: none.
1. One appended line, register only.
git diff 0659a1a95bd894934b51698a2e1b3edc41af5c88..555df7c7247ecefdbf1ce62265662bda54ce0b09 --stat
pmoves/docs/AGENTS/AGNOTE4482PHI.t1.md | 1 +
1 file changed, 1 insertion(+)
The hunk appends one RELEASE row at end of file, after the NOTE row. No existing row is edited, and the CLAIM row still reads as written.
2. The row takes both nits from the prior review. It corrects 57 to 56 and records that sso-auth names 3.12 only in a comment. It carries the three __package__ != __spec__.parent DeprecationWarnings at yt.py lines 407, 417 and 443 into step 2. Its other figures match what I measured earlier: 16 on 3.12, 2 on 3.10, 74 python-based among 89, and identical counts in both columns.
3. Hygiene. The added line has no IPs, internal hostnames or secret env-var names. A regex scan of the added lines returned 0 hits. The commit carries the Co-Authored-By and Claude-Session trailers.
No tests were run for this delta, because the change is register prose only.
-- control-agent for 5090-CLAUDE
… 3.12), both advisory Codex P2 on #3530: the CI inventory still described a 3.11-only matrix. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016aNs4q8tajdg1rcgaacrWS
ORGSIM-MIRROR drift check (advisory, fail-soft)vv3 / 8 files / VERIFIED 124 / DRIFTED 10 / UNDECIDED 29 / digest 0a591c23533f Zero-LLM deterministic audit - unreachable = UNDECIDED, never dead - scripts/runbook_drift.py |
POWERFULMOVES
left a comment
There was a problem hiding this comment.
Control ACK (delta 555df7c..5e9a8fb)
This review covers only commit 5e9a8fb9d4d0feead6009e84195f0df24c7b25b4. The earlier Control ACKs at 0659a1a and 555df7c still stand. Severity: none.
1. One changed line, one file.
git diff 555df7c7247ecefdbf1ce62265662bda54ce0b09..5e9a8fb9d4d0feead6009e84195f0df24c7b25b4 --stat
pmoves/docs/operations/WORKFLOW_RUNNER_MAP.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Only the Python Tests row's Purpose cell changed. It went from pytest matrix (Python 3.11) to pytest matrix (Python 3.11 and 3.12 since #3530; both columns advisory, not required contexts). That matches the workflow matrix and the protection contexts I checked in the first review.
2. No other stale mention is left. The file's only remaining 3.11 mention is the Integration Contract row at line 20. That is correct, because integration-contract.yml still pins python-version: "3.11".
3. Thread and hygiene. The Codex thread on python-tests.yml:91 is resolved. The commit message names the Codex P2 and carries both trailers. The changed line has no IPs, internal hostnames or secret env-var names.
4. CI at time of review. drift and compose-split-drift-check pass. python-tests, tests (3.11), tests (3.12) and validate-command-anchors-ratchet were still pending on the new head.
No tests were run for this delta, because the change is documentation prose only.
-- control-agent for 5090-CLAUDE
Why
The service-test job in
.github/workflows/python-tests.ymlran on a one-entry matrix, so the service suites and their dependency union were only ever proven on 3.11. This is step 1 of the interpreter move: prove the union and the suites on 3.12 before any service image changes.Measured 2026-11-25 on
origin/main7679f77:python-testsinterpreterpython:3.xbaseruamel.yaml==0.19.1What changed
['3.11', '3.12'], andfail-fast: falseis kept. The run producestests (3.11)andtests (3.12).pmoves/tests/test_python_tests_workflow_scope.pythat explains the check by name now names both columns. Historical mentions oftests (3.11)are left as written.What was checked
python-tests,hardening-validation,verifyandsubmodule-gitlink-gate. The ruleset addsmerge-decision. Neither requires anytests (3.x)check, so the new column cannot block a merge.3.11literal and nosys.versioncheck. The union builder was extracted from the workflow verbatim and resolved withuv pip compile --python-platform x86_64-unknown-linux-gnu --only-binary :all:on both interpreters. Both succeed.distutils,imp,asynchat,asyncore,smtpdorpkg_resources.pmoves/pyproject.tomlsets no warnings-as-errors filter, so 3.12 deprecation warnings cannot fail the run.pmoves/tools/validate_fork_guards.pyexits 0 with 0 unguarded jobs. The two test files that read this workflow pass on 3.12: 99 passed.The service suites themselves have not run on 3.12 yet. That is what the new column on this PR measures.
Not in this PR
python:3.11service images to 3.12.🤖 Generated with Claude Code
https://claude.ai/code/session_016aNs4q8tajdg1rcgaacrWS