Commit Graph
62 Commits
Author SHA1 Message Date
Defame1297 76da009d12 Merge branch 'main' into fix/dev-setup-robustness
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 9s
2026-10-25 20:34:54 +00:00
Defame1297 a26eb97b38 Merge pull request 'docs: correct the credential statements in CLAUDE.md, CONTRIBUTING.md and the workflows' (#14) from docs/credential-and-workflow-comments into main
Build / build (push) Successful in 9s
Images / image (Dockerfile, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.0) (push) Successful in 28s
Lint / lint (push) Successful in 7s
Images / image (images/ci/Dockerfile, ci, , 0.2.0) (push) Successful in 3m9s
Reviewed-on: #14
2026-10-25 20:33:48 +00:00
Defame1297 5ea4bcdcaf Merge branch 'main' into docs/credential-and-workflow-comments
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 7s
2026-10-25 20:32:59 +00:00
Defame1297 483db4b4c2 Merge pull request 'fix(ci): let a push to main finish its Lint and Build runs' (#17) from fix/ci-concurrency-main-runs into main
Build / build (push) Successful in 10s
Lint / lint (push) Successful in 7s
Reviewed-on: #17
2026-10-25 20:32:07 +00:00
Defame1297 f98cb1c6b0 Merge branch 'main' into fix/ci-concurrency-main-runs
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 8s
2026-10-25 20:29:31 +00:00
Defame1297andClaude Sonnet 5.5 9dfec118a2 merge: bring main into fix/dev-setup-robustness and keep one script-test step
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 10s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 20:12:30 +00:00
Defame1297 f271730f6e Merge pull request 'ci: check image pins and image version bumps in Lint' (#16) from feat/ci-image-version-and-pin-check into main
Build / build (push) Successful in 9s
Lint / lint (push) Successful in 7s
Molecule / molecule (push) Successful in 27s
Reviewed-on: #16
Reviewed-by: Defame1297 <[email protected]>
2026-10-25 20:09:45 +00:00
Defame1297andClaude Sonnet 5.5 c3cd04e013 fix(ci): make the image pin check fail closed on odd spellings and Dockerfile sources
Build / build (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 8s
Molecule / molecule (pull_request) Successful in 29s
Pin mentions are matched case-insensitively with an optional port, a nested path
and no tag, so a mis-spelled or untagged pin is reported instead of ignored. The
Dockerfile COPY/ADD reader raises an error naming file and line on a source with
a variable, quote or comment character and on a RUN --mount of the build context,
and joins continuation lines with trailing blanks. A non-UTF-8 diff path and an
empty image.yml get their own messages, lint.yml is a required consumer, the
success line lists the consumers checked, and the docstring states the known limits.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 19:54:28 +00:00
Defame1297andClaude Sonnet 5.5 72e9813394 fix(dev-setup): quote the hook path, read core.hooksPath NUL-safely and lift an empty value
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 7s
The repository path is shell-quoted (printf %q) where it is written into the
installed hooks, so a path with spaces, quotes or $(...) is data. The local
core.hooksPath values are read with -z and compared and restored element by
element, so a value with a newline survives; the loop avoids mapfile. Any local
value, including an empty or trailing empty one, is lifted for the install and
restored. tests/scripts/test_dev_setup.py covers it with stub tools in throwaway
repositories, and lint.yml now runs tests/scripts.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 19:52:32 +00:00
Defame1297andClaude Sonnet 5.5 39fd0c385a fix(ci): drop the dead tag branch from the Lint concurrency group
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 7s
lint.yml has no tag trigger, so the ref_type == 'tag' branch of its
concurrency group could never run. Keep it in build.yml, which has one,
and correct the comment and changelog fragment accordingly.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 19:18:28 +00:00
Defame1297andClaude Sonnet 5.5 4fabe1358e fix(ci): make check_image_versions pass ansible-test sanity and harden its input handling
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 7s
Molecule / molecule (pull_request) Successful in 35s
Sanity (pylint, shebang) failed the Build check: drop the shebang and the
executable bit, simplify a comprehension, define functions instead of
assigning lambdas and pass check= to every subprocess.run.

Read the changed files with git diff -z so non-ASCII paths are compared
unquoted. Validate the matrix shape (non-empty list of mappings, string
name/version/dockerfile/subpath, no duplicate names) with one-line errors.
Match semver with fullmatch and reject leading zeros. Let a pin end at
, ) ] } or a quote. Document the known limits.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 19:16:30 +00:00
Defame1297andClaude Sonnet 5.5 74a5a0739b fix(dev-setup): install the restore trap first and fail clearly on a global hooksPath
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 6s
Install the EXIT/INT/TERM traps before core.hooksPath is lifted, make the
restore idempotent, and save and restore every local value of a
multi-valued setting in order. When a global or system value still applies
after the local one is lifted, print the script's own message and exit 1
before pre-commit runs. Note that readlink -f/-m are GNU.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 19:05:20 +00:00
Defame1297andClaude Sonnet 5.5 3b19cfd65e fix(ci): give tag runs their own concurrency group
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 6s
A tag run and the main run of the same commit shared the group keyed by the commit
SHA, so one could wait on the other. Tag runs are now keyed by their ref.
Cancellation stays limited to pull requests.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 18:52:57 +00:00
Defame1297andClaude Sonnet 5.5 8a0c5bf3dd fix(ci): harden check_image_versions against renames, odd refs and parse errors
Build / build (pull_request) Failing after 11s
Lint / lint (pull_request) Successful in 8s
Molecule / molecule (pull_request) Successful in 32s
Renamed or moved input files now count as touched (git diff --no-renames), so a
rename can no longer hide a changed image input. The base ref must be a plain ref
name and is passed after --end-of-options. Parse and git failures exit 1 with a
one-line message instead of a traceback. Prerelease versions compare per semver
(numeric identifiers numerically, numeric below alphanumeric). Whole-line YAML
comments are ignored when looking for pins.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 18:50:51 +00:00
Defame1297andClaude Sonnet 5.5 19faa49a4c fix(dev-setup): derive the repository from the script, rename PYTHON to KAMINO_PYTHON
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 7s
The script took its repository from the caller's working directory, so running it
from another repository could create or remove that repository's .venv. It now
resolves its own location (symlinks included) and uses git -C for every call.
The interpreter variable is KAMINO_PYTHON, and the usage comment no longer claims it
always selects the venv interpreter. A core.hooksPath that resolves to the
repository's own hooks directory is lifted for the install and restored; any
other value is still rejected.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 18:48:07 +00:00
Defame1297andClaude Sonnet 5.5 705b370e23 fix(ci): let a push to main finish its Lint and Build runs
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 6s
The concurrency group was the ref, so a second merge to main cancelled the run of
the first. Key the group on the sha outside pull requests and cancel only on
pull_request.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 18:22:57 +00:00
Defame1297andClaude Sonnet 5.5 a51090192e ci: check image pins and image version bumps in Lint
Build / build (pull_request) Failing after 10s
Lint / lint (pull_request) Successful in 6s
Molecule / molecule (pull_request) Successful in 30s
Add scripts/check_image_versions.py (pins mode, and bump mode on pull requests) with
unit tests, and run both plus the scripts' tests in lint.yml. tests/scripts is added
to galaxy.yml build_ignore.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 18:22:03 +00:00
Defame1297andClaude Sonnet 5.5 4ed03b508a fix(scripts): make dev-setup.sh check Python, core.hooksPath and the installed hooks
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 5s
Require Python 3.11+ (PYTHON selects the interpreter), rebuild a virtualenv made
by an older Python, exit early when core.hooksPath is set, fail clearly when a
hook was not installed, and resolve the hook path with --path-format=absolute.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 18:20:47 +00:00
Defame1297andClaude Sonnet 5.5 24500e9eed docs: correct the credential statements in CLAUDE.md, CONTRIBUTING.md and the workflows
Build / build (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 6s
State that a same-repo pull request gets org secrets and that Gitea 28 refuses the
job token for org packages. Rename image.yml's workflow to "Images" (cosmetic, no
step changed) and update stale comments.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 18:19:06 +00:00
Defame1297 32018e27f0 Merge pull request 'chore: add scripts/dev-setup.sh and a CLAUDE.md for working in this repository' (#12) from chore/dev-setup-and-claude-md into main
Build / build (push) Successful in 8s
Lint / lint (push) Successful in 5s
Reviewed-on: #12
Reviewed-by: Defame1297 <[email protected]>
2026-10-25 16:40:26 +00:00
Defame1297andClaude Sonnet 5.5 44470c3bc3 chore: add scripts/dev-setup.sh and a CLAUDE.md for working in this repository
Build / build (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 6s
dev-setup.sh creates the virtualenv with the pinned tools and installs the git
hooks with the virtualenv first on PATH inside the hook scripts. Without that,
the language: system hooks (REUSE, changelog lint, ansible-lint) fail with
"No such file or directory: 'reuse'" on a plain `git commit`; found while testing
the hooks in a fresh clone.

CLAUDE.md records the rules of the repository for Claude Code: commit with git
so the hooks run (the Gitea API skips them, which let four lint failures reach
CI), feature branches and protected main/tags, the workflow rules, how the
images are versioned and pinned, and the 100 MB layer limit. It is written for
a repository that will be public: no addresses, no host names beyond the
public Gitea.

CONTRIBUTING.md points at the script.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 16:36:37 +00:00
Defame1297 ffca1f88cf Merge pull request 'perf(ci): run Lint and Build in ci:0.2.0' (#11) from feat/use-ci-image-0-2-0 into main
Build / build (push) Successful in 8s
Lint / lint (push) Successful in 5s
Reviewed-on: #11
2026-10-25 13:31:06 +00:00
ClaudeandClaude Sonnet 5.5 9bcf71b622 perf(ci): run Lint and Build in ci:0.2.0 (primed ansible-test sanity virtualenvs)
Build / build (pull_request) Successful in 21s
Lint / lint (pull_request) Successful in 5s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 12:36:40 +00:00
Defame1297 67f95e18de Merge pull request 'feat(molecule): add the molecule workflow and an image smoke scenario' (#10) from feat/molecule-workflow into main
Build / build (push) Successful in 24s
Lint / lint (push) Successful in 5s
Molecule / molecule (push) Successful in 34s
Reviewed-on: #10
2026-10-25 12:34:33 +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
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
Defame1297 10dec8b9a6 Merge pull request 'feat(image): bake the ansible-test sanity virtualenvs into the ci image' (#9) from feat/ci-image-sanity-venvs into main
Build / build (push) Successful in 24s
Molecule image / image (Dockerfile, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.0) (push) Successful in 27s
Lint / lint (push) Successful in 4s
Molecule image / image (images/ci/Dockerfile, ci, , 0.2.0) (push) Successful in 3m7s
Reviewed-on: #9
2026-10-25 12:14:07 +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
ClaudeandClaude Sonnet 5.5 908abd1a16 feat(image): release the ci image as 0.2.0
Build / build (pull_request) Successful in 24s
Lint / lint (pull_request) Successful in 4s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 12:10:04 +00:00
ClaudeandClaude Sonnet 5.5 f540e652d3 feat(image): bake the ansible-test sanity virtualenvs into the ci image
`ansible-test sanity --requirements` builds one virtualenv per test under
~/.ansible/test/venv (keyed by the requirements hash) on every run: about
25s of the Build job. Prime them at image build time with --prime-venvs
against a stub collection, for the controller Python and the baked 3.11 and
3.13, and copy ~/.ansible/test into the final image as its own layer.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 12:10:03 +00:00
Defame1297 be673b266d Merge pull request 'perf(ci): run Lint and Build in the baked ci image' (#8) from feat/use-ci-image into main
Build / build (push) Successful in 23s
Molecule image / image (Dockerfile, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.0) (push) Successful in 30s
Lint / lint (push) Successful in 4s
Molecule image / image (images/ci/Dockerfile, ci, , 0.1.0) (push) Successful in 2m20s
Reviewed-on: #8
2026-10-25 12:00:01 +00:00
ClaudeandClaude Sonnet 5.5 8437e7cb66 perf(build): run in the ci image instead of installing the tools every run
Build / build (pull_request) Successful in 37s
Lint / lint (pull_request) Successful in 5s
Same container and pin check as lint.yml.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 11:57:28 +00:00
ClaudeandClaude Sonnet 5.5 c56797caaa perf(lint): run in the ci image instead of installing the tools every run
The job container is git.rkdr.net/mortis/ci:0.1.0, pinned by tag and digest. It
carries git, shellcheck, the pinned Python tools (/opt/venv) and every
pre-commit hook environment (/opt/pre-commit). After the checkout the job
compares the pin files with the checksums recorded in the image; on a
mismatch (a PR that changes a pin) it installs the pinned tools for this run,
as before, and pre-commit builds the hook environments it is missing.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 11:57:27 +00:00
ClaudeandClaude Sonnet 5.5 0cc1194587 style(image): wrap the registry Accept header to satisfy yamllint line-length
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 11:57:26 +00:00
Defame1297 3c92b3fe32 Merge pull request 'feat(image): publish the images under a semver tag' (#7) from feat/image-semver into main
Build / build (push) Successful in 49s
Molecule image / image (Dockerfile, molecule-ubuntu2404, images/molecule-ubuntu2404, 0.1.0) (push) Successful in 30s
Lint / lint (push) Failing after 1m22s
Molecule image / image (images/ci/Dockerfile, ci, , 0.1.0) (push) Successful in 2m23s
Reviewed-on: #7
2026-10-25 11:45:53 +00:00
ClaudeandClaude Sonnet 5.5 605bd66ea4 docs(image): update the trigger comment for the removed v* tag trigger
Build / build (pull_request) Successful in 49s
Lint / lint (pull_request) Failing after 1m21s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 11:44:18 +00:00
ClaudeandClaude Sonnet 5.5 c6b1d7c786 feat(image): publish the images under a semver tag
Each image gets a version in the build matrix, pushed as a tag next to
sha-<12> and latest, so consumers can pin image:X.Y.Z@sha256:<digest>.
Gitea cannot make a tag immutable, so the prepare step asks the registry
first: when the version tag already exists it is left alone and the job warns
that the version needs bumping. Image versions are independent of the
Collection's release tags, so the v* tag trigger and tag handling go.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 11:44:02 +00:00
Defame1297 3bfa4ef58a Merge pull request 'fix(image): make the hook smoke-test samples pass yamllint --strict' (#6) from fix/ci-image-smoke-samples into main
Build / build (push) Successful in 49s
Molecule image / image (Dockerfile, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 28s
Lint / lint (push) Successful in 1m21s
Molecule image / image (images/ci/Dockerfile, ci, ) (push) Successful in 2m20s
Reviewed-on: #6
2026-10-25 11:35:53 +00:00
ClaudeandClaude Sonnet 5.5 eac17da022 fix(image): make the hook smoke-test samples pass yamllint --strict
Build / build (pull_request) Successful in 50s
Lint / lint (pull_request) Successful in 1m24s
The yamllint hook runs with --strict, so the warnings on the sample files
(missing document start, unquoted `on` key) failed the build (run 2256).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 11:32:31 +00:00
Defame1297 6fb490a062 Merge pull request 'fix(image): stage only the sample files in the ci image's hook smoke test' (#5) from fix/ci-image-smoke-test into main
Build / build (push) Successful in 52s
Molecule image / image (Dockerfile, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 28s
Lint / lint (push) Successful in 1m20s
Molecule image / image (images/ci/Dockerfile, ci, ) (push) Failing after 1m45s
Reviewed-on: #5
2026-10-25 11:26:49 +00:00
ClaudeandClaude Sonnet 5.5 9be17d6655 fix(image): stage only the sample files in the ci image's hook smoke test
Build / build (pull_request) Successful in 50s
Lint / lint (pull_request) Successful in 1m23s
`git add -A` also staged the copied .pre-commit-config.yaml, so the yamllint
smoke run linted it with the default rules (six lines over 80 characters)
and, under set -eu, aborted the build before gitleaks and actionlint ran.
pre-commit does not need its own config to be tracked.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 11:24:46 +00:00
Defame1297 03d2c1dc91 Merge pull request 'fix(image): drop the Go toolchains from the ci image's hook cache' (#4) from fix/ci-image-layer-size into main
Build / build (push) Successful in 51s
Molecule image / image (Dockerfile, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 29s
Lint / lint (push) Successful in 1m21s
Molecule image / image (images/ci/Dockerfile, ci, ) (push) Failing after 1m44s
Reviewed-on: #4
Reviewed-by: Defame1297 <[email protected]>
2026-10-25 11:13:48 +00:00
ClaudeandClaude Sonnet 5.5 8078477a4b fix(image): drop the Go toolchains from the ci image's hook cache
Build / build (pull_request) Successful in 51s
Lint / lint (pull_request) Successful in 1m23s
The first push of mortis/ci failed with 413 Payload Too Large: the
/opt/pre-commit layer was 377 MB, of which two environments of 172 and
176 MB (gitleaks and actionlint) each hold their own Go toolchain
(pre-commit keeps <env>/.go; only the built binaries in <env>/bin run).

Run the yamllint, gitleaks and actionlint hooks on a staged sample, delete
the toolchains and the Go build cache, and run the three hooks again, so a
cache that no longer works fails the build instead of the jobs.

Also stop the python3.X symlink loop from hiding a broken link (the RUN had
no -e, so only the last iteration decided the status).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 10:57:49 +00:00
Defame1297 2684378925 Merge pull request 'feat(image): build a CI image with the lint and build tooling baked in' (#3) from feat/ci-image into main
Build / build (push) Successful in 50s
Molecule image / image (Dockerfile, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 27s
Lint / lint (push) Successful in 1m21s
Molecule image / image (images/ci/Dockerfile, ci, ) (push) Failing after 2m52s
Reviewed-on: #3
2026-10-25 10:49:48 +00:00
ClaudeandClaude Sonnet 5.5 98ca27bbc0 feat(image): build the ci image next to the molecule image
Build / build (pull_request) Successful in 50s
Lint / lint (pull_request) Successful in 1m23s
Matrix over both images. molecule-ubuntu2404 keeps its sub-path context;
ci uses the repository root as context (its Dockerfile copies the pin
files) and also rebuilds when requirements-dev.txt or
.pre-commit-config.yaml change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 10:47:06 +00:00
ClaudeandClaude Sonnet 5.5 924a598233 feat(image): build a CI image with the lint and build tooling baked in
Lint and Build install OS packages, the pinned Python tools and every
pre-commit hook environment on each run (about 40s of the 50 to 86s). Bake
them into git.rkdr.net/mortis/ci instead:

- images/ci/Dockerfile, multi-stage: the build stage creates the venv from
  requirements-dev.txt, installs Python 3.11 and 3.13 (uv, for the ansible-test
  compile check that is skipped today) and runs `pre-commit install-hooks`
  from .pre-commit-config.yaml; the final stage copies only the results.
  Several layers, each meant to stay below Cloudflare's 100 MB request limit.
- The image records the sha256 of the two pin files it was built from
  (/opt/ci-pins.sha256) so a job can detect drift and fall back to
  installing at run time.
- image.yml builds both images in a matrix (molecule-ubuntu2404 unchanged,
  ci with the repository root as build context) and also runs when the pin
  files change.

Nothing consumes the image yet: the workflows switch to its digest in a
follow-up once the first build has shown the real layer sizes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 10:46:54 +00:00
Defame1297 3bac7a4a09 Merge pull request 'fix(image): read the pushed digest from the kaniko log' (#2) from fix/image-digest-after-build into main
Build / build (push) Successful in 49s
Molecule image / image (push) Successful in 28s
Lint / lint (push) Successful in 1m21s
Reviewed-on: #2
Reviewed-by: Defame1297 <[email protected]>
2026-10-25 10:40:43 +00:00
ClaudeandClaude Sonnet 5.5 1ecd060239 fix(image): ignore anything after the 64 hex digits of the logged digest
Build / build (pull_request) Successful in 49s
Lint / lint (pull_request) Successful in 1m24s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 10:39:20 +00:00