test(roles): run the Ubuntu roles on 24.04 and 26.04 and declare exactly those #381

Open
Claude wants to merge 1 commits from test/133-ubuntu-2404-2604 into main
pull from: test/133-ubuntu-2404-2604
Owner

What and why

Closes #133

A declared platform is one the role passes Molecule on in CI (#207, #257). Every role except network_interfaces now:

  • runs each molecule scenario on ${MOLECULE_IMAGE} (24.04) and ${MOLECULE_IMAGE_2604} (26.04), including _binary_update/molecule/check_mode;
  • declares exactly Ubuntu noble and resolute: jammy is dropped (sshd, system_baseline, systemd_hardening, ufw, user_management);
  • says so in its README "Supported platforms" and "Tests", with one line on why it covers fewer than three releases.

trixie stays declared in sshd, system_baseline, systemd_hardening and user_management until #226 tests it. network_interfaces and system_baseline/tasks/tmux.yml are untouched.

Exceptions, per the issue's Notes ("a role that cannot pass on 26.04 yet keeps noble only and gets its own issue"):

  • docker and gitea stay on noble (docker narrowed from all): the 26.04 molecule image lacks gnupg, which both scenarios use on the target. Follow-up: #378. Recorded as an accepted exception in roles/AGENTS.md.
  • pihole (merged after the issue was written) is in scope and gains resolute. It is unreleased, so its own fragment is updated instead of the 2604 fragment.

Fragments:

  • breaking_changes: jammy dropped in five roles; docker's all narrowed to noble.
  • minor_changes: resolute added to nine roles.

_binary_update is internal and outside semver, so it is not named.

Release note for the maintainer: 2.0.0 has already shipped, so these breaking_changes make the next release built from the fragments 3.0.0, not part of 2.0.0 as #257 decision 4 intended.

Verified

  • pre-commit run --all-files with the dev environment from scripts/dev-setup.sh. All hooks pass, including ansible-lint (schema[meta] accepts resolute), yamllint, antsibull-changelog lint and REUSE.
  • ansible-test sanity (pre-push hook) passed on push.
  • Every 2604 platform is identical to its 2404 counterpart except name and image (checked by review).
  • scripts/run_molecule_scenarios.sh removes containers by every platform name in molecule.yml, so two platforms per scenario are cleaned up.
  • The two images differ only in gnupg. No scenario now running on 26.04 calls gpg without installing it.

Not verified

  • Molecule on 26.04: it runs only in CI, so this pull request's Molecule run is the first real test. Risks found in review but not testable locally:
    • sshd verify.yml expects sshd -T to print permitrootlogin without-password, and 26.04 ships OpenSSH 10.
    • user_management's visudo -c / sudo -l assertions, since 26.04 defaults to sudo-rs.
    • system_baseline's prepare installs telnet, and its defaults include the transitional apt-transport-https.
    • pihole's dnsutils and lighttpd-mod-deflate may be missing from the resolute archive.
  • A role that fails on 26.04 will be reverted to noble only in this pull request, with its own issue, per #133's Notes.
  • The added CI time (about twice the Molecule containers on a full run) is not measured.

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

Assisted-by: Claude Code

## What and why Closes #133 A declared platform is one the role passes Molecule on in CI (#207, #257). Every role except `network_interfaces` now: - runs each molecule scenario on `${MOLECULE_IMAGE}` (24.04) and `${MOLECULE_IMAGE_2604}` (26.04), including `_binary_update/molecule/check_mode`; - declares exactly Ubuntu `noble` and `resolute`: `jammy` is dropped (sshd, system_baseline, systemd_hardening, ufw, user_management); - says so in its README "Supported platforms" and "Tests", with one line on why it covers fewer than three releases. `trixie` stays declared in sshd, system_baseline, systemd_hardening and user_management until #226 tests it. `network_interfaces` and `system_baseline/tasks/tmux.yml` are untouched. Exceptions, per the issue's Notes ("a role that cannot pass on 26.04 yet keeps `noble` only and gets its own issue"): - **docker and gitea stay on `noble`** (docker narrowed from `all`): the 26.04 molecule image lacks `gnupg`, which both scenarios use on the target. Follow-up: #378. Recorded as an accepted exception in `roles/AGENTS.md`. - **pihole** (merged after the issue was written) is in scope and gains `resolute`. It is unreleased, so its own fragment is updated instead of the 2604 fragment. Fragments: - `breaking_changes`: `jammy` dropped in five roles; docker's `all` narrowed to `noble`. - `minor_changes`: `resolute` added to nine roles. `_binary_update` is internal and outside semver, so it is not named. **Release note for the maintainer:** 2.0.0 has already shipped, so these `breaking_changes` make the next release built from the fragments **3.0.0**, not part of 2.0.0 as #257 decision 4 intended. ## Verified - `pre-commit run --all-files` with the dev environment from `scripts/dev-setup.sh`. All hooks pass, including ansible-lint (`schema[meta]` accepts `resolute`), yamllint, antsibull-changelog lint and REUSE. - `ansible-test sanity` (pre-push hook) passed on push. - Every 2604 platform is identical to its 2404 counterpart except name and image (checked by review). - `scripts/run_molecule_scenarios.sh` removes containers by every platform name in `molecule.yml`, so two platforms per scenario are cleaned up. - The two images differ only in `gnupg`. No scenario now running on 26.04 calls `gpg` without installing it. ## Not verified - **Molecule on 26.04:** it runs only in CI, so this pull request's Molecule run is the first real test. Risks found in review but not testable locally: - sshd `verify.yml` expects `sshd -T` to print `permitrootlogin without-password`, and 26.04 ships OpenSSH 10. - user_management's `visudo -c` / `sudo -l` assertions, since 26.04 defaults to sudo-rs. - system_baseline's prepare installs `telnet`, and its defaults include the transitional `apt-transport-https`. - pihole's `dnsutils` and `lighttpd-mod-deflate` may be missing from the resolute archive. - A role that fails on 26.04 will be reverted to `noble` only in this pull request, with its own issue, per #133's Notes. - The added CI time (about twice the Molecule containers on a full run) is not measured. --- - [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none. Assisted-by: Claude Code
Claude added this to the Continuous delivery milestone 2026-11-25 20:19:00 +00:00
Defame1297 was assigned by Claude 2026-11-25 20:19:00 +00:00
Claude added 1 commit 2026-11-25 20:19:00 +00:00
test(roles): run the Ubuntu roles on 24.04 and 26.04 and declare exactly those
Build / build (pull_request) Successful in 51s
Lint / lint (pull_request) Successful in 3m42s
Molecule / molecule (pull_request) Failing after 20m50s
2e1ad033e4
Every role except network_interfaces runs its molecule scenarios on the
24.04 and 26.04 images and declares Ubuntu noble and resolute; jammy and
Ubuntu all are dropped. trixie stays declared until the Debian 13 image
(#226) tests it. docker and gitea stay on noble until the 26.04 image
ships gnupg (#378).

Closes #133

Assisted-by: Claude Code
CODEOWNERS rules requested review from Defame1297 2026-11-25 20:19:00 +00:00
Some required checks failed
Build / build (pull_request) Successful in 51s
Required
Details
Lint / lint (pull_request) Successful in 3m42s
Required
Details
Molecule / molecule (pull_request) Failing after 20m50s
Required
Details
This pull request has changes conflicting with the target branch.
  • changelogs/fragments/pihole-role.yml
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin test/133-ubuntu-2404-2604:test/133-ubuntu-2404-2604
git checkout test/133-ubuntu-2404-2604
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#381