Commit Graph
3 Commits
Author SHA1 Message Date
Defame1297 c3a7cef195 fix(scripts): give a repository not pushed yet no tags
The registry answers tags/list for a repository that does not exist yet
with 404 NAME_UNKNOWN (OCI distribution spec), which failed the Images
version step for the first build of a new image such as
molecule-controller. A 404 on the first tags/list page now reads as no
tags, so the image gets <base>.0; a 404 on a manifest stays an error.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:34:01 +00:00
Defame1297 30316c5a7d fix(images): name the registry client and report a refused request
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 59s
Molecule / molecule (pull_request) Successful in 2s
The first Images run after #165 failed: the runner's first registry request
from next_image_version.py got HTTP 403, as a bare traceback, while the same
request works from elsewhere and curl reaches the host in the same job. The
suspected cause, a bot filter refusing Python's default User-Agent, is not
confirmed.

Every registry request, the token request included, now sends its own
User-Agent. Every HTTP error becomes a RegistryError that names the status and
the visible text of the response body, and main prints it as one ::error::
line and exits 1. The client logs in at most once, so an empty token cannot
loop. The script takes the registry URL, so the tests drive it against a local
fake registry.

Refs #165

Assisted-by: Claude Code:claude-opus-5-5
2026-11-23 22:13:05 +00:00
Defame1297 b12c990b6a ci(images): assign image versions in CI and open the pin PR right after a push
Build / build (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
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
2026-11-23 21:15:16 +00:00