ci(images): assign image versions in CI and open the pin PR right after a push
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
This commit is contained in:
1 parent
8da65bd08e
commit
b12c990b6a
23 files changed
+484
-1064
No files matched your search
@@ -20,8 +20,8 @@ existing content is brought in line by separate issues.
|
||||
*Reason:* every script here is code someone has to review and maintain.
|
||||
*Held by:* review.
|
||||
2. **One job per file, readable in one sitting.**
|
||||
*Counter-example:* `scripts/check_image_versions.py` holds two checks, `pins` and `bump`, in over 800
|
||||
lines.
|
||||
*Counter-example:* `scripts/check_image_versions.py` holds a YAML reader and four checks (pins, job
|
||||
containers, labels, the Python pin) in over 700 lines.
|
||||
*Does not forbid:* helpers in the file that serve its one job, or a long file that is still one job;
|
||||
do not split a file only for its length.
|
||||
*Reason:* a reviewer has to hold the whole file in mind to judge a change to it.
|
||||
|
||||
@@ -89,7 +89,7 @@ trailers, are in [ai-assistance.md](ai-assistance.md).
|
||||
|
||||
The rules for these live next to the files they govern: [scripts/AGENTS.md](../../scripts/AGENTS.md)
|
||||
(scripts, their tests, tool pins and their lock, hook SHA pins),
|
||||
[images/AGENTS.md](../../images/AGENTS.md) (image inputs, version bumps, pin pull requests, the layer
|
||||
[images/AGENTS.md](../../images/AGENTS.md) (image inputs, versions, pin pull requests, the layer
|
||||
limit), [.gitea/workflows/AGENTS.md](../../.gitea/workflows/AGENTS.md) (workflows, secrets, the
|
||||
bot-diff check `scripts/check_bot_pr_diff.py`) and [docs/adr/AGENTS.md](../adr/AGENTS.md) (decision
|
||||
records).
|
||||
|
||||
Reference in new issue
Block a user