ci: skip published image versions and share one sanity ignore list #28

Merged
Defame1297 merged 1 commits from feat/image-skip-published-shared-sanity-ignore into main 2026-10-26 17:30:32 +00:00
Owner

What

  1. image.yml: when the version tag of an image is already in the registry, the job ends without building. A new version is pushed as <version> and latest. The sha-* tag is gone.
  2. build.yml + tests/sanity/ignore-common.txt (renamed from ignore-2.19.txt, same 4 lines): the Build job copies the common list to ignore-<core MAJOR.MINOR>.txt in its throwaway worktree before ansible-test sanity; a committed ignore-<MAJOR.MINOR>.txt is appended for findings of one version only.
  3. CLAUDE.md and the two renovate.json rule descriptions no longer say a new core minor needs a new ignore file.

Why

  1. After the merge of Renovate PR #26 the molecule job rebuilt under its unchanged version 0.1.0 and moved sha-*/latest, giving one version tag a second digest. The Lint bump check already forces a new version whenever an image input changes, so a rebuild under a published version only ever happens when no input changed.
  2. ansible-test has no wildcard for ignore-<version>.txt. Renovate PR #25 (ansible-core 2.21.5) fails only no-smart-quotes on the license files, which the 2.19 list already skips. Renovate cannot add a file to its own branch (a hand commit stops its rebases), and closing the PR would stop it being recreated.

Behaviour to know

  • A published version is neither moved nor rebuilt: any real image change needs a version bump (Lint already enforces it).
  • The prepare step still installs the tools before it looks the tag up (that order is deliberate: pristine base filesystem), so a skipped job costs about a minute, not a build.
  • latest moves only when a new version is published.
  • ansible-core minor/major bumps stay manual by policy; a new core can still bring genuinely new sanity findings, which still fail Build.

Verified

  • 123 script tests pass; the commit hooks (actionlint with the repo config, yamllint, REUSE etc.) pass.
  • The ignore-file copy was run by hand in a scratch directory (4 lines in, 4 lines out).

Not verified

  • The Build step on a real runner: this PR's own Build run exercises it on the current core (2.19). PR #25 rebased on this is the 2.21 test.
  • The skip path of image.yml: it runs on the push to main after the merge (both images' versions are already published, so both jobs should end with "already published; nothing to build").

🤖 Generated with Claude Code

## What 1. `image.yml`: when the version tag of an image is already in the registry, the job ends without building. A new version is pushed as `<version>` and `latest`. The `sha-*` tag is gone. 2. `build.yml` + `tests/sanity/ignore-common.txt` (renamed from `ignore-2.19.txt`, same 4 lines): the Build job copies the common list to `ignore-<core MAJOR.MINOR>.txt` in its throwaway worktree before `ansible-test sanity`; a committed `ignore-<MAJOR.MINOR>.txt` is appended for findings of one version only. 3. `CLAUDE.md` and the two `renovate.json` rule descriptions no longer say a new core minor needs a new ignore file. ## Why 1. After the merge of Renovate PR #26 the molecule job rebuilt under its unchanged version `0.1.0` and moved `sha-*`/`latest`, giving one version tag a second digest. The Lint `bump` check already forces a new version whenever an image input changes, so a rebuild under a published version only ever happens when no input changed. 2. `ansible-test` has no wildcard for `ignore-<version>.txt`. Renovate PR #25 (ansible-core 2.21.5) fails only `no-smart-quotes` on the license files, which the 2.19 list already skips. Renovate cannot add a file to its own branch (a hand commit stops its rebases), and closing the PR would stop it being recreated. ## Behaviour to know - A published version is neither moved nor rebuilt: any real image change needs a version bump (Lint already enforces it). - The prepare step still installs the tools before it looks the tag up (that order is deliberate: pristine base filesystem), so a skipped job costs about a minute, not a build. - `latest` moves only when a new version is published. - ansible-core minor/major bumps stay manual by policy; a new core can still bring genuinely new sanity findings, which still fail Build. ## Verified - 123 script tests pass; the commit hooks (actionlint with the repo config, yamllint, REUSE etc.) pass. - The ignore-file copy was run by hand in a scratch directory (4 lines in, 4 lines out). ## Not verified - The Build step on a real runner: this PR's own Build run exercises it on the current core (2.19). PR #25 rebased on this is the 2.21 test. - The skip path of `image.yml`: it runs on the push to `main` after the merge (both images' versions are already published, so both jobs should end with "already published; nothing to build"). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 1 commit 2026-10-26 17:29:26 +00:00
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
fd4c04d095
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
Defame1297 merged commit d36c4a326e into main 2026-10-26 17:30:32 +00:00
Defame1297 deleted branch feat/image-skip-published-shared-sanity-ignore 2026-10-26 17:30:32 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#28