Skip to content

ci(python-tests): add a 3.12 column beside 3.11 (step 1 of the interpreter move) - #3530

Merged
POWERFULMOVES merged 4 commits into
mainfrom
ci/python-tests-matrix-3.12
Nov 28, 2026
Merged

POWERFULMOVES merged 4 commits into
mainfrom
ci/python-tests-matrix-3.12

Conversation

@POWERFULMOVES

Copy link
Copy Markdown
Owner

Why

The service-test job in .github/workflows/python-tests.yml ran 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/main 7679f77:

Measurement Result
Merge Gate python-tests interpreter already 3.12
Service Dockerfiles on a python:3.x base 56 reference 3.11 (one mixes 3.11 and 3.12), 16 on 3.12, 2 on 3.10
Entries in the dependency union 31, with one pin: ruamel.yaml==0.19.1
Union resolved for x86_64 Linux, binary wheels only succeeds on 3.11 and on 3.12, 79 packages each
Differences between the two resolutions numpy 2.4.6 to 2.5.5, scipy 1.17.1 to 1.18.1

What changed

  • The matrix is now ['3.11', '3.12'], and fail-fast: false is kept. The run produces tests (3.11) and tests (3.12).
  • The workflow header names both columns, says both are advisory, and adds one dated paragraph explaining why the second column exists.
  • The docstring in pmoves/tests/test_python_tests_workflow_scope.py that explains the check by name now names both columns. Historical mentions of tests (3.11) are left as written.
  • The register CLAIM row for this lane rides along.

What was checked

  • Required contexts. The classic protection requires python-tests, hardening-validation, verify and submodule-gitlink-gate. The ruleset adds merge-decision. Neither requires any tests (3.x) check, so the new column cannot block a merge.
  • Install step. It contains no 3.11 literal and no sys.version check. The union builder was extracted from the workflow verbatim and resolved with uv pip compile --python-platform x86_64-unknown-linux-gnu --only-binary :all: on both interpreters. Both succeed.
  • Pip cache. setup-python keys its pip cache on the interpreter version, so the two columns do not share a cache entry.
  • 3.12 removals. The tested service code imports none of distutils, imp, asynchat, asyncore, smtpd or pkg_resources.
  • Warnings. pmoves/pyproject.toml sets no warnings-as-errors filter, so 3.12 deprecation warnings cannot fail the run.
  • Local runs. The workflow YAML parses. pmoves/tools/validate_fork_guards.py exits 0 with 0 unguarded jobs. The two test files that read this workflow pass on 3.12: 99 passed.
uv run --no-project --python 3.12 --with-requirements .github/requirements-tests.txt \
  python -m pytest pmoves/tests/test_python_tests_workflow_scope.py \
  pmoves/tests/test_service_requirements_parseable.py -q -p no:cacheprovider
99 passed in 3.41s

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

  • Step 2: moving the python:3.11 service images to 3.12.
  • A 3.13 column.
  • Any change to branch protection or rulesets.

🤖 Generated with Claude Code

https://claude.ai/code/session_016aNs4q8tajdg1rcgaacrWS

…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
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1

  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

Parsing warnings: 1

Validation error: Unrecognized keys: "branches", "excluded_branches" at "reviews"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T10:27:22.206054Z e98d1ba PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot added workflows GitHub Actions workflows docs Documentation governance AGNOTE register / agent definitions / damage-control hooks labels Nov 25, 2026
…osed, offer to Z890 on record

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016aNs4q8tajdg1rcgaacrWS

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread .github/workflows/python-tests.yml Resolved
@github-actions

Copy link
Copy Markdown
Contributor

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 POWERFULMOVES left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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__.parent at PMOVES.YT/pmoves_yt_service/yt.py lines 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
@github-actions

Copy link
Copy Markdown
Contributor

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 POWERFULMOVES left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
@github-actions

Copy link
Copy Markdown
Contributor

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 POWERFULMOVES left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@POWERFULMOVES
POWERFULMOVES merged commit 7119300 into main Nov 28, 2026
47 checks passed
@POWERFULMOVES
POWERFULMOVES deleted the ci/python-tests-matrix-3.12 branch November 28, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation governance AGNOTE register / agent definitions / damage-control hooks workflows GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant