ADR-3312: One Renovate manager owns the CI Python interpreter¶
- Status: Accepted
- Date: 2026-10-14
- Deciders: Lusoris (operator decision vmafx-2744-python-315)
- Tags: ci, renovate, python, supply-chain
Context¶
CI installs one Python interpreter, named twice: PYTHON_CI_VERSION in build-config.env and the python-version: input of every actions/setup-python step under .github/workflows/. scripts/ci/check-workflow-versions.py refuses a workflow pin that differs from build-config.env, so the two must move in one commit.
Renovate's github-actions manager extracts each python-version: input as dependency python (datasource github-releases, package actions/python-versions) and raises it on its own. No manager read PYTHON_CI_VERSION. A Python release therefore produced a pull request that changed the workflows and left build-config.env behind, which the single-source gate refuses by construction. Pull request #2744 (3.14.8 to 3.15.0) is such a pull request. Python 3.15 is also a minor-version change inside the 1.0.0 scope freeze.
Decision¶
- A regex custom manager in
renovate.jsonreadsPYTHON_CI_VERSIONfrombuild-config.envand everypython-version:pin of a workflow file, as one dependencypythonfromactions/python-versionswith the datasource, versioning (npm) andextractVersionthegithub-actionsmanager uses for setup-python. Renovate groups a dependency's files into one branch, so the interpreter moves in one pull request. - A package rule disables the
github-actionsmanager'spython(uses-with) dependency, so only the custom manager raises those pins. - A package rule names the group
CI Python interpreter, keeps updates below3.15.0until the 1.0.0 freeze decision is revisited, and auto-merges patch updates under the normal required checks. scripts/ci/tests/test_renovate_file_patterns.pyholds the manager to the pins the single-source gate reads.
Alternatives considered¶
| Option | Pros | Cons | Why not chosen |
|---|---|---|---|
| Custom manager owns both files; github-actions copy disabled (chosen) | One pull request per interpreter release; the gate's two sides move together | One more regex manager to keep in step with the gate | — |
Keep the github-actions manager and add a custom manager for build-config.env only | Smaller change | Two managers, two branches for one version; the first to land fails the gate | Splits one dependency across two pull requests |
Make build-config.env the only pin and have workflows read it at run time | One literal | setup-python takes the version as an input; every workflow needs a read step before it, and the pin leaves Renovate's view of the workflow | More moving parts in 14 workflows than the drift it removes |
Merge #2744 by hand with build-config.env added | Takes 3.15 now | Python 3.15 is a minor change inside the 1.0.0 freeze; the next release repeats the split | The freeze defers 3.15 (paraphrased operator decision) |
Consequences¶
- The next Python patch release opens one pull request titled after the
CI Python interpretergroup that changesbuild-config.envand the workflow pins together, and passescheck-workflow-versions.py. - Pull request #2744 is superseded; Renovate closes or rebases it once its dependency is disabled for the
github-actionsmanager. - Raising the interpreter to 3.15 is a later decision: lift the
allowedVersionsbound in the same change that raises mypy'spython_versionandrequires-python(ADR-1282).
Supply-chain impact¶
None on shipped artifacts. The interpreter source and versioning are unchanged; only the manager that opens the update changes.
SBOM delta¶
None.
Carbon / footprint¶
One Renovate pull request per interpreter release instead of one that fails its checks and one follow-up.
References¶
- Operator decision
vmafx-2744-python-315, 2026-10-13 (paraphrased): keep #2744 open, add a custom manager that ownsPYTHON_CI_VERSIONand the workflow pins as one group, stop the github-actions manager touching them, and defer Python 3.15 past the 1.0.0 freeze. - ADR-0363: Renovate as the update bot.
- ADR-1282: mypy's
python_versionfollowsPYTHON_CI_VERSION. scripts/ci/check-workflow-versions.py: the single-source gate.