Commit Graph
286 Commits
Author SHA1 Message Date
Defame1297andClaude Opus 5.5 e18db424ec feat(ufw): add the ufw role
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Failing after 25s
Molecule / molecule (pull_request) Failing after 5m42s
Copied from the environment repository's local role. The files are
identical except: galaxy namespace mortis; comments, argument_specs
descriptions and the README scrubbed of environment references (issue
numbers, CI runs, playbooks, inventory paths and groups, scripts and
caller roles by name), with the technical explanation kept and reworded
generically; the stray-variable guard's fail message drops its issue
reference; the molecule scenario calls the role by its FQCN
(mortis.kamino.ufw), follows the Kamino scenario conventions
(kamino-molecule header, scenario.test_sequence) and no longer sets
ANSIBLE_COLLECTIONS_PATH or ANSIBLE_ROLES_PATH. No variable, default,
argument_specs type or task logic changed; the test coverage is the same.

The README follows the other Kamino roles: purpose, the main,
service_rules and orphan_rules entry points, variables, and example
plays with the FQCN and tasks_from. The meta licence stays
GPL-3.0-or-later AND GPL-3.0-only (templates/before.rules.j2 is derived
from ufw's own file, already annotated in REUSE.toml and NOTICE).
galaxy.yml's dependency comment names ufw as a community.general user.

Not verified locally: the molecule scenario (it runs on the
kamino-molecule runner in CI) and ansible-test sanity.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 16:43:29 +00:00
Defame1297 7fa6c6754d Merge pull request 'ci(images): use ci 0.2.18' (#127) from ci/ci-image-pin-0.2.18 into main
Build / build (push) Successful in 10s
Lint / lint (push) Successful in 20s
Reviewed-on: #127
2026-11-14 16:07:39 +00:00
Defame1297andClaude Sonnet 5.5 4cf442df92 ci(images): use ci 0.2.18
Build / build (pull_request) Successful in 24s
Lint / lint (pull_request) Successful in 21s
Molecule / molecule (pull_request) Successful in 1s
Move the ci pins of lint.yml and build.yml to the image the Images run built on main for #126 (the digest is the one the build printed and the registry serves for the 0.2.18 tag). PR 2 of the loop for the ansible-test sanity pre-push hook: the pin files of this repository match the checksums baked into the image again, so Lint takes the baked tools and collections instead of installing them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 16:06:08 +00:00
Defame1297 8e66a1154c Merge pull request 'ci: resolve the Collection's own roles in lint and run ansible-test sanity before a push' (#126) from ci/lint-resolve-own-collection into main
Build / build (push) Successful in 10s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.6) (push) Successful in 9s
Lint / lint (push) Successful in 29s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 10s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.18) (push) Successful in 4m16s
Reviewed-on: #126
2026-11-14 15:59:29 +00:00
Defame1297andClaude Sonnet 5.5 18a7e26e4f ci(hooks): run ansible-test sanity before a push
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 30s
Molecule / molecule (pull_request) Successful in 5m22s
Add a pre-push hook that runs scripts/ansible-test-sanity.sh, so the Build job's sanity check, which ruff and the other hooks do not cover (it failed on a name only its pylint disallows), stops a push instead of the pull request. It is pre-push and not pre-commit because a cold run builds virtualenvs and needs the network; CI's pre-commit run does not run that stage, and a local system hook builds no environment. pre-push joins default_install_hook_types, and dev-setup.sh and its test treat it like the other two hook types, so its hook script also gets the virtualenv on PATH.

Verified through git push --dry-run in a throwaway clone: a commit with a disallowed name inside a function is blocked (exit 1, the same pylint message as CI, failed to push), and the push passes once it is removed.

Image input: .pre-commit-config.yaml is baked into the ci image, so ci 0.2.17 -> 0.2.18 (scripts/bump_image_versions.py). The new hook adds no hook environment and no layer size; the merge builds 0.2.18 and a pin PR follows.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:52:35 +00:00
Defame1297andClaude Sonnet 5.5 574c0d00f9 ci(scripts): add a wrapper that runs ansible-test sanity on HEAD
ansible-test only runs a collection from an ansible_collections/<namespace>/<name> directory, so scripts/ansible-test-sanity.sh copies HEAD (git archive: the committed files only) into a temporary one, applies the Build job's ignore-file step and runs ansible-test sanity --requirements, passing extra arguments through. The sanity tests carry their own pylint, pep8 and shellcheck settings and also scan the Python under tests/, which ruff and the other hooks do not (the Build check failed on a name only that pylint disallows). The hook that runs it before a push follows in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:49:51 +00:00
Defame1297andClaude Sonnet 5.5 6b930a0f7e fix(tests): drop a name that ansible-test sanity pylint disallows
The Build check failed in ansible-test sanity: pylint reported tests/scripts/test_ansible_lint_wrapper.py:37:13 disallowed-name for `_`, from unpacking the middle of str.partition. Ruff accepts the name, but the pylint configuration of ansible-test, which also scans the Python under tests/, does not. Index the partition result instead. Reproduced locally with ansible-test sanity --test pylint on a copy of the tree under ansible_collections/mortis/kamino: the committed file fails with the same message, this one passes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:44:11 +00:00
Defame1297andClaude Sonnet 5.5 3289c0d430 ci(lint): resolve the Collection's own roles and drop mock_roles
Build / build (pull_request) Failing after 11s
Lint / lint (pull_request) Successful in 20s
Molecule / molecule (pull_request) Successful in 1s
Step 5 of #118. The scenarios' converge plays call the roles by FQCN (mortis.kamino.<role>), which only resolves from an ansible_collections/<namespace>/<name> directory, and a checkout is not one, so .ansible-lint listed the five roles in mock_roles and ansible-lint never checked those plays against the real roles.

scripts/ansible-lint.sh, which the ansible-lint hook runs in CI and locally, now links the checkout as ansible_collections/<namespace>/<name> in a temporary root (namespace and name read from galaxy.yml), puts that root first on ANSIBLE_COLLECTIONS_PATH and removes it on exit, so ansible-lint reads the checkout itself. Removing mock_roles reproduced five syntax-check[specific] role-not-found errors; with the link the run passes with no warnings, locally and with CI's preset path. A bare ansible-lint, outside the hook, does not get the link; .ansible-lint says so.

No image input changes: .pre-commit-config.yaml, requirements and images/** are untouched, so no version bump or second pull request. Closes the last open item of #118.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:38:34 +00:00
Defame1297 8c743c125a Merge pull request 'ci(images): use ci 0.2.17' (#125) from ci/ci-image-pin-0.2.17 into main
Build / build (push) Successful in 11s
Lint / lint (push) Successful in 19s
Reviewed-on: #125
2026-11-14 15:32:59 +00:00
Defame1297andClaude Sonnet 5.5 462a2d24f3 ci(images): use ci 0.2.17
Build / build (pull_request) Successful in 24s
Lint / lint (pull_request) Successful in 20s
Molecule / molecule (pull_request) Successful in 1s
Move the ci pins of lint.yml and build.yml to the image the Images run built on main for #123 (the digest is the one the build printed and the registry serves for the 0.2.17 tag). This is PR 2 of the loop for the ruff and shellcheck hooks and the baked collections (#112, #118): the pin files of this repository now match the checksums baked into the image, so Lint takes the baked tools and collections instead of installing them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:31:59 +00:00
Defame1297 c258a107fe Merge pull request 'fix(images): prune the unused Go binaries from the ci image' (#123) from ci/ci-image-prune-go-binaries into main
Build / build (push) Successful in 11s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.6) (push) Successful in 9s
Lint / lint (push) Successful in 48s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 11s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.17) (push) Successful in 3m42s
Reviewed-on: #123
2026-11-14 15:17:49 +00:00
Defame1297andClaude Sonnet 5.5 cd5c2353fc fix(images): prune the unused Go binaries from the ci image
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 48s
Molecule / molecule (pull_request) Successful in 2s
The push of ci 0.2.16 failed with 413 Payload Too Large from Cloudflare: its /opt/pre-commit layer, 75.5 MB compressed in 0.2.15, grew past the 100 MB limit with the ruff and shellcheck-py environments. About half of that layer was binaries no hook runs: pre-commit installs every main package of a Go hook repository, which leaves gitleaks' config and actionlint's check-checks and generate-* next to the gitleaks and actionlint binaries the hooks call.

Delete everything in each golangenv-*/bin except those two, before the smoke test that runs all six hooks, so a wrongly deleted binary fails the image build. Replicated locally with this repository's hook config: the pre-commit home goes from 89.9 MB to 57.3 MB compressed (gzip -6, about 9% under what the registry stores) and all six hooks still pass. The build now also prints the compressed size of each directory a later COPY turns into a layer, the figure the limit applies to.

ci 0.2.16 was never published (the push failed), so it is skipped: 0.2.16 -> 0.2.17, which the bump check requires because the matrix on main already says 0.2.16.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:14:53 +00:00
Defame1297 212dd7aea8 Merge pull request 'ci: lint scripts with ruff and shellcheck, bake pinned collections into the ci image' (#121) from ci/ruff-shellcheck-and-baked-collections into main
Build / build (push) Successful in 14s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.6) (push) Successful in 10s
Lint / lint (push) Successful in 42s
Molecule / molecule (push) Successful in 5m27s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 11s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.16) (push) Failing after 3m17s
Reviewed-on: #121
2026-11-14 14:45:22 +00:00
Defame1297andClaude Sonnet 5.5 068bec93a9 fix(molecule): install community.docker for the Docker driver
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 43s
Molecule / molecule (pull_request) Successful in 6m19s
Every scenario failed in its create step (couldn't resolve module community.docker.docker_login): molecule's Docker driver runs community.docker modules in its own create and destroy playbooks, and the collection came from the runner-provisioned /opt/molecule-collections that the previous commit stopped reading. The roles do not call it, so it is not in requirements.yml, which the ci image bakes for Lint and which Renovate would rebuild the image for. It is pinned in extensions/molecule/requirements.yml instead; the Molecule job installs both files, cached by their combined checksum. Renovate tracks the new file and the bot-diff gate allows only its version: lines.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 14:30:11 +00:00
Defame1297andClaude Sonnet 5.5 bdb34cf98e fix(dev): run ansible-lint against the clone's pinned collections from any shell
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 43s
Molecule / molecule (pull_request) Failing after 49s
The hook scripts written by dev-setup.sh exported ANSIBLE_HOME and ANSIBLE_COLLECTIONS_PATH, so only a hook run through git commit saw the pinned collections; a bare pre-commit run fell back to the control host's ~/.ansible, the drift #118 removes. The ansible-lint hook now runs scripts/ansible-lint.sh, which uses .ansible/collections of the clone when ANSIBLE_COLLECTIONS_PATH is unset, fails with the fix when they are missing, and leaves a preset path (CI's /opt/collections) alone. dev-setup.sh keeps installing the collections and no longer edits the hook scripts beyond the PATH block it always wrote.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 14:14:37 +00:00
Defame1297andClaude Sonnet 5.5 42ad8de88f fix(ci): correct three review findings on the ruff and collections change
ruff.toml described the older E/F default rule set, which ruff 0.17 widened. The ansible-lint hook now also runs when requirements.yml changes, so a pin bump in a partial commit is linted. The Renovate post-upgrade note names requirements.yml among the image inputs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 14:04:33 +00:00
Defame1297andClaude Sonnet 5.5 f563baf237 ci(images): smoke-test the ruff and shellcheck hooks in the ci image
The image build ran only yamllint, gitleaks and actionlint on a staged sample, and a hook with
no matching file is skipped, so a missing ruff or shellcheck-py environment would not have
failed the build. Stage a .py and a .sh sample and run ruff-check, ruff-format and
shellcheck too (#112). Part of the unpublished ci 0.2.16, so no further version bump.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:59:45 +00:00
Defame1297andClaude Sonnet 5.5 bb57077fb3 build(dev): install the pinned collections in dev-setup
dev-setup.sh installs requirements.yml into .ansible/collections of the clone and
exports ANSIBLE_HOME and ANSIBLE_COLLECTIONS_PATH from the hook scripts, so local
ansible-lint resolves the collection versions CI does and not the control host's
~/.ansible (#118, part of #80). The install scopes the path to its target so a
copy elsewhere is not skipped as already installed. A hook written by the previous
version gains only the new block.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:52:09 +00:00
Defame1297andClaude Sonnet 5.5 12fe748bdd ci(molecule): install the pinned collections from requirements.yml
Molecule read /opt/molecule-collections, which the environment repository's
gitea_runner role installs from that repository's own requirements, so Kamino's
tests depended on pins Kamino does not own (#118). The job now installs
requirements.yml itself, into a directory named by the file's checksum on the
runner: a changed pin installs a new set, an unchanged one is reused, and the
install goes through a temporary directory so a cancelled run leaves no partial
set. requirements.yml is added to the push paths.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:52:03 +00:00
Defame1297andClaude Sonnet 5.5 87b23ea4f3 ci(renovate): track requirements.yml and allow its version bumps
Enable Renovate's ansible-galaxy manager for requirements.yml and let a bot pull
request change only the version: lines of that file (check_bot_pr_diff.py), so a
collection bump can automerge like the other pins while a changed name or source
still fails the gate (#118).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:51:58 +00:00
Defame1297andClaude Sonnet 5.5 8fb7148129 ci(images): bake the pinned collections into the ci image
Add requirements.yml, a Kamino-owned file with exact pins for the collections the
roles call (community.general 14.0.0, ansible.posix 2.2.2), and install it into
/opt/collections of the ci image (#118). Lint sets ANSIBLE_COLLECTIONS_PATH to it,
so ansible-lint --offline resolves the modules and mock_modules is dropped. The file
joins /opt/ci-pins.sha256: a pull request that changes a pin installs the collections
for its own run, as it does for requirements-dev.txt. mock_roles stays (step 5 of #118).

The install scopes ANSIBLE_COLLECTIONS_PATH to its target: ansible-galaxy skips a
collection it finds elsewhere on the path as already installed, so the image would
otherwise miss any that the build host happens to have.

Image input: ci 0.2.15 -> 0.2.16 (one bump for this change and the ruff and
shellcheck hooks of #112, which are also baked into the image). requirements.yml
is added to the image.yml push paths so that a pin change rebuilds the image.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:50:57 +00:00
Defame1297andClaude Sonnet 5.5 697e4b6092 fix(scripts): resolve the ruff findings in the scripts and tests
Fix what ruff 0.17.5's default rule set and the complexity rules report (#112):
removeprefix/removesuffix instead of slicing, `_unused` for discarded tuple
members, obsolete `noqa: E402` removed, a parenthesised string pair and an
immutable class constant in the tests.

Three functions stay over a complexity threshold and carry an inline
`# noqa` with the rule code and a reason: matrix_of and copy_sources of
check_image_versions.py (#96 may replace them) and path_problems of
check_tarball.py. No rule is ignored globally and no threshold is tuned.

ruff writes .ruff_cache/ into the checkout, which test_real_build_passes
caught in the Collection archive: add it to galaxy.yml build_ignore. ruff.toml
joins the molecule selector's IGNORED paths, since no scenario reads it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:34:05 +00:00
Defame1297andClaude Sonnet 5.5 db1c1e176f style(scripts): format the scripts and their tests with ruff
Output of `ruff format` and nothing else, in its own commit so the diff is
reviewable (#112). The ruff-check hook is skipped for this commit only: its
findings are fixed in the next one.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:25:58 +00:00
Defame1297andClaude Sonnet 5.5 557f573df2 ci(lint): add ruff and shellcheck hooks
Add ruff-check and ruff-format from astral-sh/ruff-pre-commit and shellcheck from
shellcheck-py, with ruff.toml at ruff's defaults plus C901, PLR0912 and PLR0915
(#112). ruff.toml is repository tooling, so it joins galaxy.yml build_ignore.

The existing scripts are formatted and fixed in the commits that follow.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:20:06 +00:00
Defame1297 e4c9be903d Merge pull request 'ci(molecule): use molecule-ubuntu2404 0.1.6 and drop the docker prepare gnupg task' (#120) from ci/molecule-image-pin-0.1.6 into main
Build / build (push) Successful in 12s
Lint / lint (push) Successful in 19s
Molecule / molecule (push) Successful in 5m29s
Reviewed-on: #120
2026-11-14 12:56:51 +00:00
Defame1297andClaude Sonnet 5.5 db4ba8d5c8 ci(molecule): use molecule-ubuntu2404 0.1.6 and drop the docker prepare gnupg task
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 20s
Molecule / molecule (pull_request) Successful in 6m7s
Moves the MOLECULE_IMAGE pin to 0.1.6, the build of #119 that carries gnupg, and
with it:

- removes the gnupg install (and its apt update) from the docker scenario's
  prepare, about 10 s of its 12 s; the role refreshes its own apt cache at
  install, so nothing relied on that update;
- adds gnupg to the image-smoke contract, so the image keeps providing it;
- drops gnupg from the docker README's list of what the scenario needs the
  Ubuntu mirrors for, with a trivial changelog fragment.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 12:47:37 +00:00
Defame1297 f7f5b7adf9 Merge pull request 'ci(images): preinstall gnupg in molecule-ubuntu2404' (#119) from ci/molecule-image-gnupg into main
Build / build (push) Successful in 11s
Images / image (Dockerfile, ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.6) (push) Successful in 30s
Lint / lint (push) Successful in 20s
Images / image (Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, molecule-ubuntu2604, images/molecule-ubuntu2604, 0.1.3) (push) Successful in 12s
Images / image (images/ci/Dockerfile, ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c, ci, , 0.2.15) (push) Successful in 10s
Reviewed-on: #119
2026-11-14 12:45:05 +00:00
Defame1297andClaude Sonnet 5.5 0a3ff387d7 ci(images): preinstall gnupg in molecule-ubuntu2404
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 21s
Molecule / molecule (pull_request) Successful in 1s
The docker scenario installs gnupg in prepare to sign its stand-in APT
repository, which costs an apt update and an install in every run (about 10 s of
its 12 s prepare); system_baseline installs it among its essential packages. It
is now part of the image, version 0.1.6.

Image input only: the consumers' pins, the docker prepare task and the
image-smoke contract move in the pin follow-up pull request, once the build on
main has printed the new digest.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 12:40:40 +00:00
Defame1297 ceeca66209 Merge pull request 'ci(molecule): cancel superseded runs, trim the test sequence, run nightly' (#117) from ci/molecule-cancel-and-trim into main
Build / build (push) Successful in 12s
Lint / lint (push) Successful in 21s
Molecule / molecule (push) Successful in 6m5s
Reviewed-on: #117
2026-11-14 11:56:00 +00:00
Defame1297andClaude Sonnet 5.5 676c950c08 Merge branch 'ci/molecule-changed-roles' into ci/molecule-cancel-and-trim
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 24s
Molecule / molecule (pull_request) Successful in 6m50s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 11:34:25 +00:00
Defame1297andClaude Sonnet 5.5 a94bee8fd3 fix(lint): satisfy ansible-test pylint in the molecule selector
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 24s
Molecule / molecule (pull_request) Successful in 7m0s
ansible-test sanity runs pylint over scripts/ and tests/scripts/ too and
rejects a mutable default argument (environ=os.environ) and `_` as a variable
name. main() now takes environ=None and reads os.environ itself, and the tests
name the values they ignore.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 11:34:13 +00:00
Defame1297 37420825a1 Merge branch 'main' into ci/molecule-cancel-and-trim
Build / build (pull_request) Failing after 11s
Lint / lint (pull_request) Successful in 20s
Molecule / molecule (pull_request) Canceled after 5m0s
2026-11-14 11:23:52 +00:00
Defame1297 fdab483109 Merge branch 'main' into ci/molecule-changed-roles
Build / build (pull_request) Failing after 12s
Lint / lint (pull_request) Successful in 21s
Molecule / molecule (pull_request) Successful in 7m19s
2026-11-14 11:23:46 +00:00
Defame1297andClaude Sonnet 5.5 25bca2ebff ci(molecule): run every scenario nightly
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
A pull request runs only the scenarios of the roles it changes, so drift in the
others (a package mirror, the runner's molecule venv) would wait for the next
push to main. A nightly run of everything bounds that. It is scheduled after
Renovate's run, since the runner has a single slot.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 11:06:59 +00:00
Defame1297andClaude Sonnet 5.5 792b3414d3 ci(molecule): drop the leading destroy from every scenario's test sequence
The first destroy runs against a container that is not there and only waits out
the Docker driver's fixed 5 s poll, about 6 s per scenario and 42 s per full
run. The run step already removes what a killed run left, and molecule's state
file lives under the job's own ANSIBLE_HOME (Runtime(isolated=False)), which is
deleted with the checkout, so a cancelled run cannot make the next one skip
create or prepare. The rest of the sequence is molecule's default.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 11:06:18 +00:00
Defame1297andClaude Sonnet 5.5 db52adcb81 ci(molecule): cancel superseded pull request runs
A new commit on a pull request now cancels its running Molecule run, as for
Lint and Build; a run on main is never cancelled (its group is the commit SHA).

The old global concurrency group kept two runs off the runner's shared Docker
daemon, whose container names are fixed. That is now the runner's single slot
(gitea_runner_capacity: 1), as the workflow comment and CLAUDE.md say. A
cancelled run is killed before molecule can destroy its container, so the run
step first removes the containers of every scenario by their exact platform
names, whether or not this run selects that scenario.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 11:06:17 +00:00
Defame1297andClaude Sonnet 5.5 4d330d41c7 ci(molecule): run only the scenarios of the roles a pull request changes
Build / build (pull_request) Failing after 12s
Lint / lint (pull_request) Successful in 21s
Molecule / molecule (pull_request) Successful in 6m53s
A pull request now runs the scenarios of the roles it touches, none when it
touches only paths no scenario reads, and everything for any other file, for
every push to main and for manual dispatch. The job stays unconditional so
Molecule can remain a required check.

scripts/select_molecule_scenarios.py makes the choice and is run from the base
branch's copy, so a pull request cannot edit its own rules. A changed role
that exists but has no scenario fails instead of passing with nothing tested.

The scenario loop no longer gives molecule the list as stdin, which a child
could have drained, and fails when it ran fewer scenarios than were selected.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 11:05:46 +00:00
Defame1297 4045cba71c Merge pull request 'chore(release): 1.3.0' (#115) from release/1.3.0 into main
Lint / lint (push) Successful in 18s
Molecule / molecule (push) Successful in 6m28s
Build / build (push) Successful in 13s
Reviewed-on: #115
v1.3.0
2026-11-14 10:55:01 +00:00
Defame1297andClaude Opus 5.5 126e6367a3 docs(changelog): add the 1.3.0 release summary
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 18s
Molecule / molecule (pull_request) Successful in 6m19s
CONTRIBUTING.md asks for a release_summary on every release; 1.1.0 and
1.2.0 went without one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 10:43:11 +00:00
Defame1297andClaude Opus 5.5 48350404c5 chore(release): 1.3.0
Adds the system_baseline role and declares community.general and
ansible.posix as dependencies.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 10:42:22 +00:00
Defame1297 2721509cde Merge pull request 'feat(system_baseline): add the system_baseline role' (#114) from feat/system-baseline-role into main
Build / build (push) Successful in 9s
Lint / lint (push) Successful in 18s
Molecule / molecule (push) Successful in 6m25s
Reviewed-on: #114
2026-11-14 10:41:19 +00:00
Defame1297andClaude Opus 5.5 424f76c164 fix(lint): mock the dependency modules system_baseline calls
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 19s
Molecule / molecule (pull_request) Successful in 6m18s
Lint runs offline in the ci image, which bakes no collections, so
community.general and ansible.posix modules could not be resolved
(syntax-check[unknown-module]). Mock them as the scenarios' roles are
mocked; molecule runs them against the installed collections.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 10:32:15 +00:00
Defame1297andClaude Opus 5.5 9c705a7f93 fix(system_baseline): declare dependencies and correct the review findings
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Failing after 14s
Molecule / molecule (pull_request) Successful in 6m21s
- galaxy.yml declares community.general and ansible.posix: system_baseline is
  the first role that calls modules outside ansible.builtin, and a consumer
  that installs only this Collection failed to parse the play.
- The README override example set Automatic-Reboot to false, which every
  profile already defaults to; it now shows the opt-in.
- Comment and description wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 10:26:59 +00:00
Defame1297andClaude Opus 5.5 5abd1abe73 feat(system_baseline): add the system_baseline role
Copied from the environment repository's role and scrubbed for the
Collection, the same way as systemd_hardening and network_interfaces:
galaxy namespace mortis, the molecule scenario calls the role by its FQCN
and takes its paths from the workflow, the README example uses
mortis.kamino.system_baseline, and repository-local references (issue
numbers, ADRs, inventory paths, host anecdotes) are dropped. Profiles and
defaults are unchanged. The Legacy name guard and the molecule play that
tested it are dropped: the guard only protected the in-repo rename, and a
new consumer never had the old names. mock_roles in .ansible-lint lists
the FQCN.

The update and reboot task files are documented as supported entry
points (argument_specs and README): a caller that drives its own reboot,
such as a drain-aware Kubernetes node patch flow, imports them with
tasks_from and reads the system_baseline_reboot_required fact that
reboot sets. With system_baseline_reboot_if_required false, reboot only
computes the fact. Neither entry point has a required option. A new
verify play asserts the fact both ways and that the entry point does not
reboot.

Not verified locally: the molecule scenario (it runs on the
kamino-molecule runner in CI) and ansible-test sanity.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-14 10:19:57 +00:00
Defame1297 6de6f6fb76 Merge pull request 'docs: add a glossary with principle, rule and control' (#111) from docs/glossary into main
Build / build (push) Successful in 10s
Lint / lint (push) Successful in 17s
Molecule / molecule (push) Successful in 5m8s
Reviewed-on: #111
2026-11-13 22:35:43 +00:00
Defame1297andClaude Fable 5.2 118f5ca388 docs: add a glossary with principle, rule and control
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 17s
Molecule / molecule (pull_request) Successful in 5m19s
The three terms were fixed while deciding the guiding principles for
contributors and their agents. The glossary is repository documentation,
so galaxy.yml keeps it out of the Collection archive.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-13 22:28:49 +00:00
Defame1297 8c425282f5 Merge pull request 'chore(apm): update holocron skills to 3.0.0' (#107) from chore/apm-update into main
Build / build (push) Successful in 10s
Lint / lint (push) Successful in 16s
Reviewed-on: #107
2026-11-12 15:19:09 +00:00
Defame1297 3aafa2a7e8 Merge branch 'main' into chore/apm-update
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 18s
Molecule / molecule (pull_request) Successful in 4m47s
2026-11-12 15:10:22 +00:00
Defame1297andClaude Sonnet 5.5 cdadeff2f2 chore(apm): update holocron skills to 3.0.0
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 19s
Molecule / molecule (pull_request) Successful in 4m50s
bin 2.0.0 -> 3.0.0 (research skill renamed research-docs), mattpocock
0.2.0 -> 0.4.0; the other plugins move to the same holocron commit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-12 15:07:41 +00:00
kamino-renovate Bot 27eb875038 Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.15' (#106) from renovate/git.rkdr.net-mortis-ci-0.x into main
Build / build (push) Successful in 10s
Lint / lint (push) Successful in 16s
2026-11-12 03:23:20 +00:00