Commit Graph
30 Commits
Author SHA1 Message Date
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
ClaudeandClaude Sonnet 5.5 8719271d05 fix(image): read the pushed digest from the kaniko log, not from /kaniko
The first run on main built and pushed the image, then failed on
`read -r digest < /kaniko/digest`: the executor replaces the job
container's filesystem with the built image and removes /kaniko, so the
digest file and the credential-method file are gone by then.

Take the digest from the "Pushed <image>@sha256:<digest>" log line into a
shell variable, validate its shape, and drop the credential-method echo
(the prepare step already logs the credential in use).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 10:39:09 +00:00
Defame1297 dcfcbd105e Merge pull request 'feat: scaffold the mortis.kamino Collection (no roles yet)' (#1) from feat/scaffold into main
Build / build (push) Successful in 51s
Molecule image / image (push) Failing after 8s
Lint / lint (push) Successful in 1m25s
Reviewed-on: #1
Reviewed-by: Defame1297 <[email protected]>
2026-10-25 07:34:15 +00:00
Defame1297andClaude Sonnet 5.5 7131d9da80 chore: initial commit
Empty root commit so the repository has a base branch for the first pull request.

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 3869718450 docs: correct the fork pull request policy and add maintainer setup
Build / build (pull_request) Successful in 50s
Lint / lint (pull_request) Successful in 1m26s
State the real Gitea approval rule for fork pull requests, require a
REUSE.toml annotation for third-party material, describe the release
changelog files, and list the repository settings the workflows cannot
enforce (protected v* tags, protected main, the package push credential).
Drop the references to the private environment repository.

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 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 0bc8d19775 fix(ci): harden the build and image workflows after review
Pass ref and repository values to run steps as environment instead of
interpolating them into the script (a tag name may contain shell
metacharacters). In the image workflow: refuse tags that are not
vMAJOR.MINOR.PATCH[-prerelease] before anything runs, purge exactly the
packages the prepare step added instead of autoremove and fail on any
package or /etc file difference from the base image, send the registry
write probe with an empty body, and remove the registry credential after
the push also when the build fails.

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 fe6d19dde5 chore: ignore the galaxy-importer result file
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
Defame1297andClaude Sonnet 5.5 a4c1931b4f ci: add lint and build workflows on the kamino-docker runner
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 904d833a6f ci: add pre-commit, lint and changelog configuration
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 a317ec3e93 docs: add REUSE licensing files for GPL-3.0-or-later
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 c794d3133a feat: add the empty mortis.kamino collection skeleton
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