From ded593dc529916f1bf23f2df38f975db1c1e69e8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 25 Sep 2026 10:05:08 +0200 Subject: test-build: add --pull to refresh a stale local image require_image pulled only when the image was missing, so once the image-builder rebuilt a registry tag the local copy went stale with no warning. --pull runs `docker pull` first, which compares digests itself and costs one manifest request when nothing changed. If the registry is unreachable it falls back to the local copy with a warning, and still fails when there is none. The README documents a daily cron pull for machines that run test-build, and the skill notes that local images are not refreshed automatically. Co-Authored-By: Claude Opus 5.5 --- skills/test-build-slackbuild/SKILL.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'skills/test-build-slackbuild/SKILL.md') diff --git a/skills/test-build-slackbuild/SKILL.md b/skills/test-build-slackbuild/SKILL.md index e8b553c..dc23896 100644 --- a/skills/test-build-slackbuild/SKILL.md +++ b/skills/test-build-slackbuild/SKILL.md @@ -73,6 +73,7 @@ The local deps must themselves be valid, buildable SlackBuilds. Without the flag | `--no-cache` | Rebuild all deps this run. | | `--keep` | Copy the built target `.txz` to `kept/` so it can be installed on the host. | | `--local-deps` | Also resolve deps from the target's own repo (grandparent dir), for deps that are siblings in the same repo and not on SBo. | +| `--pull` | Refresh the image from the registry before building (no-op if already current; falls back to the local copy if the registry is down). Use when the image-builder rebuilt the tag since the last pull. | | `--no-color` | Disable ANSI color (auto-off when not a TTY). | | `-V`, `--version` | Print version. | @@ -91,7 +92,7 @@ Lint runs in-container on the target only. Findings are **fail-soft**: `LINT-FIN ## Setup that must exist - `~/.config/sbo-testbuild/config` (from `test-build-config.example`): trees, image tags, `LOG_ROOT`, `PKG_CACHE`. Missing config = hard exit with a copy-the-example message. -- Docker reachable, and the `sbo-testbuild:{current,15.0}` images built by the image-builder (pulled from the LAN registry if not local). A pure `--dry-run` skips the image check. +- Docker reachable, and the `sbo-testbuild:{current,15.0}` images built by the image-builder (pulled from the LAN registry if not local). A local copy is **not** refreshed automatically: it goes stale when the registry tag is rebuilt, unless a daily cron pull is set up (see README) or you pass `--pull`. A pure `--dry-run` skips the image check. - `~/.config/sbo-testbuild/overrides` only if you need override rules. ## Do not -- cgit v1.2.3