45 Commits
Author SHA1 Message Date
Defame1297 8c52c91dfd ci(molecule): run the in-image step from a tested script and list the fifth pin file
Assisted-by: Claude Code
2026-11-24 07:23:42 +00:00
Defame1297 2e32016c43 ci(molecule): run Molecule from the ci image instead of the runner's venv
Pin molecule and its Docker driver in requirements-dev.txt and bake them,
with the driver's collection, into the ci image. The Molecule job runs
docker run on the pinned ci image with the Docker socket and the checkout
mounted at the same path, as the runner user. A pull request whose pins
differ from the image installs its own pins first, so a core bump runs its
scenarios on the new core. gitea_runner no longer installs the molecule
venv and collections.

Closes #225

Assisted-by: Claude Code
2026-11-24 07:14:19 +00:00
Defame1297 b12c990b6a ci(images): assign image versions in CI and open the pin PR right after a push
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
The image.yml matrix holds a hand-edited base (MAJOR.MINOR) per image instead
of a version. On main, scripts/next_image_version.py compares a checksum of the
image's inputs with the inputs-sha256 label of the newest published <base>.N
and the job publishes <base>.N+1 when they differ, or builds nothing when they
match. A published tag is still never moved.

renovate.yml runs live on the successful completion of Images (workflow_run),
so the pin pull request opens minutes after a push instead of on the schedule.

Removed: bump_image_versions.py and its tests, check_image_versions.py bump,
Lint's bump step, Renovate's postUpgradeTasks, and the bot-diff allowance for
matrix version lines.

Closes #165

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 21:15:16 +00:00
renovate-bot f34769bca2 chore(deps): update ubuntu:24.04 docker digest to 9c7f200
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m16s
Molecule / molecule (pull_request) Successful in 1s
2026-11-23 10:27:10 +00:00
Defame1297 fbc9b375a6 docs(agents): write nested AGENTS.md for scripts, workflows, images and ADRs
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 54s
Molecule / molecule (pull_request) Successful in 20m4s
Each file holds its directory's rules in full: the rule, a one-sentence
reason and how it is held (control, review or aspirational). The interim
dependency and image section of making-a-change.md moves into
scripts/AGENTS.md and images/AGENTS.md; the contributor docs point to the
new files.

Closes #182

Assisted-by: Claude Code:claude-opus-5-5
2026-11-22 15:42:51 +00:00
Defame1297andClaude Opus 5.5 308589e7f9 ci: name the single credential check in the image step and its log
Build / build (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 59s
Molecule / molecule (pull_request) Successful in 1s
The step no longer chooses between credentials, so its name says it
checks the push token, and the log records that the probe passed. The
Dockerfile says why the smoke workflow sets `permissions: {}`.

Refs #145

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-21 18:53:41 +00:00
Defame1297andClaude Opus 5.5 e45b92551a ci: lint workflows with zizmor
Add zizmor (v1.32.0, pinned by SHA) as a pre-commit hook over
.gitea/workflows, offline at its default level; it fails on
pull_request_target and on ${{ }} expanded into run:. The ci image
bakes and smoke-tests the new hook environment, so its version moves
to 0.2.32.

image.yml drops `packages: write` and the job-token probe: Gitea 28
refuses the job token for organisation packages, and the latest build
used the org push token. One probe of that token now fails fast.

Refs #145

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-21 18:52:22 +00:00
renovate-bot 54cf2df6ff chore(deps): update dependency uv to v0.13.9
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 14s
Lint / lint (pull_request) Successful in 1m11s
Molecule / molecule (pull_request) Successful in 1s
2026-11-21 03:18:16 +00:00
Defame1297 061231c21c Merge branch 'main' into renovate/ubuntu-26.04
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 2s
2026-11-16 21:38:25 +00:00
renovate-bot ae822e72c7 chore(deps): update ubuntu:26.04 docker digest to d66b366
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 1s
2026-11-16 21:31:53 +00:00
renovate-bot d9e43d1955 chore(deps): update ubuntu:24.04 docker digest to 73b9993
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 2s
2026-11-16 21:31:48 +00:00
Defame1297andClaude Sonnet 5.5 cf5f4b596c fix(image): drop the unused libpython shared libraries from the ci image
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 31s
Molecule / molecule (pull_request) Successful in 1s
The ci 0.2.26 build succeeded but its push got HTTP 413 from Cloudflare: the
/opt/python layer, now three baked interpreters (3.11, 3.13, 3.14), was 99.1 MB
compressed (the registry stores about 9% more), over the 95 MiB limit. Each
python-build-standalone interpreter ships a ~33 MB lib/libpython<MINOR>.so
next to a statically linked python binary that does not use it. Remove it
unless the binary links it. /opt/python goes from 95.8 to 67.7 MB compressed
in a local run; all three interpreters still import ssl, sqlite3 and venv.
ci image 0.2.26 (never published) -> 0.2.27.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-16 08:24:06 +00:00
Defame1297andClaude Sonnet 5.5 b0607a39e2 ci(python): one Python (3.14) for the lock, a clone and the ci image
Build / build (pull_request) Successful in 14s
Molecule / molecule (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 56s
.python-version (3.14) is the source. dev-setup.sh and lock-requirements.sh
require exactly that minor; the ci image builds /opt/venv from its baked
python-build-standalone of that version (ARG PYTHON_VERSION) instead of the
distribution's python3, and derives the python<MINOR> links for
ansible-test from it; `check_image_versions.py pins` fails when
.python-version, the lock header or an `ARG PYTHON_VERSION` differs.
The lock already carries the 3.14 header (Renovate's -full container runs
pip-compile on its own python 3.14.8); renovate.yml now says that python's
minor version must equal .python-version. ci image 0.2.25 -> 0.2.26.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-16 07:42:45 +00:00
renovate-bot b58b7f0ce3 chore(deps): update dependency uv to v0.13.8
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 31s
Molecule / molecule (pull_request) Successful in 2s
2026-11-16 03:19:00 +00:00
renovate-bot 28679187a7 chore(deps): update ubuntu:26.04 docker digest to 065aa86
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 1s
2026-11-15 09:17:04 +00:00
renovate-bot af65d47a3d chore(deps): update ubuntu:24.04 docker digest to 2198e4c
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 36s
Molecule / molecule (pull_request) Successful in 1s
2026-11-15 03:17:50 +00:00
Dragonish 4058978353 ci(deps): pin hook revisions by SHA and install dev tools from a hashed lock
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 1m42s
Molecule / molecule (pull_request) Successful in 5m23s
Refs #113.

- .pre-commit-config.yaml: every hook repo is pinned by commit SHA with the release in a
  `# frozen:` comment, so a moved tag cannot change the code a hook environment is built from.
- requirements-dev.lock: hashed lock of requirements-dev.txt. Installs use
  `pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt` (dev-setup.sh,
  the ci image, the fallback install of Lint and Build): pip refuses an unhashed package and any
  disagreement between the two files.
- scripts/lock-requirements.sh regenerates the lock (pinned pip and pip-tools, --upgrade mode).
- renovate.json: the pip-compile manager replaces pip_requirements for the lock, plus a weekly,
  never automerged lock-file maintenance PR for transitive packages. Not yet dry-run on Renovate.
- check_bot_pr_diff.py accepts `rev: <sha>  # frozen: <tag>` and lock entries, hashes and plain
  comments, but not a changed pip-compile header command.
- ci image 0.2.18 -> 0.2.19 (image inputs changed).
2026-11-14 16:52:38 +00:00
Defame1297andClaude Sonnet 5.5 cd5c2353fc fix(images): prune the unused Go binaries from the ci image
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 48s
Molecule / molecule (pull_request) Successful in 2s
The push of ci 0.2.16 failed with 413 Payload Too Large from Cloudflare: its /opt/pre-commit layer, 75.5 MB compressed in 0.2.15, grew past the 100 MB limit with the ruff and shellcheck-py environments. About half of that layer was binaries no hook runs: pre-commit installs every main package of a Go hook repository, which leaves gitleaks' config and actionlint's check-checks and generate-* next to the gitleaks and actionlint binaries the hooks call.

Delete everything in each golangenv-*/bin except those two, before the smoke test that runs all six hooks, so a wrongly deleted binary fails the image build. Replicated locally with this repository's hook config: the pre-commit home goes from 89.9 MB to 57.3 MB compressed (gzip -6, about 9% under what the registry stores) and all six hooks still pass. The build now also prints the compressed size of each directory a later COPY turns into a layer, the figure the limit applies to.

ci 0.2.16 was never published (the push failed), so it is skipped: 0.2.16 -> 0.2.17, which the bump check requires because the matrix on main already says 0.2.16.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 15:14:53 +00:00
Defame1297andClaude Sonnet 5.5 f563baf237 ci(images): smoke-test the ruff and shellcheck hooks in the ci image
The image build ran only yamllint, gitleaks and actionlint on a staged sample, and a hook with
no matching file is skipped, so a missing ruff or shellcheck-py environment would not have
failed the build. Stage a .py and a .sh sample and run ruff-check, ruff-format and
shellcheck too (#112). Part of the unpublished ci 0.2.16, so no further version bump.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:59:45 +00:00
Defame1297andClaude Sonnet 5.5 8fb7148129 ci(images): bake the pinned collections into the ci image
Add requirements.yml, a Kamino-owned file with exact pins for the collections the
roles call (community.general 14.0.0, ansible.posix 2.2.2), and install it into
/opt/collections of the ci image (#118). Lint sets ANSIBLE_COLLECTIONS_PATH to it,
so ansible-lint --offline resolves the modules and mock_modules is dropped. The file
joins /opt/ci-pins.sha256: a pull request that changes a pin installs the collections
for its own run, as it does for requirements-dev.txt. mock_roles stays (step 5 of #118).

The install scopes ANSIBLE_COLLECTIONS_PATH to its target: ansible-galaxy skips a
collection it finds elsewhere on the path as already installed, so the image would
otherwise miss any that the build host happens to have.

Image input: ci 0.2.15 -> 0.2.16 (one bump for this change and the ruff and
shellcheck hooks of #112, which are also baked into the image). requirements.yml
is added to the image.yml push paths so that a pin change rebuilds the image.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 13:50:57 +00:00
Defame1297andClaude Sonnet 5.5 0a3ff387d7 ci(images): preinstall gnupg in molecule-ubuntu2404
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 21s
Molecule / molecule (pull_request) Successful in 1s
The docker scenario installs gnupg in prepare to sign its stand-in APT
repository, which costs an apt update and an install in every run (about 10 s of
its 12 s prepare); system_baseline installs it among its essential packages. It
is now part of the image, version 0.1.6.

Image input only: the consumers' pins, the docker prepare task and the
image-smoke contract move in the pin follow-up pull request, once the build on
main has printed the new digest.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
2026-11-14 12:40:40 +00:00
renovate-bot e5c5f1377d chore(deps): update dependency uv to v0.13.7
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 13s
Molecule / molecule (pull_request) Successful in 57s
2026-11-06 03:17:46 +00:00
Defame1297 09813a866c Merge branch 'main' into renovate/ubuntu-26.04
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 12s
Molecule / molecule (pull_request) Successful in 1m1s
2026-10-30 15:14:17 +00:00
renovate-bot 5019343242 chore(deps): update ubuntu:26.04 docker digest to 6a06111
renovate/stability-days Updates have met minimum release age requirement
Molecule / molecule (pull_request) Canceled after 0s
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 13s
2026-10-30 15:02:25 +00:00
renovate-bot 4c7f461850 chore(deps): update ubuntu:24.04 docker digest to fe81560
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 15s
Molecule / molecule (pull_request) Successful in 1m1s
2026-10-30 15:02:22 +00:00
renovate-bot 6229342b93 chore(deps): update dependency uv to v0.13.6
renovate/stability-days Updates have not met minimum release age requirement
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 13s
Molecule / molecule (pull_request) Successful in 1m2s
2026-10-27 10:33:17 +00:00
Defame1297 5adda40e43 Merge branch 'main' into renovate/ubuntu-26.04
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 14s
Molecule / molecule (pull_request) Successful in 1m4s
2026-10-27 10:20:18 +00:00
renovate-bot fe003fbbea chore(deps): update ubuntu:26.04 docker digest to 19fcd1b
renovate/stability-days Updates have met minimum release age requirement
Molecule / molecule (pull_request) Canceled after 0s
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 14s
2026-10-27 10:12:35 +00:00
renovate-bot 18135969d4 chore(deps): update ubuntu:24.04 docker digest to 24737ce
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 15s
Molecule / molecule (pull_request) Successful in 1m8s
2026-10-27 10:12:31 +00:00
Defame1297andClaude Sonnet 5.5 6c85d61827 fix(image): no single quote in a label (kaniko rejects it) and a check for it
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 13s
Run 2556: the ci image failed at its LABEL step (unexpected end of statement while looking for
matching single-quote) on the apostrophe in 'the distribution's python3'. Docker accepts it,
kaniko's own LABEL parser does not, and the molecule images built only because their labels
have none. The label text is reworded and check_image_versions.py pins now fails on a single
quote in any label. ci 0.2.6 was never pushed; the gate wants a higher version than main's,
so the fix is 0.2.7.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 19:44:12 +00:00
Defame1297andClaude Sonnet 5.5 aa1848a995 fix(image): act on the review of the image metadata
Build / build (pull_request) Failing after 10s
Lint / lint (pull_request) Successful in 13s
Molecule / molecule (pull_request) Successful in 58s
Label parser: split the LABEL instruction like a shell (a value may hold NAME=value text), read
the last stage only, require base.name and tie it to the FROM tag, require the documentation
link to be <source>/src/branch/main/docs/images/<name>.md and the page to be non-empty.
Docs: do not name a Python version the base may not ship, show the lint.yml pin check as it
is, say which workflow paths start a build, name the system-language local hooks, add the
apparmor option and the registry path to the molecule usage, and soften unverified Renovate
and host-release statements.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 19:32:03 +00:00
Defame1297andClaude Sonnet 5.5 c3c665e799 feat(image): describe every image: labels, a readme page and build metadata
The registry page shows the description as plain text, every label, and links to source,
documentation and licence; it renders no readme. Each Dockerfile now carries one label
block (title, description, source, url, documentation, licenses, authors, base.name and
net.rkdr.mortis.purpose/contents/usage), the build adds version, revision and created, and
docs/images/<name>.md says what the image is for, what it contains and how to use it.
check_image_versions.py pins fails when a label or that page is missing. The labels are
image inputs, so the three images get their PATCH bump.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 19:27:15 +00:00
Defame1297andClaude Sonnet 5.5 28a96e2ee5 docs(image): correct the ci Dockerfile base-image comment and bump ci to 0.2.5
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 12s
The comment still named ubuntu:24.04 above a FROM ubuntu:26.04. A Dockerfile edit is an
image input, so ci gets its PATCH bump (scripts/bump_image_versions.py) and a rebuild.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 19:08:32 +00:00
Defame1297andClaude Sonnet 5.5 43b8acbe87 fix(image): drop the ci Dockerfile comment edit and the empty f-strings
A comment edit in images/ci/Dockerfile is an image input, so the bump check wants a
version bump and a rebuild for nothing; the stale base comment waits for the next real ci
change. Two test strings had no interpolation (pylint f-string-without-interpolation).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 19:06:53 +00:00
Defame1297andClaude Sonnet 5.5 bc5ae09de7 fix(image): make the job container check fail closed
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Failing after 10s
Lint / lint (pull_request) Failing after 6s
Review findings: a non-ubuntu or variable FROM went unchecked, the registry-prefixed
ubuntu forms were missed, the container line could be satisfied by a lookalike in a run
block, and a quoted job_image passed the check but not the bot-diff guard or Renovate.
Also: stale ci Dockerfile base comment, the pins error now says what to edit, and the
docs state that a job_image-only bump rebuilds nothing.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 19:03:19 +00:00
Defame1297andClaude Sonnet 5.5 69f29e2c28 feat(image): add molecule-ubuntu2604, the target release next to 24.04
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 11s
The hosts run Ubuntu 24.04 today and 26.04 is where they are going, so the roles are
tested on both. This adds only the image (Dockerfile, build matrix entry 0.1.0); the
scenario and the consumer pin follow in a second pull request, because the pin needs the
digest of the first build.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 18:49:02 +00:00
Defame1297andClaude Sonnet 5.5 bfef5caf4f fix(image): keep molecule-ubuntu2404 on Ubuntu 24.04 and stop Renovate bumping its release
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 12s
The ubuntu 26.04 base bump (#33) made the image 26.04 under a 24.04 name, and
image-smoke correctly failed on main after the pin followed (run 2525). Restore the
24.04 digest, bump the image to 0.1.2 and disable major ubuntu updates for this
Dockerfile only; the ci image keeps following the newest release.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 18:42:10 +00:00
renovate-bot b6b3cfd696 chore(deps): update ubuntu docker tag to v26
Molecule / molecule (pull_request) Skipped
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 15s
2026-10-26 18:20:19 +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
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
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
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
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
Defame1297andClaude Sonnet 5.5 c2465c7005 fix(image): install the molecule image packages in one layer
One layer is about 30 MB compressed, far below the 100 MB proxy limit, and
saves three kaniko snapshots and three apt index downloads. Correct the size
estimate and the python3-systemd comment, note the build-time SSH host keys,
and drop the internal image name.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-24 21:10:20 +00:00
Defame1297andClaude Sonnet 5.5 df5c1d7981 ci: add the molecule base image and its kaniko build workflow
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-24 21:10:20 +00:00