ci: keep the ansible-core floor equal to the pinned core and the README's controller Python equal to .python-version #224

Open
opened 2026-11-16 12:25:51 +00:00 by Claude · 2 comments
Owner

Spec: Supported and tested ansible-core versions, resolution comment, items 2 and 4.

What to build

  • Floor check (Lint): fail when the minor of requires_ansible in meta/runtime.yml, or of any roles/*/meta/main.yml min_ansible_version, differs from the minor of ansible-core== in requirements-dev.txt. The floor is written >=X.Y.0 / "X.Y".
  • Python check (Lint): fail when the controller Python the README's support section states differs from .python-version.
  • Put both checks in an existing check script if one fits (check_image_versions.py pins already compares .python-version). If a new script is needed, it is a content check, so it runs from the PR's copy, as a pre-commit hook plus Lint.
  • Renovate post-upgrade task for an ansible-core minor or major bump: rewrite the floor lines and write changelogs/fragments/<name>.yml with a breaking_changes entry ("raise the minimum ansible-core to X.Y"). Patch bumps change nothing. Add the command to allowedPostUpgradeCommands where Renovate's config needs it.
  • Bot-diff gate (scripts/check_bot_pr_diff.py): on a renovate/ branch, also accept the requires_ansible line, the min_ansible_version lines and one new fragment whose only content is that breaking_changes entry. Add tests for an accepted and a refused case.
  • Keep the ansible-core rule's automerge in renovate.json; in its description, say that a minor bump raises the floor as a major.

Not in this issue

  • The first raise to 2.22 is #164.
  • The README support wording is #190.

Acceptance

  • Both checks fail on a mismatch and pass on main once #164 has merged.
  • renovate --platform=local or the gate's tests show the post-upgrade output passes the gate.
  • The PR says what was verified and what was not.
Spec: [Supported and tested ansible-core versions](https://git.rkdr.net/Mortis/Kamino/issues/206), resolution comment, items 2 and 4. ## What to build - **Floor check (Lint):** fail when the minor of `requires_ansible` in `meta/runtime.yml`, or of any `roles/*/meta/main.yml` `min_ansible_version`, differs from the minor of `ansible-core==` in `requirements-dev.txt`. The floor is written `>=X.Y.0` / `"X.Y"`. - **Python check (Lint):** fail when the controller Python the README's support section states differs from `.python-version`. - Put both checks in an existing check script if one fits (`check_image_versions.py pins` already compares `.python-version`). If a new script is needed, it is a content check, so it runs from the PR's copy, as a pre-commit hook plus Lint. - **Renovate post-upgrade task** for an ansible-core minor or major bump: rewrite the floor lines and write `changelogs/fragments/<name>.yml` with a `breaking_changes` entry ("raise the minimum ansible-core to X.Y"). Patch bumps change nothing. Add the command to `allowedPostUpgradeCommands` where Renovate's config needs it. - **Bot-diff gate** (`scripts/check_bot_pr_diff.py`): on a `renovate/` branch, also accept the `requires_ansible` line, the `min_ansible_version` lines and one new fragment whose only content is that `breaking_changes` entry. Add tests for an accepted and a refused case. - Keep the ansible-core rule's automerge in `renovate.json`; in its description, say that a minor bump raises the floor as a major. ## Not in this issue - The first raise to 2.22 is #164. - The README support wording is #190. ## Acceptance - [ ] Both checks fail on a mismatch and pass on `main` once #164 has merged. - [ ] `renovate --platform=local` or the gate's tests show the post-upgrade output passes the gate. - [ ] The PR says what was verified and what was not.
Claude added this to the Continuous delivery milestone 2026-11-16 12:25:51 +00:00
Claude added the
Status
Ready for Agent
label 2026-11-16 12:25:51 +00:00
Author
Owner

Review of the map (2026-11-17).

  • "Add the command to allowedPostUpgradeCommands" should read: add it to RENOVATE_ALLOWED_COMMANDS in .gitea/workflows/renovate.yml (a code-owned file) and add a postUpgradeTasks entry in renovate.json with fileFilters for the floor lines and the fragment. The image-versions issue removes today's only entry.
  • Name the post-upgrade script and give it tests. The Renovate container has no PyYAML, so it edits the lines as text.
  • The pull request says what was ruled out before a new script (code-style rule 1).
  • The floor moves and automerges before Molecule has run on the new core. Whether that stays is open in What Molecule proves before a merge, and who acts on the nightly run; one line here follows the answer.

Changed: this issue is now blocked by docs(readme): add the role table, semver and support policy, and a communication section. The Python check reads a README sentence that only that issue writes.

Review of the map (2026-11-17). - "Add the command to `allowedPostUpgradeCommands`" should read: add it to `RENOVATE_ALLOWED_COMMANDS` in `.gitea/workflows/renovate.yml` (a code-owned file) and add a `postUpgradeTasks` entry in `renovate.json` with `fileFilters` for the floor lines and the fragment. The image-versions issue removes today's only entry. - Name the post-upgrade script and give it tests. The Renovate container has no PyYAML, so it edits the lines as text. - The pull request says what was ruled out before a new script (code-style rule 1). - The floor moves and automerges before Molecule has run on the new core. Whether that stays is open in [What Molecule proves before a merge, and who acts on the nightly run](https://git.rkdr.net/Mortis/Kamino/issues/256); one line here follows the answer. Changed: this issue is now blocked by [docs(readme): add the role table, semver and support policy, and a communication section](https://git.rkdr.net/Mortis/Kamino/issues/190). The Python check reads a README sentence that only that issue writes.
Author
Owner

Correction from What Molecule proves before a merge, and who acts on the nightly run (2026-11-20)

Where this issue or its docs say the core bump "is behaviour-tested by its own PR": that is now true by construction.

  • The Molecule job installs the pull request's pins when they differ from the image (#225).
  • The floor-raise pull request selects every scenario through its meta/runtime.yml edit.
  • A core patch bump selects none; the ci pin pull request tests it.

Nothing else here changes.

## Correction from [What Molecule proves before a merge, and who acts on the nightly run](https://git.rkdr.net/Mortis/Kamino/issues/256) (2026-11-20) Where this issue or its docs say the core bump "is behaviour-tested by its own PR": that is now true by construction. - The Molecule job installs the pull request's pins when they differ from the image (#225). - The floor-raise pull request selects every scenario through its `meta/runtime.yml` edit. - A core **patch** bump selects none; the `ci` pin pull request tests it. Nothing else here changes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#224