feat(molecule): add the molecule workflow and an image smoke scenario #10

Merged
Defame1297 merged 5 commits from feat/molecule-workflow into main 2026-10-25 12:34:33 +00:00
5 Commits
Author SHA1 Message Date
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
Defame1297 54c7826934 Merge branch 'main' into feat/molecule-workflow
Build / build (pull_request) Successful in 24s
Lint / lint (pull_request) Failing after 5s
Molecule / molecule (pull_request) Successful in 29s
2026-10-25 12:18:11 +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