Commit Graph
26 Commits
Author SHA1 Message Date
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 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 c3d0d7df65 fix(image): give every image its own job container release
kaniko runs inside the job container and unpacks the image it builds over it, so the
job container must be the same Ubuntu release as the image's FROM lines. A single
ubuntu:26.04 job container broke the molecule-ubuntu2404 build (run 2529: GLIBC_2.42
not found, then the credential cleanup step died too).

Each matrix entry now names job_image, check_image_versions.py pins fails when it
differs from the Dockerfile's release, the bot-diff guard allows tag and digest edits
of job_image lines, Renovate tracks them with a regex manager (never automerged), and
major ubuntu updates are disabled everywhere: a new release is a deliberate edit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 18:58:21 +00:00
Defame1297andClaude Sonnet 5.5 fd4c04d095 ci: skip published image versions and share one sanity ignore list
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 12s
Lint / lint (pull_request) Successful in 13s
image.yml: when the version tag is already in the registry the job now ends
without building, instead of rebuilding under sha-* and latest. A new version
is pushed as <version> and latest; the sha-* tag is gone, so one digest
belongs to exactly one version.

build.yml: ansible-test reads tests/sanity/ignore-<core MAJOR.MINOR>.txt, so
every core bump needed a new file. The committed list is now
ignore-common.txt, copied to the installed core's file name inside the
throwaway worktree (a committed ignore-<MAJOR.MINOR>.txt is appended).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 17:29:08 +00:00
Defame1297andClaude Sonnet 5.5 eaa38cb03a fix(scripts): read the image matrix without PyYAML
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 12s
Dry run 2453 ran the bump post-upgrade task in the Renovate image and it
failed with ModuleNotFoundError: yaml, so every bump PR would have opened
without the version bump. matrix_of() is now a small block-style reader that
fails closed on anything else; a test compares it with PyYAML on the real
image.yml and another forbids importing yaml in the scripts.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 16:57:08 +00:00
Defame1297andClaude Sonnet 5.5 d6837217c0 fix(scripts): name the unused tuple members instead of using _
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 14s
Molecule / molecule (pull_request) Successful in 32s
ansible-test sanity's pylint disallows _ as a name (18 findings in the bot-diff gate, the bump script and their tests, build run 2423).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 06:54:55 +00:00
Defame1297andClaude Sonnet 5.5 8e9a8c5df0 fix(ci): close the bypasses of the bot pull request diff guard
A change git treats as binary (NUL byte, UTF-16, a -diff attribute) or one with
no removed or no added line now fails, and the line diff runs with --text
--no-ext-diff --no-textconv. Tags are limited to [A-Za-z0-9._-]; the digest must
be present on both sides of an ubuntu job container line and of a FROM line;
matrix version lines must stay in place and rise; paths are taken literally
(--literal-pathspecs); an empty head ref on a pull_request fails closed
(EVENT_NAME). The lint workflow runs the guard from origin/main (the whole
scripts/ directory, since it imports check_image_versions) and falls back to
the pull request's copy with a notice while main has none.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 06:41:20 +00:00
Defame1297andClaude Sonnet 5.5 a57714342b fix(scripts): attribute bumped versions to their own matrix entry
bump_image_versions.py now locates each matrix.include entry and rewrites the
version: line of the entry whose name: it is, whatever the key order; an entry
it cannot parse unambiguously is a one-line error, and the rewrite is verified
against the YAML before it is written. Files are read and written as UTF-8 with
newline="" so CRLF survives. A shallow clone without a merge-base names the fix
(git fetch --unshallow). check_image_versions.py decodes git's stderr, so errors
no longer print a bytes repr. Untracked files that git ignores were already
skipped; a test now pins that.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 06:39:11 +00:00
Defame1297andClaude Sonnet 5.5 f2e1139562 ci(lint): limit renovate pull requests to pin and version lines
scripts/check_bot_pr_diff.py fails a pull request from a renovate/ branch
that touches anything but version, tag, digest and image pin lines, so the
automerge of bot pull requests cannot alter workflow logic or reach the org
secrets. Wired as a pull-request-only step of the lint workflow.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 21:08:21 +00:00
Defame1297andClaude Sonnet 5.5 359e016307 feat(scripts): deny the production image set in the Collection's workflows
The pins check now fails when any file under .gitea/workflows mentions
git.rkdr.net/defame1297/, so the environment repo's production images can
never appear in the Collection's CI.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 21:08:14 +00:00
Defame1297andClaude Sonnet 5.5 ec15abf400 feat(scripts): add bump_image_versions.py for the image version bump
Factor the changed-path listing and the per-image input detection out of
check_image_versions.py (changed_paths, changed_images) and reuse them in a
new script that bumps the PATCH version of every image whose inputs changed.
It is meant to run later as a Renovate postUpgradeTasks command.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 21:06:33 +00:00
Defame1297 3852bce32a Merge branch 'main' into fix/collection-tarball-contents
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 10s
Molecule / molecule (pull_request) Successful in 31s
2026-10-25 20:39:06 +00:00
Defame1297andClaude Sonnet 5.5 ad2e4aa959 merge: bring main into fix/collection-tarball-contents and keep one script-test step
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 11s
Molecule / molecule (pull_request) Successful in 37s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 20:23:29 +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
Defame1297andClaude Sonnet 5.5 cab2187c89 fix(ci): tighten the Collection archive check and make its guards testable
Build / build (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 8s
Molecule / molecule (pull_request) Successful in 29s
The forbidden names widen to anything containing "vault", SSH keys, .envrc and
.env* files. Names that Windows or macOS extraction would read differently are
rejected (trailing space or dot, reserved device names, "::", 8.3 aliases of
.git, non-ASCII spaces, surrogate/private-use/unassigned characters, components
over 255 bytes), and the .git test compares after NFKC and case folding.
Duplicates are compared case-insensitively, a name that is both a file and a
directory is rejected, and only one slash is stripped. A unit test builds a real
tarball with ansible-galaxy, another asserts the directories build.yml prunes are
in galaxy.yml build_ignore, lint.yml runs tests/scripts, and the Build workflow
fails unless exactly one tarball matches. The docstring states that file
symlinks are invisible to the archive check.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 19:57:40 +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 b5751e14d6 fix(build): harden the Collection archive check and refuse source symlinks
Build / build (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 6s
Molecule / molecule (pull_request) Successful in 30s
check_tarball.py now compares path components case-insensitively (.GIT,
Molecule), rejects backslashes and control or zero-width characters,
duplicate members, an empty archive and a missing REQUIRED file, and
reports an unreadable archive as one line. Drop the shebang and the
executable bit and pass check= to subprocess.run so ansible-test sanity
passes.

ansible-galaxy dereferences symlinks, which the archive check cannot see,
so the Build workflow fails when the source tree holds a symlink.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 19:20:48 +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 580df0b892 fix(build): reject links, special files and unsafe paths in the Collection archive
Build / build (pull_request) Failing after 8s
Lint / lint (pull_request) Successful in 5s
Molecule / molecule (pull_request) Successful in 35s
check_tarball.py now iterates the tar members instead of their names. Only regular
files and directories are allowed, so a symlink or hardlink cannot smuggle a
file in under an allowed directory. Absolute paths and paths with an empty, '.',
'..' or '.git' component are rejected, so roles/../.venv/x no longer passes the
top-level allow list. Tests build crafted tarballs and run the script on them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 18:54:11 +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 e3acab9ca2 fix(build): keep repository tooling and molecule scenarios out of the Collection archive
Build / build (pull_request) Failing after 9s
Lint / lint (pull_request) Successful in 6s
Molecule / molecule (pull_request) Successful in 28s
Extend galaxy.yml build_ignore (extensions, role molecule scenarios, CLAUDE.md, tool
directories, tests/scripts) and add scripts/check_tarball.py, an allow-list check run
by the Build workflow after the Collection build and before galaxy-importer.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 18:23:42 +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 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