Commit Graph
864 Commits
Author SHA1 Message Date
Defame1297 26c6026d1a ci(scripts): lock either root requirements file
The molecule-controller image gets a requirements file and lock of its
own (ADR 0003), so the lock script takes the file to lock:
requirements-dev.txt by default, as before, or requirements-molecule.txt.
Any other argument is a usage error, so a typo cannot write a lock
somewhere else.

The new test runs the script against a stub interpreter, so it needs
no network.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:03:05 +00:00
Defame1297 0173f6f226 Merge pull request 'chore(apm): update Holocron plugins to 219a084' (#476) from chore/apm-update into main
Reviewed-on: #476
2026-11-29 13:30:41 +00:00
Defame1297 dfc25640b6 chore(apm): update Holocron plugins to 219a084
Molecule / molecule (pull_request) Successful in 15s
Build / build (pull_request) Successful in 39s
Lint / lint (pull_request) Successful in 1m50s
Refresh git, mattpocock and plan to the current Holocron head. The plan
plugin moves from 0.1.0 to 0.4.0 and now deploys the plan-* agents, the
plan and ship commands, and the plan-track and research-docs skills.

Assisted-by: Claude Code
2026-11-29 13:17:45 +00:00
Defame1297 11b75d9014 Merge pull request 'ci(molecule): stop a scenario that runs past its own time limit' (#475) from ci/474-scenario-timeout into main
Reviewed-on: #475
2026-11-29 12:57:50 +00:00
Defame1297 258cbaf516 ci(molecule): say what a scenario time limit leaves running
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 3m27s
Molecule / molecule (pull_request) Successful in 31m13s
A reader of the time limit needs to know its limits: on expiry only
molecule is signalled, so its ansible-playbook and workers run until the
run container ends, and the run-label cleanup step removes anything they
recreate. The default's reasoning holds at the default 2 lanes, and the
variable is for local runs and tests only.

The timeout test now runs on one lane, so beta running proves the stalled
lane was freed. The workflows rule gives the limit its reason and names
the two tests that hold it.

Refs #474

Assisted-by: Claude Code
2026-11-29 11:56:57 +00:00
Defame1297 41820fd9a7 ci(molecule): stop a scenario that runs past its own time limit
A hung scenario held its lane until the job's 90-minute timeout, and the
cancel then lost every scenario's log, since the groups print only after
the final wait. Each molecule test now runs under coreutils timeout with
MOLECULE_SCENARIO_TIMEOUT seconds (default 1800), so the hang fails by
itself, its log says it timed out, and the other lanes finish.

timeout runs with --foreground so it and molecule stay in the script's
process group: without it timeout leads a group of its own, which a
cancel that kills the step's group no longer reaches (the killed-group
test fails). On expiry molecule alone is signalled; anything it leaves
ends with the run container (docker run --init).

Closes #474

Assisted-by: Claude Code
2026-11-29 11:42:09 +00:00
Defame1297 e8f739904a Merge pull request 'ci(molecule): run two scenarios at a time by default' (#471) from ci/432-two-lanes into main
Reviewed-on: #471
2026-11-29 11:19:49 +00:00
Defame1297 040dd9fbf2 Merge branch 'main' into ci/432-two-lanes
Build / build (pull_request) Successful in 35s
Lint / lint (pull_request) Successful in 3m21s
Molecule / molecule (pull_request) Successful in 30m31s
2026-11-29 10:48:29 +00:00
Defame1297 edf31df045 Merge pull request 'refactor(system_baseline): give the role's internal registers the __ prefix' (#472) from fix/system-baseline-internal-register into main
Reviewed-on: #472
2026-11-29 09:46:02 +00:00
Defame1297 6070179126 Merge branch 'main' into fix/system-baseline-internal-register
Build / build (pull_request) Successful in 32s
Lint / lint (pull_request) Successful in 2m45s
Molecule / molecule (pull_request) Successful in 5m3s
2026-11-29 09:40:19 +00:00
Defame1297 2b221b69a5 Merge branch 'main' into ci/432-two-lanes
Build / build (pull_request) Successful in 28s
Lint / lint (pull_request) Successful in 2m44s
Molecule / molecule (pull_request) Successful in 29m36s
2026-11-29 08:07:17 +00:00
Defame1297 ec972b90a4 Merge pull request 'feat(traefik): skip a fresh apt refresh and trim the scenario's repeated work' (#470) from perf/458-traefik-scenario into main
Reviewed-on: #470
2026-11-29 08:06:45 +00:00
Defame1297 922a79a871 Merge branch 'main' into perf/458-traefik-scenario
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 2m43s
Molecule / molecule (pull_request) Successful in 3m55s
2026-11-29 08:02:20 +00:00
Defame1297 ac8967f6a5 Merge pull request 'test(ufw): cover the service_rules cases with fewer owners' (#469) from test/457-ufw-fewer-owners into main
Reviewed-on: #469
2026-11-29 08:01:09 +00:00
Defame1297 8548ab8c9d Merge branch 'main' into test/457-ufw-fewer-owners
Build / build (pull_request) Successful in 27s
Lint / lint (pull_request) Successful in 3m58s
Molecule / molecule (pull_request) Successful in 12m25s
2026-11-29 07:48:10 +00:00
Defame1297 06853aa6f6 Merge pull request 'test(system_baseline): run the vzdump guard cases against the guard alone' (#468) from test/456-system-baseline-vzdump-guard into main
Reviewed-on: #468
2026-11-29 07:46:55 +00:00
Defame1297 035669c26f Merge branch 'main' into test/456-system-baseline-vzdump-guard
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 2m37s
Molecule / molecule (pull_request) Successful in 5m2s
2026-11-29 07:41:17 +00:00
Defame1297 ca62d4aaa8 Merge pull request 'test(docker): merge the verify role runs and assert a unit change keeps dockerd running' (#467) from test/460-docker-verify-runs into main
Reviewed-on: #467
2026-11-28 23:36:56 +00:00
Defame1297 2b2e2c4021 ci(molecule): wrap the duration list comment
Build / build (pull_request) Successful in 1m3s
Lint / lint (pull_request) Successful in 2m57s
Molecule / molecule (pull_request) Successful in 41m21s
Part of #432

Assisted-by: Claude Code
2026-11-28 23:29:10 +00:00
Defame1297 876ff2ada5 Merge branch 'main' into test/460-docker-verify-runs
Build / build (pull_request) Successful in 42s
Lint / lint (pull_request) Successful in 4m41s
Molecule / molecule (pull_request) Successful in 8m7s
2026-11-28 23:28:03 +00:00
Defame1297 dbcbf3b02d ci(molecule): give the measured lane times as the reason for the default
Part of #432

Assisted-by: Claude Code
2026-11-28 23:26:10 +00:00
Defame1297 53f5df4378 Merge pull request 'test(gitea_runner): fold the disk-pressure run into the failed-download case' (#466) from test/459-gitea-runner-pressure into main
Reviewed-on: #466
2026-11-28 23:25:03 +00:00
Defame1297 40d5c49e33 ci(molecule): run two scenarios at a time by default
A full run on main took 34 minutes with 2 lanes and 35 with 4: with 4 every scenario ran
about twice as slowly, so the runner is full at two, and two leave it room for pull request
jobs. The duration list now holds the 2-lane run's times and adds nfs_client.

Closes #432

Assisted-by: Claude Code
2026-11-28 23:23:45 +00:00
Defame1297 4201300291 refactor(system_baseline): give the role's internal registers the __ prefix
Build / build (pull_request) Successful in 1m0s
Lint / lint (pull_request) Successful in 4m15s
Molecule / molecule (pull_request) Successful in 13m48s
The unattended-upgrades check and the reboot-required stat registered results under
names that read as role inputs. Internal register and set_fact results are
__system_baseline_; the documented system_baseline_reboot_required output keeps its name.

Assisted-by: Claude Code
2026-11-28 23:21:56 +00:00
Defame1297 0779e8b5c7 test(ufw): cover the service_rules cases with fewer owners
Build / build (pull_request) Successful in 37s
Lint / lint (pull_request) Successful in 2m46s
Molecule / molecule (pull_request) Successful in 18m9s
The scenario called service_rules once per owner, eight times, about 30 tasks each, on every
check, converge and idempotence pass. Three owners keep every case.

- svc_a (no purge): the old svc_a (8001, 8002 with from), svc_b (8003, the 8004 deny with no
  comment or proto), svc_g (8022 with a comment mentioning 22), svc_e (7201 and the stale
  7003 kept because purging is off).
- svc_c (purge): the old svc_c (7101, stale 7001 deleted), svc_h (7301, the stale SSH
  lookalike kept), svc_p (7602, stale 7601 deleted, no-port, source-only and range rules
  kept). svc_a's stale 7003 surviving svc_c's purge proves owner isolation.
- svc_d (absent): unchanged.

The tagged total stays at 20 (svc_a 7, svc_c 7, svc_m 1, svc_o2 1, svc_o3 4) and the untagged
at 5. Converge keeps two orphan checks, one after the three cases without a purge and one after
the purge; the check after the invalid managed owner in verify goes, as the Verify play asserts
the same state. Converge gathers no facts: the role reads none.

Closes #457

Assisted-by: Claude Code
2026-11-28 21:52:36 +00:00
Defame1297 f766666476 test(system_baseline): run the vzdump guard cases against the guard alone
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 2m36s
Molecule / molecule (pull_request) Successful in 7m39s
Each of the seven vzdump cases ran the whole update entry point in check
mode, when they assert only the guard's decision. The guard now lives in
an internal tasks/vzdump_guard.yml, imported by update.yml so the update
tag, when and main-flow vars still reach it. Six cases include it
alone; the ubuntu_lxc case keeps running tasks_from: update end to end,
and a static check asserts the guard is imported before the upgrade and
that the upgrade's when reads its fact.

The purge of unwanted packages becomes one apt call over the installed
ones, skipped when none is installed. The scenario's gathering plays
use gather_subset min: the role reads only os_family and package_facts.

Closes #456

Assisted-by: Claude Code
2026-11-28 21:47:17 +00:00
Defame1297 7bc3cc6bdf feat(traefik): skip a fresh apt refresh and trim the scenario's repeated work
Build / build (pull_request) Successful in 1m16s
Lint / lint (pull_request) Successful in 5m47s
Molecule / molecule (pull_request) Successful in 8m58s
The prerequisites install takes only distribution packages and runs
before any source is added, yet refreshed the APT cache on every run.
It now passes cache_valid_time: 3600, as docker, system_baseline and
user_management already do; the README tells a consumer who adds a
source just before the role to refresh the cache themselves.

The default scenario repeated work other steps already cover. Verify
now exercises the update path once, to the other release, so prepare
builds only that stand-in; the role default's stand-in was used only
by the way back. mortis.kamino.ufw moves to prepare, as the ufw
scenario tests it, so converge and idempotence run only traefik, with
fact gathering off since none of the roles reads facts.

Closes #458

Assisted-by: Claude Code
2026-11-28 21:39:33 +00:00
Defame1297 2865573429 test(gitea_runner): fold the disk-pressure run into the failed-download case
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 2m30s
Molecule / molecule (pull_request) Successful in 3m43s
The verify step ran the whole role once only to set the disk threshold to 0. Prune runs
before update in tasks/main.yml, so the failed-download run can carry that input: the
pressure units are removed before the download fails at staging. The exact staging
message the rescue asserts comes only from update.yml, so a prune error still fails it.
The run with the scenario's inputs stays before the remove path, which needs the units back.

The forced re-registration child runs now start once instead of per host: they check only
controller state and group_vars, and run_once gives every host the registered results.

Closes #459

Assisted-by: Claude Code
2026-11-28 20:39:32 +00:00
Defame1297 be8c3f2ed9 test(docker): merge the verify role runs and assert a unit change keeps dockerd running
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 3m36s
Molecule / molecule (pull_request) Successful in 7m0s
The verify ran the role four times to switch the unit, daemon and restart
inputs, and each run refreshed apt against the stand-in repository. Nothing
showed that removing a unit leaves dockerd running.

The daemon-settings check now runs before any role run; those runs set no
daemon input until the last play, so daemon.json still holds converge's
content. One play then runs the role twice: first with the boot unit off, a
daemon change and no restart, asserting the units, the new value and an
unchanged dockerd start time; then with both units on and a restart,
asserting the boot unit is back, the value and a new start time.

Closes #460

Assisted-by: Claude Code
2026-11-28 20:39:19 +00:00
Defame1297 716baa19c7 Merge pull request 'revert(molecule): connect with the docker CLI again' (#465) from ci/455-revert-docker-api into main
Reviewed-on: #465
Reviewed-by: Defame1297 <[email protected]>
2026-11-28 19:52:16 +00:00
Defame1297 0961dfdff4 revert(molecule): connect with the docker CLI again
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 3m46s
Molecule / molecule (pull_request) Successful in 36m57s
Two full runs on the docker_api connection took 45 and 49 minutes against 35 on the
CLI connection, with the same tasks a median 13% slower. The fixed Python interpreter
from the same change stays.

Refs #455

Assisted-by: Claude Code
2026-11-28 19:12:18 +00:00
Defame1297 cdc5937e45 Merge pull request 'chore(apm): install the plan package' (#464) from feat/install-plan into main
Reviewed-on: #464
2026-11-28 18:46:25 +00:00
Defame1297 cd46e9dfb4 chore(apm): install holocron plan package
Build / build (pull_request) Successful in 1m6s
Lint / lint (pull_request) Successful in 4m29s
Molecule / molecule (pull_request) Successful in 12s
Adds the plan package, which turns a ticket or idea into a validated
spec and agent-ready tickets and ships the /next command. Its deployed
command is ignored like the deployed skills and agents.

The lock moves to lockfile_version 4 because apm-cli 0.38.1, the
version pinned in requirements-dev.txt, upgrades it on install.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-28 18:37:12 +00:00
Defame1297 8c3f9c4594 Merge pull request 'ci(molecule): connect over the Docker API with a fixed Python interpreter' (#463) from ci/455-docker-api-connection into main
Reviewed-on: #463
2026-11-28 17:55:54 +00:00
Defame1297 c109d24229 ci(molecule): name the issue that removes the docker CLI mount
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 3m24s
Molecule / molecule (pull_request) Successful in 17s
Part of #455

Assisted-by: Claude Code
2026-11-28 16:27:24 +00:00
Defame1297 faf1c7e36f ci(molecule): connect over the Docker API with a fixed Python interpreter
The docker driver's community.docker.docker connection starts the docker CLI for every task
on every host, and each playbook run discovers the interpreter on every container although
both molecule images ship /usr/bin/python3. The shared base config now sets
provisioner.connection_options, which molecule merges over the driver's own connection vars
for the container hosts only, so localhost keeps the controller's Python.

community.docker 5.4.1's docker_api connection supports pipelining and become and needs only
requests, which requirements-dev.lock already pins. The docker CLI bind mount in molecule.yml
stays until a green run shows nothing needs it; its comment and two others that named the
CLI's calls now describe the API connection.

Closes #455

Assisted-by: Claude Code
2026-11-28 15:51:17 +00:00
Defame1297 b5a5a4efa1 Merge pull request 'ci(molecule): start the longest scenarios first and pass the lane count in' (#461) from ci/432-molecule-order-lanes into main
Reviewed-on: #461
Reviewed-by: Defame1297 <[email protected]>
2026-11-28 15:01:59 +00:00
Defame1297 c0c1485470 Merge branch 'main' into ci/432-molecule-order-lanes
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 4m8s
Molecule / molecule (pull_request) Successful in 38m42s
2026-11-28 14:22:43 +00:00
Defame1297 92cf7257d4 test(molecule): wrap the runner stub under the sanity line limit
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 3m51s
Molecule / molecule (pull_request) Successful in 34m54s
Part of #432

Assisted-by: Claude Code
2026-11-28 08:48:29 +00:00
Defame1297 e34a0eb2e0 test(molecule): derive the order test from the duration list
Part of #432. The start-order test now reads its scenarios and their seconds
from the run script's list, so a refreshed list does not break it; the
empty-lanes test only asserts the value is accepted, and the script's header
and duration-list comments are rewrapped and say the list is keyed by
scenario directory.

Assisted-by: Claude Code
2026-11-28 08:45:05 +00:00
Defame1297 ef840c8952 ci(molecule): start the longest scenarios first and pass the lane count in
Part of #432. A long scenario started late sets the end of a full run, so
run_molecule_scenarios.sh now starts scenarios by the durations of the last
full run, longest first, with an unlisted scenario first; the log groups keep
the selection order. A workflow_dispatch input `lanes` reaches the script as
MOLECULE_LANES, so full runs with different lane counts can be compared; an
empty value keeps the default of 4.

The shared molecule config enables ansible.posix.profile_tasks (summary only)
and ansible.posix.timer, so each scenario's log shows where its time goes.

Assisted-by: Claude Code
2026-11-28 08:36:20 +00:00
Defame1297 29db4985fe Merge pull request 'feat(nfs_client): add a role that manages NFS client entries in fstab' (#451) from feat/402-nfs-client into main
Reviewed-on: #451
2026-11-28 08:25:06 +00:00
Defame1297 1fedced1d3 Merge branch 'main' into feat/402-nfs-client
Build / build (pull_request) Successful in 30s
Molecule / molecule (pull_request) Successful in 1m42s
Lint / lint (pull_request) Successful in 2m29s
2026-11-28 08:22:32 +00:00
Defame1297 a2ab13a6e1 Merge pull request 'feat(docker): pin the Docker apt key by checksum' (#454) from feat/448-docker-keyring-checksum into main
Reviewed-on: #454
2026-11-28 08:22:23 +00:00
Defame1297 a185a301db docs(docker): say the keyring checksum follows an overridden key URL
Build / build (pull_request) Successful in 28s
Lint / lint (pull_request) Successful in 3m37s
Molecule / molecule (pull_request) Successful in 7m29s
Set docker_keyring_checksum together with docker_gpg_url, and state that
the checksum is the hex digest without the sha256: prefix.

Assisted-by: Claude Code
2026-11-27 22:25:00 +00:00
Defame1297 c7c38c6bc0 feat(docker): pin the Docker apt key by checksum
The key that signs the Docker repository was trusted as whatever the URL served. It is now checked
against a pinned sha256, so a changed key stops the install until a person has verified it.

Assisted-by: Claude Code
2026-11-27 22:09:56 +00:00
Dragonish fcd2290e14 test(nfs_client): refresh the apt cache in the scenario's prepare
Build / build (pull_request) Successful in 31s
Molecule / molecule (pull_request) Successful in 2m5s
Lint / lint (pull_request) Successful in 2m47s
The molecule image ships without apt lists, and --check does not refresh
them, so the fresh-host check found no nfs-common to install and failed
with "No package matching 'nfs-common' is available". The docker, pihole,
system_baseline and traefik scenarios refresh the cache in prepare for the
same reason.

Refs #402

Assisted-by: Claude Code
2026-11-27 21:55:02 +00:00
Dragonish 5ce5e3c932 feat(nfs_client): add a role that manages NFS client entries in fstab
Build / build (pull_request) Successful in 31s
Molecule / molecule (pull_request) Failing after 43s
Lint / lint (pull_request) Successful in 1m53s
Installs nfs-common and manages NFS mount entries from nfs_client_mounts
(src, path, optional opts, state present or absent). Each mount point is
created without owner, group or mode, because once a share is mounted a
chown or chmod there changes the permissions on the NFS server. The role
writes only the fstab line and reloads systemd; it never mounts or
unmounts. An absent entry maps to ansible.posix.mount's absent_from_fstab,
which removes the line and leaves the share and the directory alone.

The default options are _netdev,nofail. x-systemd.automount is left out.

Verified locally: yamllint, ansible-lint (production profile), syntax check
of the scenario playbooks, the controller-side refusals of verify.yml (14
cases, each matched on its own message), and the module's fstab behaviour
against a scratch fstab (replacement, absent_from_fstab, idempotence).
Not verified: Molecule, which runs only in CI; the apt install and the
daemon-reload handler; that systemd generates the mount units in the
scenario's containers.

Refs #402

Assisted-by: Claude Code
2026-11-27 21:47:09 +00:00
Defame1297 b3b62121a3 Merge pull request 'chore(release): 3.2.0' (#450) from chore/release-3.2.0 into main
Build / build (push) Successful in 17s
Reviewed-on: #450
v3.2.0
2026-11-27 21:45:36 +00:00
Defame1297 b7bac07757 chore(release): 3.2.0
Build / build (pull_request) Successful in 29s
Molecule / molecule (pull_request) Successful in 6s
Lint / lint (pull_request) Successful in 1m35s
Minor release: new inputs for system_baseline (extra packages, skipping
the upgrade during a vzdump backup, leaving journald alone), cloudflared
and traefik, a staleness window for distribution-only APT refreshes, and
facts read through ansible_facts in docker, gitea_runner and
system_baseline.

Assisted-by: Claude Code
2026-11-27 21:36:05 +00:00