Commit Graph
21 Commits
Author SHA1 Message Date
Defame1297andClaude Sonnet 5.5 b0e7932a76 ci(renovate): drop the report shape dump and record what the report cannot tell
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 12s
Molecule / molecule (pull_request) Successful in 59s
Run 2597 printed it: a branch entry holds branchName, prNo, prTitle, result and upgrades, with no
field for a failed post-upgrade task. The protection against an unbumped pull request stays the
red renovate/artifacts status and the bump check in Lint.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 20:22:20 +00:00
Defame1297andClaude Sonnet 5.5 a6583db5d5 ci: run Molecule on every same-repo pull request and print the Renovate report shape
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 13s
Molecule / molecule (pull_request) Successful in 1m2s
Molecule skipped bot branches and used a path filter, so a Renovate pin pull request for the
molecule image merged without a single scenario having run on it (#35, then #44): the first test
of a new image was main. Now it runs on every same-repo pull request, bot branches included, and
with no path filter it can be a required check. A bot pull request stays limited to pin and
version lines by the bot-diff gate, so it adds no capability a pusher does not already have.

The Renovate job prints the shape of its JSON report (top-level keys, per-branch fields) once, so
a check that fails the job on a failed post-upgrade task can be written against a real field.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 20:09:55 +00:00
Defame1297andClaude Sonnet 5.5 f67ce1c391 chore(renovate): let ansible-core minor bumps automerge
The shared sanity ignore list covers the known findings of a new core, and the Build check
(ansible-test sanity) is the gate: a minor that shows new findings stays red and is not merged.
Majors stay manual through the general rule. Also: the image.yml rule description names the
per-entry job_image lines.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 20:03:53 +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 b27513f0bd feat(molecule): test the 26.04 image and move the 24.04 pin to 0.1.2
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 12s
Molecule / molecule (pull_request) Successful in 1m2s
Adds the image-smoke-2604 scenario (asserts Ubuntu 26.04) and the MOLECULE_IMAGE_2604 pin
(molecule-ubuntu2604 0.1.0, the digest its first build printed, run 2534). Moves
MOLECULE_IMAGE to molecule-ubuntu2404 0.1.2 (digest printed by run 2541): the 0.1.1 image
is Ubuntu 26.04, so image-smoke has failed on main since the base bump. The Renovate
pattern for the multi-line pin now also reads MOLECULE_IMAGE_<release>.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 19:16:51 +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 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 4240b0c6b6 feat(renovate): follow our own image pins and automerge them
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 15s
The mortis/* pin rule was disabled until Phase 4. Enabled with automerge: the
pin pull request's own Lint and Build run in the new image before the merge,
the bot-diff gate allows only the pin lines, and check_image_versions pins
rejects a pin ahead of the matrix. Majors stay manual.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 17:42:47 +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
Defame1297 22540a2e84 Merge branch 'main' into fix/bump-without-pyyaml
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 12s
2026-10-26 17:02:15 +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 1312ff67f8 docs(renovate): the bot token also needs read:organization
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 12s
Dry run 2450 got past authentication and failed at GET /orgs/Mortis with
403: the token had write:repository, write:issue and read:user only.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 14:00:08 +00:00
Defame1297andClaude Sonnet 5.5 4628989be3 fix(renovate): authenticate as a Kamino-only bot user, not the job token
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 12s
Dry run 2445 showed Renovate cannot run on the job token: its pull request lookups filter by its own username, which is the virtual user gitea-actions, and Gitea answers 400 user does not exist. The workflow now reads the repository secret RENOVATE_BOT_TOKEN (token of a bot user with write access to this repository only); the job token is read-only. The empty-secret case fails with a clear message. Docs updated.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 08:51:22 +00:00
Defame1297andClaude Sonnet 5.5 7e32ad5ac6 fix(renovate): authenticate git with a bearer header and fail the job on repository errors
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 12s
Renovate puts the job token in the clone URL, which git drops when the
server redirects (dry run 2439: could not read Username). Write a global
git http.extraheader like lint.yml does. Renovate exits 0 on a repository
failure: set exitCodeForErrors and check the JSON report for a missing
file or ERROR/FATAL problems.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 08:40:02 +00:00
Defame1297andClaude Sonnet 5.5 b92adb931c fix(renovate): fail-safe dry run, catch-all post-upgrade rule, merge open items
Molecule / molecule (pull_request) Skipped
Build / build (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 15s
- renovate.yml: a workflow_dispatch is a dry run unless the input is exactly
  "false" (an empty input no longer goes live); drop RENOVATE_BINARY_SOURCE
  install, the -full image ships its tools.
- renovate.json: the postUpgradeTasks rule matches every package, because with
  executionMode branch only the first upgrade of a branch counts; the script is
  a no-op when no image input changed.
- bump_image_versions.py: docstring describes the real wiring.
- CLAUDE.md, CONTRIBUTING.md: one open item for the first live run, runner slot note.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 08:19:02 +00:00
Defame1297andClaude Sonnet 5.5 7730440759 ci(renovate): run Renovate from a cron workflow on the kamino-runner
Add .gitea/workflows/renovate.yml (daily 03:17 UTC and workflow_dispatch with a
dry_run choice), using the job token and a digest-pinned renovate/renovate
container, so no Kamino code runs in the production cluster. renovate.json runs
scripts/bump_image_versions.py origin/main as a postUpgradeTasks command for the
image inputs, and the workflow's own container pin is excluded from bot bumps.
Document the dry run, the unverified points and the open decision on CI
triggering for job-token pull requests.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 07:37:25 +00:00
Defame1297andClaude Sonnet 5.5 b7b14b7277 docs(renovate): correct the kaniko and image-input claims
Build / build (pull_request) Failing after 12s
Lint / lint (pull_request) Successful in 15s
Molecule / molecule (pull_request) Successful in 40s
Remove the image-input packageRule that set no option. Add a dockerfile rule that
states, and pins, that base-image tag and digest bumps may automerge (Kamino is
the untrusted side, the pin PR's CI exercises the image); the ubuntu job
container stays at automerge false. Say kaniko is pinned by layer digests that no
manager reads and is updated by hand. List what is not enabled or verified
(GITHUB_COM_TOKEN for the pre-commit manager, main's required checks,
github.head_ref) and that a hand edit on a renovate/ branch stops Renovate's
rebases. renovate-config-validator --strict (renovate 44.161.0) passes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-26 06:41:51 +00:00
Defame1297andClaude Sonnet 5.5 c03e492f81 docs: describe the Renovate automation, the two-PR image loop and the bot-diff gate
Build / build (pull_request) Failing after 11s
Lint / lint (pull_request) Successful in 14s
Molecule / molecule (pull_request) Successful in 36s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 21:20:17 +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
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