Commit Graph
208 Commits
Author SHA1 Message Date
Defame1297 cf2286b7a7 test(roles): run molecule's check step before and after converge
Every role scenario with a converge now runs check right before it (a
fresh host) and right after it (a configured host), and a script test
fails a scenario without both. pihole and pve_lxc move their second
check from after idempotence to after converge to match.

The roles that failed under --check on a fresh host get the two allowed
guards: cloudflared, docker, gitea, gitea_runner, traefik and
user_management. ufw and fail2ban preview only a host where their
package is installed, as their READMEs now say.

Closes #134

Assisted-by: Claude Code
2026-11-26 10:11:54 +00:00
renovate-bot 0e15b3457e chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.45
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 48s
Build / build (pull_request) Successful in 59s
Lint / lint (pull_request) Successful in 2m39s
Molecule / molecule (pull_request) Successful in 18m29s
2026-11-25 23:18:24 +00:00
renovate-bot dc7d3bdfd9 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.44
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 45s
Build / build (pull_request) Successful in 1m13s
Lint / lint (pull_request) Successful in 2m36s
Molecule / molecule (pull_request) Successful in 26m4s
2026-11-25 22:22:48 +00:00
renovate-bot da76e995b6 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2604 docker tag to v0.1.7
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 21s
Lint / lint (pull_request) Successful in 2m37s
Molecule / molecule (pull_request) Successful in 20m12s
2026-11-25 21:51:52 +00:00
Defame1297 f5d4793d43 Merge branch 'main' into ci/lint-all-commit-msg-hooks
Build / build (pull_request) Successful in 27s
Molecule / molecule (pull_request) Successful in 4s
Lint / lint (pull_request) Successful in 1m21s
2026-11-25 13:25:22 +00:00
Defame1297 a0b875fe65 Merge branch 'main' into ci/243-capacity-two
Build / build (pull_request) Successful in 27s
Lint / lint (pull_request) Successful in 2m23s
Molecule / molecule (pull_request) Successful in 16m4s
2026-11-25 12:58:27 +00:00
Defame1297 5f655cbb76 ci(lint): run every commit-msg hook on a pull request's commits
Build / build (pull_request) Successful in 44s
Lint / lint (pull_request) Successful in 3m18s
Molecule / molecule (pull_request) Successful in 8s
The Lint step gave each commit's message only to conventional-pre-commit,
so refuse-agent-trailers ran nowhere in CI: --no-verify, a clone without
dev-setup.sh or a commit made through the forge passed it unseen. The
step now runs every commit-msg hook, and the trailer rule's held-by
names the Lint check.

Assisted-by: Claude Code
2026-11-25 11:58:29 +00:00
Defame1297 8133e8453e ci: run two jobs on the runner and give molecule 45 minutes
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 2m23s
Molecule / molecule (pull_request) Successful in 17m21s
The runner now takes two jobs at a time, so a Lint and a Build of one pull
request start together. The image.yml comment no longer says builds run on a
single-capacity runner: max-parallel keeps the builds to one at a time, and a
build may share the runner with one other job.

Two full molecule runs sharing the runner (a nightly run and a dispatch)
take longer than 30 minutes; both were cut off at the timeout with every
finished scenario green. The timeout goes to 45 minutes, and the sweep age
with it (a script test holds the two equal).

Refs #243

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 10:58:36 +00:00
renovate-bot 1fded69ee8 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.43
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 48s
Build / build (pull_request) Successful in 1m0s
Lint / lint (pull_request) Successful in 2m28s
Molecule / molecule (pull_request) Successful in 16m9s
2026-11-25 10:09:24 +00:00
Defame1297 ae28d5452c ci(molecule): correct the stale fork claims
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m20s
Molecule / molecule (pull_request) Successful in 17m29s
The molecule.yml header said only trusted people can open pull
requests here; an outsider can open a fork pull request. It now names
the two boundaries: write access, and Gitea's approval gate on fork
runs, kept shut by the fork rule in reviewing.md. The fork guard in
the job's if: stays a convenience filter. The Molecule rule in
.gitea/workflows/AGENTS.md says the same, and issue-tracker.md says
fork pull requests are closed with a pointer to issues.

Closes #178

Assisted-by: Claude Code
2026-11-24 22:09:13 +00:00
Defame1297 03b21a9aef ci(molecule): select no scenario for a galaxy.yml change, guarded by a load check
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m7s
Molecule / molecule (pull_request) Successful in 15m19s
Scenarios load mortis.kamino from the checkout, not the copy molecule installs from
galaxy.yml, so galaxy.yml goes on the selector's IGNORED list. A new check, run by
run_molecule_in_ci_image.sh before the scenarios, fails the run when the environment
molecule gives ansible-playbook would resolve the collection anywhere else.

Closes #355

Assisted-by: Claude Code
2026-11-24 15:56:27 +00:00
renovate-bot 11ed3df80e chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.42
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 35s
Gitea release key / check (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 59s
Molecule / molecule (pull_request) Successful in 15m1s
2026-11-24 13:36:10 +00:00
renovate-bot 79a8a7a8a2 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.41
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 33s
Gitea release key / check (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 59s
Molecule / molecule (pull_request) Successful in 15m3s
2026-11-24 12:41:48 +00:00
Defame1297 1885b3fe99 ci(molecule): check container removal by listing what is left
Build / build (pull_request) Successful in 14s
Lint / lint (pull_request) Successful in 1m1s
Molecule / molecule (pull_request) Successful in 14m54s
A removal that fails because another run's sweep was first is harmless,
but checking that with `docker container inspect` also passed when the
daemon could not be reached. Both removal steps now remove what they
can and then list the containers they meant to remove; a failing list
or a container still listed fails the step.

The workflow rules name the test that holds the sweep's age bound to
the job timeout.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-24 10:00:30 +00:00
Defame1297 4f0b8e0cfe ci(molecule): hold the sweep bound to the job timeout and tolerate races
A script test now fails when the sweep step's age bound differs from the
job's timeout-minutes, since a shorter bound would remove a live run's
containers. The final cleanup removes this run's containers one by one
and fails only when one is still there, as another run's sweep may have
removed it first once this run passed its timeout.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-24 09:50:34 +00:00
Defame1297 6c2e05c95a ci(molecule): harden the stale-container sweep and correct comments
The sweep now fails the step when a timestamp cannot be parsed or a
container it removes is still there, while tolerating one another run's
sweep removed first. Its 30-minute bound and the job's timeout point at
each other, since a shorter bound would remove a live run's containers.

The concurrency comments of Lint and Build now say that runs on one ref
queue rather than cancel, and the scenarios' comment names the run
script as what removes their containers. The workflow test checks the
label filters of the sweep and cleanup steps by name.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-24 09:42:03 +00:00
Defame1297 96cb9246c6 ci(molecule): isolate runs per run and drop the push trigger on main
Two Molecule runs could not overlap on one Docker daemon because every
scenario's container name was fixed; only the runner's single slot kept
them apart. Each platform is now named and labelled by KAMINO_RUN_ID
(run id and attempt, "local" outside CI), the run script expands those
names with molecule's own interpolator before removing them, and the
workflow removes its own containers by label and only sweeps labelled
leftovers older than the job timeout, so a run still going is never hit.
Non-pull-request runs get a concurrency group of their own.

Push to main no longer triggers Molecule, Lint or Build: a merged pull
request was already tested, and the nightly and manual Molecule runs
cover every scenario. Build keeps its v* tag trigger.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-24 09:35:03 +00:00
Defame1297 72e14cab56 Merge branch 'main' into renovate/git.rkdr.net-mortis-ci-0.x
Build / build (pull_request) Successful in 15s
Gitea release key / check (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 59s
Molecule / molecule (pull_request) Successful in 3s
2026-11-24 09:08:52 +00:00
Defame1297 250b04eef3 fix(molecule): give the runner user a passwd entry in the ci container
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m10s
Molecule / molecule (pull_request) Successful in 14m58s
ansible makes its temp dir under ~<user>/.ansible/tmp. Without a passwd
entry the tilde does not expand and mkdir runs relative to the playbook's
directory, which is read-only under /opt/venv once the image's own
molecule is used. Move molecule.yml to ci 0.2.40 so this pull request
runs the baked toolchain that failed on the pin pull request.

Assisted-by: Claude Code
2026-11-24 08:44:03 +00:00
renovate-bot 613b4924ec chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.40
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 33s
Gitea release key / check (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 59s
Molecule / molecule (pull_request) Failing after 59s
2026-11-24 08:38:11 +00:00
Defame1297 c2804c3b48 fix(molecule): give the driver's connection plugin the host's docker CLI
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 2m42s
Molecule / molecule (pull_request) Successful in 15m57s
community.docker.docker connects to each instance with the docker CLI,
which the ci image does not carry.

Assisted-by: Claude Code
2026-11-24 08:02:55 +00:00
Defame1297 8c52c91dfd ci(molecule): run the in-image step from a tested script and list the fifth pin file
Assisted-by: Claude Code
2026-11-24 07:23:42 +00:00
Defame1297 2e32016c43 ci(molecule): run Molecule from the ci image instead of the runner's venv
Pin molecule and its Docker driver in requirements-dev.txt and bake them,
with the driver's collection, into the ci image. The Molecule job runs
docker run on the pinned ci image with the Docker socket and the checkout
mounted at the same path, as the runner user. A pull request whose pins
differ from the image installs its own pins first, so a core bump runs its
scenarios on the new core. gitea_runner no longer installs the molecule
venv and collections.

Closes #225

Assisted-by: Claude Code
2026-11-24 07:14:19 +00:00
Defame1297 1ab5fea35a Merge branch 'main' into renovate/git.rkdr.net-mortis-molecule-ubuntu2604-0.x
Build / build (pull_request) Successful in 14s
Lint / lint (pull_request) Successful in 58s
Molecule / molecule (pull_request) Successful in 14m37s
2026-11-23 22:53:28 +00:00
Defame1297 21cabdc8c2 Merge branch 'main' into renovate/git.rkdr.net-mortis-molecule-ubuntu2604-0.x
Lint / lint (pull_request) Successful in 1m1s
Build / build (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 6m45s
2026-11-23 22:29:20 +00:00
Defame1297 8297d2c06b Merge branch 'main' into renovate/git.rkdr.net-mortis-molecule-ubuntu2404-0.x
Build / build (pull_request) Successful in 14s
Lint / lint (pull_request) Successful in 58s
Molecule / molecule (pull_request) Successful in 14m38s
2026-11-23 22:29:05 +00:00
renovate-bot 75f1df4ee8 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2604 docker tag to v0.1.6
renovate/stability-days Updates have met minimum release age requirement
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
Build / build (pull_request) Canceled after 12s
2026-11-23 22:22:29 +00:00
renovate-bot 89b8eb9dc3 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2404 docker tag to v0.1.10
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m0s
Molecule / molecule (pull_request) Canceled after 3m35s
2026-11-23 22:22:27 +00:00
renovate-bot 5e70455896 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.39
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 35s
Gitea release key / check (pull_request) Successful in 6s
Lint / lint (pull_request) Successful in 59s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 22:22:25 +00:00
Defame1297 30316c5a7d fix(images): name the registry client and report a refused request
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 59s
Molecule / molecule (pull_request) Successful in 2s
The first Images run after #165 failed: the runner's first registry request
from next_image_version.py got HTTP 403, as a bare traceback, while the same
request works from elsewhere and curl reaches the host in the same job. The
suspected cause, a bot filter refusing Python's default User-Agent, is not
confirmed.

Every registry request, the token request included, now sends its own
User-Agent. Every HTTP error becomes a RegistryError that names the status and
the visible text of the response body, and main prints it as one ::error::
line and exits 1. The client logs in at most once, so an empty token cannot
loop. The script takes the registry URL, so the tests drive it against a local
fake registry.

Refs #165

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 22:13:05 +00:00
Defame1297 b12c990b6a ci(images): assign image versions in CI and open the pin PR right after a push
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
The image.yml matrix holds a hand-edited base (MAJOR.MINOR) per image instead
of a version. On main, scripts/next_image_version.py compares a checksum of the
image's inputs with the inputs-sha256 label of the newest published <base>.N
and the job publishes <base>.N+1 when they differ, or builds nothing when they
match. A published tag is still never moved.

renovate.yml runs live on the successful completion of Images (workflow_run),
so the pin pull request opens minutes after a push instead of on the schedule.

Removed: bump_image_versions.py and its tests, check_image_versions.py bump,
Lint's bump step, Renovate's postUpgradeTasks, and the bot-diff allowance for
matrix version lines.

Closes #165

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 21:15:16 +00:00
renovate-bot 8977d231c2 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.38
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 35s
Gitea release key / check (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 58s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 20:43:16 +00:00
Defame1297 4f29901a80 ci(pre-commit): refuse CLAUDE.md in any letter case
The refuse-claude-md pattern was case-sensitive, so claude.md or CLAUDE.MD
passed it, yet a case-insensitive file system serves either as CLAUDE.md.
Match with the inline (?i) flag. The hook config is a ci image input, so
the ci image moves from 0.2.37 to 0.2.38.

Assisted-by: Claude Code
2026-11-23 19:58:50 +00:00
Defame1297 5d2f6ffad2 Merge branch 'main' into ci/244-refuse-claude-md
Build / build (pull_request) Successful in 16s
Molecule / molecule (pull_request) Successful in 2s
Lint / lint (pull_request) Successful in 1m23s
2026-11-23 19:53:12 +00:00
Defame1297 161e5bff63 ci(images): bump the ci image past main's 0.2.36
Build / build (pull_request) Successful in 16s
Molecule / molecule (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 13s
main raised ci to 0.2.36 for its own .pre-commit-config.yaml change, so
the hook change here needs 0.2.37.

Refs: #244

Assisted-by: Claude Code
2026-11-23 19:48:12 +00:00
Defame1297 0ee6e76037 Merge branch 'main' into renovate/git.rkdr.net-mortis-molecule-ubuntu2404-0.x
Build / build (pull_request) Successful in 14s
Lint / lint (pull_request) Successful in 1m30s
Molecule / molecule (pull_request) Successful in 14m11s
2026-11-23 19:30:36 +00:00
Defame1297 573e5e49a6 Merge branch 'main' into renovate/git.rkdr.net-mortis-ci-0.x
Gitea release key / check (pull_request) Canceled after 0s
Build / build (pull_request) Successful in 15s
Molecule / molecule (pull_request) Successful in 3s
Lint / lint (pull_request) Successful in 1m17s
2026-11-23 19:18:31 +00:00
renovate-bot 8d7e71c881 chore(deps): update pre-commit hook zizmorcore/zizmor-pre-commit to v1.33.1
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m38s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 18:27:09 +00:00
renovate-bot d87b0e79cc chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2404 docker tag to v0.1.9
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 18s
Lint / lint (pull_request) Successful in 1m45s
Molecule / molecule (pull_request) Successful in 13m31s
2026-11-23 18:27:04 +00:00
renovate-bot 1d1fe06bf5 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.35
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 46s
Gitea release key / check (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 59s
Molecule / molecule (pull_request) Successful in 3s
2026-11-23 18:26:59 +00:00
Defame1297 dab942afde Merge branch 'main' into renovate/git.rkdr.net-mortis-ci-0.x
Build / build (pull_request) Successful in 22s
Gitea release key / check (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 1m12s
Molecule / molecule (pull_request) Successful in 1s
2026-11-23 17:52:30 +00:00
Defame1297 9c7b7e6e9e Merge branch 'main' into renovate/job-container-ubuntu-24.04
Build / build (pull_request) Successful in 18s
Lint / lint (pull_request) Successful in 1m45s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 17:00:22 +00:00
Defame1297 1edad97c0d Merge branch 'main' into renovate/ubuntu-24.04
Build / build (pull_request) Successful in 20s
Lint / lint (pull_request) Successful in 1m33s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 16:38:12 +00:00
renovate-bot 57de3236ea chore(deps): refresh pip-compile outputs
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m9s
Molecule / molecule (pull_request) Successful in 1s
2026-11-23 10:28:11 +00:00
renovate-bot 929506882e chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.34
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 44s
Gitea release key / check (pull_request) Successful in 9m17s
Lint / lint (pull_request) Successful in 55s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 10:27:13 +00:00
renovate-bot 29f66897f2 chore(deps): update ubuntu:24.04 docker digest to 9c7f200
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m19s
Molecule / molecule (pull_request) Successful in 5s
2026-11-23 10:27:12 +00:00
renovate-bot f34769bca2 chore(deps): update ubuntu:24.04 docker digest to 9c7f200
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m16s
Molecule / molecule (pull_request) Successful in 1s
2026-11-23 10:27:10 +00:00
Defame1297 b105c3c864 Merge branch 'main' into renovate/zizmorcore-zizmor-pre-commit-1.x
Build / build (pull_request) Successful in 14s
Lint / lint (pull_request) Successful in 1m5s
Molecule / molecule (pull_request) Successful in 1s
2026-11-23 07:45:41 +00:00
Defame1297 a1779c0aba Merge branch 'main' into renovate/git.rkdr.net-mortis-ci-0.x
Build / build (pull_request) Successful in 14s
Gitea release key / check (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 52s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 07:43:31 +00:00
renovate-bot 43fcc382c6 chore(deps): update pre-commit hook zizmorcore/zizmor-pre-commit to v1.33.0
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 20s
Lint / lint (pull_request) Successful in 1m18s
Molecule / molecule (pull_request) Successful in 1s
2026-11-23 03:17:41 +00:00