The self-check reads the ansible-core and molecule versions from the
lock with sed; an empty result made the grep match any version. It now
fails the build instead.
Refs #477
Assisted-by: Claude Code
The registry answers tags/list for a repository that does not exist yet
with 404 NAME_UNKNOWN (OCI distribution spec), which failed the Images
version step for the first build of a new image such as
molecule-controller. A 404 on the first tags/list page now reads as no
tags, so the image gets <base>.0; a 404 on a manifest stays an error.
Refs #477
Assisted-by: Claude Code
Renovate's pip-compile manager now reads requirements-molecule.lock, and
its uv manager reads the controller Dockerfile's uv pin. The bot-PR
guard holds the controller requirements and lock to the same rules as
requirements-dev.txt and its lock, so the bot's pull requests for them
are neither refused nor freer than the ci ones. The ansible tooling
group spans both locks, so one pull request moves both ansible-core
pins, which check_image_versions.py holds equal.
Checked with renovate 44.161.0 --platform=local: it extracts
requirements-molecule.txt with requirements-molecule.lock, and the uv
pin of images/molecule-controller/Dockerfile.
Refs #477
Assisted-by: Claude Code
ADR 0003 moves Molecule out of the ci image, so a ci bump for a tool
only Lint uses stops selecting every scenario. This builds and publishes
the image; nothing pins it yet (#431).
It bakes requirements-molecule.lock (ansible-core, molecule,
molecule-plugins[docker]) on the Python of .python-version and the
collections of both requirements.yml files, and records their checksums
in /opt/molecule-pins.sha256. Its last RUN checks the tool versions
against the lock, the Docker driver, every pinned collection and the
pin record, so a broken image fails its build. It has no image-smoke
scenario: it is the controller of every scenario, and the full run of
its pin pull request proves it; images/AGENTS.md records the exception.
check_image_versions.py pins now checks the Python header of both locks
and fails when their ansible-core pins differ, so Lint and Molecule
judge the code with one ansible-core. The new requirements files stay
off the selector's IGNORED list, so a bump there runs every scenario.
Refs #477
Assisted-by: Claude Code
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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