Commit Graph
30 Commits
Author SHA1 Message Date
Defame1297 1ab01b6e3a ci(molecule): run the selected scenarios side by side in four lanes
Build / build (pull_request) Successful in 19s
Lint / lint (pull_request) Successful in 1m7s
Molecule / molecule (pull_request) Successful in 11m58s
A full run executes 15 scenarios one after another, about 1100 s in
total, with the slowest (traefik/default) at about 216 s. The scenarios
share nothing on the runner's Docker daemon but the daemon itself: their
container names are unique. So scripts/run_molecule_scenarios.sh now runs
MOLECULE_LANES (default 4, a positive integer) of them at once inside the
one job, with the slowest scenario as the floor; the saving will be
measured in CI.

Each scenario gets its own ANSIBLE_HOME under the job tree. With
Runtime(isolated=False), ansible-compat uses ANSIBLE_HOME as molecule's
cache dir: molecule's prerun installs the collection under test there with
`ansible-galaxy collection install --force` (which first deletes the
installed copy), and the scenario's ephemeral directory (inventory,
ansible.cfg, state) lives under it. A shared one would let a scenario
delete the copy another is running.

Each scenario's output goes to its own log, printed afterwards in the
selection order inside its own group with its wall time, plus a timing
summary. The failure list, the ran-N-of-M guard, </dev/null stdin, the
role-directory cwd and the per-scenario container removal are kept. A
TERM, INT or HUP to the script stops each lane's whole process tree,
including the process groups of ansible's detached workers (they call
setsid), terminates it, ignores further signals until done, and exits
128 plus the first signal. A kill of the step's process group reaches
the lanes and molecule but not ansible's detached workers. Either way a
cancelled job leaves no molecule behind to recreate a container after
the next run's cleanup. The logic moved from the workflow into a script
so a unit test with stub molecule and docker can hold it; the test also
fails a scenario whose platform name is not unique or not matched by the
stale-container filter, which is what makes running side by side safe.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-22 22:37:00 +00:00
Defame1297 f77586dc60 ci(molecule): remove each scenario's containers in the workflow instead of molecule's destroy
molecule's trailing destroy runs the Docker driver's destroy playbook, whose
"Wait for instance(s) deletion to complete" task alone costs about 5.6 s per
scenario, about 84 s over the 15 scenarios of a full run. The whole destroy
phase measured about 103 s per full run (the median across full runs, among
them 4764, 4714, 4698 and 4578). The workflow already removes stale
containers before the run, so it can remove each scenario's containers itself
with `docker rm -f` as soon as the scenario ends, pass or fail, and skip the
playbook.

The names come from each scenario's molecule.yml (platforms[].name) via the
molecule venv's Python and PyYAML, so no list is kept in the workflow. A
failed removal fails the step. The test_sequence rule in the workflow guidance
now says both destroys are left out and that platform names are literal.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-22 22:33:52 +00:00
Defame1297andClaude Fable 5.2 dfeb423db1 docs: remove the ADR 0004 citations
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 49s
Molecule / molecule (pull_request) Successful in 15m15s
The comments and docstrings that cited a document outside this
repository now state their reason inline or nothing. No pointer to a
future ADR is added, and no behaviour changes.

Closes #128

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-21 06:22:57 +00:00
Defame1297andClaude Fable 5.2 3384ff2836 docs: remove references to anything outside this repository
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m3s
Molecule / molecule (pull_request) Successful in 15m33s
This repository is public and stands alone. Comments and prose no longer
describe another repository, its documents, hosts, network or runner
sizing; each one states its own reason or is gone.

- Workflow headers keep the conclusions (disposable runner with no
  outside secret, the if: guard is not a boundary, no fork pull
  requests, the image build's memory cap) and drop the description.
- Isolation lines are worded as a property of this repository.
- The denied image namespace stays in check_image_versions.py, described
  only as a namespace this repository's CI must not use.
- CLAUDE.md and CONTRIBUTING.md gain the standing rule and the search to
  run when bringing content in from another repository.
- ci image 0.2.29 -> 0.2.30: .pre-commit-config.yaml and
  requirements-dev.txt are image inputs.

The ADR 0004 pointers, the README Roadmap, the skills-source mentions
and released changelog entries stay as they are.

Closes #108

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-20 22:57:17 +00:00
Defame1297 6bda5f252f Merge branch 'main' into renovate/git.rkdr.net-mortis-molecule-ubuntu2604-0.x
Build / build (pull_request) Successful in 12s
Molecule / molecule (pull_request) Successful in 9m49s
Lint / lint (pull_request) Successful in 32s
2026-11-16 22:06:05 +00:00
renovate-bot ad8b193035 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2604 docker tag to v0.1.5
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 12s
Molecule / molecule (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 13s
2026-11-16 21:54:34 +00:00
renovate-bot f1bac53250 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2404 docker tag to v0.1.8
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 32s
Molecule / molecule (pull_request) Successful in 9m49s
2026-11-16 21:54:33 +00:00
Defame1297andClaude Sonnet 5.5 f6f690b8d0 chore(deps): move the image pins to ci 0.2.23 and the molecule images 0.1.7 / 0.1.4
Build / build (pull_request) Successful in 25s
Lint / lint (pull_request) Successful in 26s
Molecule / molecule (pull_request) Successful in 8m13s
Hand-made pin follow-up (the Renovate PRs were held back by its hourly PR
limit). Digests are the "Pinned reference" lines of the Images runs on main:
ci 0.2.23 (run 3970), molecule-ubuntu2404 0.1.7 (run 3925), molecule-ubuntu2604
0.1.4 (run 3952).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTRacjtXvmKxHr5TM5G
2026-11-15 09:48:27 +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 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 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
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 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
Defame1297andClaude Sonnet 5.5 79a78f2921 docs: prepare the repository for publication
Build / build (pull_request) Failing after 4s
Lint / lint (pull_request) Failing after 12s
Molecule / molecule (pull_request) Successful in 1m8s
Rewrite stale gate wording and trim private references so the repository
can be made public.

- molecule.yml header: the runner sits in an isolated network segment, not
  behind the Proxmox firewall; state that a fork PR's workflow started
  without approval in a live test (unproven for outsiders) and that the
  `if:` guard is a convenience, not a boundary. Fork PRs are not claimed
  disabled; the repository should not accept them from untrusted users.
- CONTRIBUTING.md: same fork PR statement.
- SECURITY.md: new, with a TODO(operator) for the reporting contact.
- CLAUDE.md trimmed. Removed: the private environment-repo links and issue
  numbers, the two-sentence extraction history, run numbers, the registry
  push secret names and the Renovate token name and scopes, the Renovate
  dry-run and first-live-run narrative, the runner hostname and the
  cron time. Kept: git -C and commit-with-git rules, runner labels, image
  and Renovate rules.
- ADR 0004 references in workflows and scripts now say it lives in the
  maintainer's environment repository; docs/images/ci.md drops "private".

Comment and doc text only; image pins, the bot e-mail and runner labels
are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-11-08 17:38:58 +00:00
Defame1297 0ba3f5b389 Merge branch 'main' into renovate/git.rkdr.net-mortis-molecule-ubuntu2604-0.x
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 13s
Molecule / molecule (pull_request) Successful in 1m5s
2026-11-01 20:37:09 +00:00
renovate-bot deebbfeae0 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2604 docker tag to v0.1.3
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 12s
Molecule / molecule (pull_request) Successful in 1m5s
2026-11-01 20:31:28 +00:00
renovate-bot c5d783d59c chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2404 docker tag to v0.1.5
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 15s
Molecule / molecule (pull_request) Successful in 1m1s
2026-11-01 20:31:26 +00:00
Defame1297 186839ac3d Merge branch 'main' into renovate/git.rkdr.net-mortis-molecule-ubuntu2604-0.x
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 12s
Molecule / molecule (pull_request) Successful in 1m6s
2026-10-27 10:48:26 +00:00
renovate-bot 3d8986c12d chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2604 docker tag to v0.1.2
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 16s
Molecule / molecule (pull_request) Successful in 1m8s
2026-10-27 10:40:06 +00:00
renovate-bot 4567093418 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2404 docker tag to v0.1.4
renovate/stability-days Updates have met minimum release age requirement
Molecule / molecule (pull_request) Canceled after 0s
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 17s
2026-10-27 10:40:00 +00:00
Defame1297andClaude Sonnet 5.5 a6583db5d5 ci: run Molecule on every same-repo pull request and print the Renovate report shape
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 13s
Molecule / molecule (pull_request) Successful in 1m2s
Molecule skipped bot branches and used a path filter, so a Renovate pin pull request for the
molecule image merged without a single scenario having run on it (#35, then #44): the first test
of a new image was main. Now it runs on every same-repo pull request, bot branches included, and
with no path filter it can be a required check. A bot pull request stays limited to pin and
version lines by the bot-diff gate, so it adds no capability a pusher does not already have.

The Renovate job prints the shape of its JSON report (top-level keys, per-branch fields) once, so
a check that fails the job on a failed post-upgrade task can be written against a real field.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 20:09:55 +00:00
renovate-bot 6c89da43c3 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2604 docker tag to v0.1.1
Molecule / molecule (pull_request) Skipped
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 13s
2026-10-26 19:56:37 +00:00
renovate-bot 00663ed942 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2404 docker tag to v0.1.3
Molecule / molecule (pull_request) Skipped
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Canceled after 13s
2026-10-26 19:52:45 +00:00
Defame1297andClaude Sonnet 5.5 b27513f0bd feat(molecule): test the 26.04 image and move the 24.04 pin to 0.1.2
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 12s
Molecule / molecule (pull_request) Successful in 1m2s
Adds the image-smoke-2604 scenario (asserts Ubuntu 26.04) and the MOLECULE_IMAGE_2604 pin
(molecule-ubuntu2604 0.1.0, the digest its first build printed, run 2534). Moves
MOLECULE_IMAGE to molecule-ubuntu2404 0.1.2 (digest printed by run 2541): the 0.1.1 image
is Ubuntu 26.04, so image-smoke has failed on main since the base bump. The Renovate
pattern for the multi-line pin now also reads MOLECULE_IMAGE_<release>.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 19:16:51 +00:00
renovate-bot b71208dba4 chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2404 docker tag to v0.1.1
Molecule / molecule (pull_request) Skipped
renovate/stability-days Updates have met minimum release age requirement
Lint / lint (pull_request) Canceled after 0s
Build / build (pull_request) Canceled after 13s
2026-10-26 18:37:38 +00:00
ClaudeandClaude Sonnet 5.5 0b87c8f14b fix(molecule): wrap the tooling check line that exceeds the yamllint line length
Build / build (pull_request) Successful in 24s
Lint / lint (pull_request) Successful in 5s
Molecule / molecule (pull_request) Successful in 29s
The long line was the `test -x` check (166 > 160), not the image reference.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 12:31:55 +00:00
ClaudeandClaude Sonnet 5.5 0211a63923 fix(molecule): satisfy yamllint and shellcheck, and keep molecule's collection install job-local
Build / build (pull_request) Successful in 24s
Lint / lint (pull_request) Failing after 5s
Molecule / molecule (pull_request) Successful in 34s
yamllint line-length on the MOLECULE_IMAGE value (166 > 160) and shellcheck
SC2155 on the export. And: the first run showed molecule installing the
collection under test into the runner user's ~/.ansible/collections and warning
about the duplicate in the job tree. That copy outlives the job and the version
stays 0.1.0, so a later run could resolve a stale one. ANSIBLE_HOME now points
into the job tree, and a copy left by earlier runs is removed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 12:14:52 +00:00
ClaudeandClaude Sonnet 5.5 29278e9625 fix(molecule): capitalise a task name and repeat the paths instead of using an anchor
Build / build (pull_request) Successful in 24s
Lint / lint (pull_request) Failing after 5s
Molecule / molecule (pull_request) Successful in 35s
ansible-lint name[casing] on the smoke verify task; and the workflow trigger
paths are written out for both events (YAML anchors in an `on:` block are not
something to rely on in Gitea's workflow parser).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 12:11:51 +00:00
ClaudeandClaude Sonnet 5.5 12c70ec7dc feat(molecule): add the molecule workflow and an image smoke scenario
.gitea/workflows/molecule.yml runs every molecule scenario of the Collection
on the kamino-molecule host-executor label of kamino-runner (the Docker
daemon of the runner LXC, no job container, no Docker socket handed out),
against the molecule-ubuntu2404 image pinned by tag and digest. Scenarios are
discovered: extensions/molecule/*/ and roles/*/molecule/*/, so the wave-1 roles
only add their scenario directory.

extensions/molecule/image-smoke tests the image itself: Ubuntu 24.04, systemd
as PID 1 and reachable over the container connection, the packages the roles
manage, ssh enabled, the python bindings Ansible needs, NET_ADMIN. A rebuilt
or re-pinned image therefore has to pass before a role scenario trusts it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 12:11:18 +00:00