Supported and tested ansible-core versions #206

Closed
opened 2026-11-16 06:10:51 +00:00 by Claude · 2 comments
Owner

Part of #87

Question

Resolve stale and contradictory claims decided "a stated floor is a tested floor" and so raises requires_ansible from 2.19 to 2.22, the one version CI installs. Which ansible-core versions does the Collection support, which does CI test, and how is a raised floor released?

  • ansible-core 2.22 needs controller Python 3.13 or newer. No ticket records that, and a consumer on Python 3.12 cannot run it.
  • The raise drops 2.20 and 2.21, both still maintained upstream.
  • Contributor doc set calls raising the floor a major release; the backlog ships it as a minor.
  • The alternative reading of the rule: keep the floor at the lowest version a consumer runs and have CI test the floor and the latest.
  • Molecule's ansible-core comes from a virtualenv this repository does not pin, so the "tested" version is not what Molecule runs. Should Molecule build its ansible-core from this repository's pins?
  • Is support open-ended above the floor, or bounded?

From the review

  • Amends, depending on the answer: the stale-claims issue (#164), the README issue (#190), meta/runtime.yml, the tool pins.
Part of #87 ## Question [Resolve stale and contradictory claims](https://git.rkdr.net/Mortis/Kamino/issues/95) decided "a stated floor is a tested floor" and so raises `requires_ansible` from 2.19 to 2.22, the one version CI installs. Which ansible-core versions does the Collection support, which does CI test, and how is a raised floor released? - ansible-core 2.22 needs controller Python 3.13 or newer. No ticket records that, and a consumer on Python 3.12 cannot run it. - The raise drops 2.20 and 2.21, both still maintained upstream. - [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103) calls raising the floor a major release; the backlog ships it as a minor. - The alternative reading of the rule: keep the floor at the lowest version a consumer runs and have CI test the floor and the latest. - Molecule's ansible-core comes from a virtualenv this repository does not pin, so the "tested" version is not what Molecule runs. Should Molecule build its ansible-core from this repository's pins? - Is support open-ended above the floor, or bounded? ## From the review - Amends, depending on the answer: the stale-claims issue (#164), the README issue (#190), `meta/runtime.yml`, the tool pins.
Claude added the
Wayfinder
Grilling
label 2026-11-16 06:10:51 +00:00
Author
Owner

Evidence from the review of the map (2026-11-15).

Controller Python 3.13

  • The installed ansible-core 2.22.0 package metadata says Requires-Python: >=3.13 (read from the virtualenv scripts/dev-setup.sh builds). A 2.22 pre-release changelog line found by search says "Drop support for Python 3.12 on the controller"; the final changelog was not checked.
  • Ubuntu 24.04's system Python is 3.12, so a 24.04 controller needs a separate Python 3.13.
  • A known consumer runs ansible-core 2.21 on Python 3.12 and cannot install 2.22 until it moves its tooling to Python 3.13. Confidence high on the facts.
  • Not verified: whether 2.21 warns or refuses when a Collection declares requires_ansible: ">=2.22.0".
  • The collection requirements ask the README for "Python support information" and say "Dropping Python support is a breaking change". No backlog issue puts controller Python into the README.

Dropping 2.20 and 2.21

  • ansible-core maintains three releases: 2.22, 2.21, 2.20 (release and maintenance). 2.22.0 went GA on 2026-11-02 (PyPI).
  • The same requirements page asks for sanity tests "against each currently supported ansible-core feature release". CI installs one version: requirements-dev.txt:11 pins ansible-core==2.22.0.

Major or minor

  • Contributor doc set lists "raising the ansible-core floor" as major, then makes the 2.19 to 2.22 change a minor "with a note that 2.19 was never tested, so never supported".
  • Today meta/runtime.yml:5 says requires_ansible: ">=2.19.0" and every role declares min_ansible_version 2.19, so a consumer may rely on it.

Two readings of "a stated floor is a tested floor"

The findings disagree here.

Reading Floor CI Cost
Latest only 2.22 one core, as now consumers on 2.20/2.21 or Python 3.12 are dropped; say so in the README
Lowest a consumer runs 2.21 today floor and latest a sanity matrix of two cores
  • One finding: the rule is right, the direction is wrong; the floor should be the lowest core real consumers run, and CI should test it. Recommendation from that finding: decide this before docs: correct stale claims about roles, licensing, the ansible-core floor and build_ignore is implemented.
  • Another finding: testing only the newest core can be a conscious policy, if stated as such ("we test only the newest ansible-core; Python 3.13 or newer on the controller"), and the raise is then either a major or a recorded exception.

Molecule's ansible-core

  • molecule.yml:20 says "The molecule venv is provisioned on the runner"; it is built outside this repository, so its ansible-core is not this repository's pin. Lint, Build and sanity use requirements-dev.txt.
  • So the stated floor is sanity-tested but not behaviour-tested, and Molecule's core can change without a change here.
  • Option seen: build the molecule virtualenv from requirements-dev.lock in the Molecule job, cached by checksum like the collections already are (molecule.yml:21-23). Not costed.

Open-ended or bounded

  • Contributor doc set states "Support: ... ansible-core ≥ 2.22" with no ceiling, while CI tests one version.
  • Option seen: no action, or one README line: "tested on the pinned ansible-core; newer is expected to work". Low severity.
Evidence from the review of the map (2026-11-15). ### Controller Python 3.13 - The installed ansible-core 2.22.0 package metadata says `Requires-Python: >=3.13` (read from the virtualenv `scripts/dev-setup.sh` builds). A 2.22 pre-release changelog line found by search says "Drop support for Python 3.12 on the controller"; the final changelog was not checked. - Ubuntu 24.04's system Python is 3.12, so a 24.04 controller needs a separate Python 3.13. - A known consumer runs ansible-core 2.21 on Python 3.12 and cannot install 2.22 until it moves its tooling to Python 3.13. Confidence high on the facts. - Not verified: whether 2.21 warns or refuses when a Collection declares `requires_ansible: ">=2.22.0"`. - The [collection requirements](https://docs.ansible.com/ansible/latest/community/collection_contributors/collection_requirements.html) ask the README for "Python support information" and say "Dropping Python support is a breaking change". No backlog issue puts controller Python into the README. ### Dropping 2.20 and 2.21 - ansible-core maintains three releases: 2.22, 2.21, 2.20 ([release and maintenance](https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html)). 2.22.0 went GA on 2026-11-02 (PyPI). - The same requirements page asks for sanity tests "against each currently supported ansible-core feature release". CI installs one version: `requirements-dev.txt:11` pins `ansible-core==2.22.0`. ### Major or minor - [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103) lists "raising the ansible-core floor" as major, then makes the 2.19 to 2.22 change a minor "with a note that 2.19 was never tested, so never supported". - Today `meta/runtime.yml:5` says `requires_ansible: ">=2.19.0"` and every role declares `min_ansible_version` 2.19, so a consumer may rely on it. ### Two readings of "a stated floor is a tested floor" The findings disagree here. | Reading | Floor | CI | Cost | |---|---|---|---| | Latest only | 2.22 | one core, as now | consumers on 2.20/2.21 or Python 3.12 are dropped; say so in the README | | Lowest a consumer runs | 2.21 today | floor and latest | a sanity matrix of two cores | - One finding: the rule is right, the direction is wrong; the floor should be the lowest core real consumers run, and CI should test it. Recommendation from that finding: decide this before [docs: correct stale claims about roles, licensing, the ansible-core floor and build_ignore](https://git.rkdr.net/Mortis/Kamino/issues/164) is implemented. - Another finding: testing only the newest core can be a conscious policy, if stated as such ("we test only the newest ansible-core; Python 3.13 or newer on the controller"), and the raise is then either a major or a recorded exception. ### Molecule's ansible-core - `molecule.yml:20` says "The molecule venv is provisioned on the runner"; it is built outside this repository, so its ansible-core is not this repository's pin. Lint, Build and sanity use `requirements-dev.txt`. - So the stated floor is sanity-tested but not behaviour-tested, and Molecule's core can change without a change here. - Option seen: build the molecule virtualenv from `requirements-dev.lock` in the Molecule job, cached by checksum like the collections already are (`molecule.yml:21-23`). Not costed. ### Open-ended or bounded - [Contributor doc set](https://git.rkdr.net/Mortis/Kamino/issues/103) states "Support: ... ansible-core ≥ 2.22" with no ceiling, while CI tests one version. - Option seen: no action, or one README line: "tested on the pinned ansible-core; newer is expected to work". Low severity.
Defame1297 was assigned by Claude 2026-11-16 12:09:12 +00:00
Author
Owner

Resolution

Decided with the maintainer, 2026-11-16.

  1. Latest only. The Collection supports exactly the ansible-core minor that requirements-dev.txt pins, and CI tests only that one (sanity, lint and Molecule). Support has no ceiling: the README says "tested on the pinned ansible-core; newer is expected to work". Floor-and-latest and "every upstream-maintained core" were rejected because the maintainer prefers to stay current over carrying a sanity matrix.
  2. The floor follows the pin. meta/runtime.yml states requires_ansible: ">=X.Y.0" and every role's min_ansible_version is "X.Y", both equal to the pinned minor. Patch bumps don't touch them.
    • Control: a Lint check fails when the floor's minor differs from the pin's minor.
    • Renovate's ansible-core minor bump arrives as one PR: a post-upgrade task moves the floor lines and writes a breaking_changes fragment, and the bot-diff gate (run from main's copy) accepts those lines and that one fragment.
    • It keeps automerging as today (renovate.json, PR #45). The human step is the maintainer's merge of the release pull request, which shows the major.
    • Checked against Release automation (the version comes from fragment sections, so the release becomes a major), Renovate automerge posture (no new exception) and the fragment-presence check (#183): no conflict. Release path: fragment check, failed publish and tarball integrity must accept this fragment.
  3. Every floor raise is a major release, this first one included. 2.19 → 2.22 ships as 2.0.0 with a breaking_changes fragment, which settles the open point in #164. There is no 1.x maintenance branch (latest-only support). The known consumer (2.21 on Python 3.12) stays on its last 1.x tag until it moves its controller to Python 3.14.
  4. Controller Python is part of the support statement. The README states "controller Python 3.14", the version in .python-version, which is the only one CI runs. Control: a Lint check that the README line matches .python-version. Dropping a Python version is breaking. The core's own minimum (3.13) is not stated because it is untested here.
  5. Molecule's toolchain is baked into the ci image. molecule and its Docker driver get pinned in requirements-dev.txt, so sanity, lint and Molecule share one pin and Renovate's core bump is behaviour-tested by its own PR. The runner-provisioned /opt/molecule-venv goes, which also removes a dependency on something outside this repository. How the job reaches the Docker daemon from the image is handed to Molecule and Renovate on the shared runner.
  6. No ADR: easy to reverse (a policy line and one check). No upstream bug forcing an ansible-core pin is recorded in this repository. The 2.19 floor was copied from the environment repository's image pin, and the only version-forced change found is #81 (Python 3.13 for 2.22).

Backlog

  • Floor follows the pin (filed below).
  • Molecule toolchain in the ci image (filed below).
  • Corrections posted on stale claims and README.
## Resolution Decided with the maintainer, 2026-11-16. 1. **Latest only.** The Collection supports exactly the ansible-core minor that `requirements-dev.txt` pins, and CI tests only that one (sanity, lint and Molecule). Support has no ceiling: the README says "tested on the pinned ansible-core; newer is expected to work". Floor-and-latest and "every upstream-maintained core" were rejected because the maintainer prefers to stay current over carrying a sanity matrix. 2. **The floor follows the pin.** `meta/runtime.yml` states `requires_ansible: ">=X.Y.0"` and every role's `min_ansible_version` is `"X.Y"`, both equal to the pinned minor. Patch bumps don't touch them. - Control: a Lint check fails when the floor's minor differs from the pin's minor. - Renovate's ansible-core minor bump arrives as one PR: a post-upgrade task moves the floor lines and writes a `breaking_changes` fragment, and the bot-diff gate (run from `main`'s copy) accepts those lines and that one fragment. - It keeps automerging as today (`renovate.json`, PR #45). The human step is the maintainer's merge of the release pull request, which shows the major. - Checked against [Release automation](https://git.rkdr.net/Mortis/Kamino/issues/98) (the version comes from fragment sections, so the release becomes a major), [Renovate automerge posture](https://git.rkdr.net/Mortis/Kamino/issues/97) (no new exception) and the fragment-presence check (#183): no conflict. [Release path: fragment check, failed publish and tarball integrity](https://git.rkdr.net/Mortis/Kamino/issues/211) must accept this fragment. 3. **Every floor raise is a major release, this first one included.** 2.19 → 2.22 ships as 2.0.0 with a `breaking_changes` fragment, which settles the open point in #164. There is no 1.x maintenance branch (latest-only support). The known consumer (2.21 on Python 3.12) stays on its last 1.x tag until it moves its controller to Python 3.14. 4. **Controller Python is part of the support statement.** The README states "controller Python 3.14", the version in `.python-version`, which is the only one CI runs. Control: a Lint check that the README line matches `.python-version`. Dropping a Python version is breaking. The core's own minimum (3.13) is not stated because it is untested here. 5. **Molecule's toolchain is baked into the `ci` image.** `molecule` and its Docker driver get pinned in `requirements-dev.txt`, so sanity, lint and Molecule share one pin and Renovate's core bump is behaviour-tested by its own PR. The runner-provisioned `/opt/molecule-venv` goes, which also removes a dependency on something outside this repository. How the job reaches the Docker daemon from the image is handed to [Molecule and Renovate on the shared runner](https://git.rkdr.net/Mortis/Kamino/issues/212). 6. **No ADR:** easy to reverse (a policy line and one check). No upstream bug forcing an ansible-core pin is recorded in this repository. The 2.19 floor was copied from the environment repository's image pin, and the only version-forced change found is #81 (Python 3.13 for 2.22). ## Backlog - Floor follows the pin (filed below). - Molecule toolchain in the ci image (filed below). - Corrections posted on [stale claims](https://git.rkdr.net/Mortis/Kamino/issues/164) and [README](https://git.rkdr.net/Mortis/Kamino/issues/190).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#206