Repository navigation
feat(check): bed-scoped fixture image tags + debootstrap-builder checks + module-key validation fix - #110
Conversation
…ks + module-key validation fix The check/bed correctness batch — three pre-existing bed/validation-correctness defects landed as one atomic superproject cutover (the sdk image_tag wire field and the plugins agents-SKILL correction ride the paired producer releases). #75 — bed-scoped fixture image tags (the shared-tag concurrency collision class). Two beds building the SAME fixture image name from DIFFERENT trees raced the store-global podman tag namespace (check-sidecar-pod + check-k8s-deploy both build check-k8s-deploy-app; box build tags a clock-CalVer, the deploy resolves the short name to newest-local-CalVer → last-write-wins, invisible to both). Structural fix, the tag analogue of #33 domain=deploy-name: a bed run tags every image it builds with a per-run <bed-root>-<runCalver> tag (bedRunImageTag, threaded via spec.CheckBedReply.ImageTag) and passes it as --tag on every box build AND deploy step, so concurrent same-fixture beds are collision-free by construction. The plugin threads it (withRunTag on build/config/start/deploy-add); bringUpMembers threads it to members (withMemberTag); resolveNodeOverlays propagates an explicit --tag onto node.Version; k8s_deploy_preresolve honors a pinned node.Version (exact <name>:<ver> ref + presence check) instead of the store-global lookup — mirroring build_overlay's tag!="" branch. Retention-safe: the tag is on the same image name → same ai.opencharly.box label group → pruned by keep_images (no leak). #66 — debootstrap-builder baked checks (candy/debootstrap-builder). The qemu-img version check used a scalar stdout (equals) against multi-line `qemu-img --version` output → never matched; changed to a contains matcher. The grub-install exists=true check was CORRECT (grub-install is essential to the builder) — the real bug was a missing package: /usr/sbin/grub-install is provided by grub2-common, not a Depends of the listed grub packages, and the deb build uses --no-install-recommends → it was never pulled. Fix: add grub2-common; keep the assertion. #71 — validatePkgConfig module/modules Raw-key mismatch (candy/plugin-box, on the merged #60 validate engine). The rule checked Raw["modules"] (plural) but the authored key is singular module: (Module yaml:"module"; derivePackageSectionsFromCalamares emits Raw["module"]) → it never fired on real config. Fix: align to Raw["module"]; sibling sweep (repo/copr already singular-correct); the envelope-unit now injects the REAL key + a regression guard. Submodule bumps: sdk 7e9aafe→5ad481d (charly/go.mod require → v0.2026195.742), plugins 2f37adbe→7075eda — the merged producer legs (sdk PR image_tag field + plugins PR agents/git-workflow SKILL R1 correction). R10 (batch ceremony): #75 concurrent pair — check-sidecar-pod PASS + check-k8s-deploy PASS run SIMULTANEOUSLY, both run-scoped tags coexisting in the store (check-k8s-deploy-app:check-sidecar-pod-2026.195.0723 + :check-k8s-deploy-2026.195.0723); charly clean --dry-run label-grouped the bed tag under keep_images=3 (no leak); #66 both builders 9/9 fresh on the rebased tree; #71 the discriminating unit test + validate-clean. go test / golangci-lint 0 / gofmt / sdk repro all green. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01WQoP9D33zKXqqGuK8GeAco
pr-validator — APPROVED ✅Change class: runtime ( Producer legs verified: sdk gitlink BEHIND → resolved: Delta re-gate on the FINAL merged code ( #75 — threading verified: #66 — grub assertion ( #71 — Architecture: no new Decision: APPROVED. Merge-time CalVer + tag finalized at merge. Assisted-by: Claude (fully tested and validated) |
Summary
The check/bed correctness batch — three pre-existing bed/validation defects landed as one atomic superproject cutover. Producer legs (merged first, B2): sdk PR #47 (
image_tagwire field) + plugins PR #55 (agents-SKILL R1 correction).<bed-root>-<runCalver>tag (the tag analogue of feat(deploykit): adopt sdk/deploykit step vocabulary (P4-unit-3 consumer) #33 domain=deploy-name) threaded viaspec.CheckBedReply.ImageTag, passed as--tagon every build + deploy, with the k8s preresolver +resolveNodeOverlayshonoring the pinnednode.Version. Retention-safe (same image name → sameai.opencharly.boxlabel group).equals→containsmatcher. grub-install: the check was correct — added the missinggrub2-common(which provides/usr/sbin/grub-install, dropped by--no-install-recommends).Raw["modules"]→Raw["module"](the singular authored key); sibling sweep confirmed repo/copr correct; the envelope-unit now uses the real key + a regression guard.Change class + tier
charlyGo code + candy/plugin Go + candy config. Runtime class.fully tested and validated— the batch R10 ceremony below.Submodule bumps
sdkgitlink → the merged sdk#47 HEAD ·charly/go.modsdk require → the minted sdk tag.pluginsgitlink → the merged plugins#55 HEAD.R10 evidence (batch ceremony, per-worktree binary @ 2026.195.0650, rebased onto c9befd8)
check-sidecar-podPASS (11 steps, ok:true) +check-k8s-deployPASS (8 steps, ok:true), run SIMULTANEOUSLY, with both run-scoped tags coexisting in the store —check-k8s-deploy-app:check-sidecar-pod-2026.195.0723+:check-k8s-deploy-2026.195.0723— the pre-fix collision pair is collision-free by construction.charly clean --dry-runlistscheck-k8s-deploy-app:check-k8s-deploy-2026.195.0723in the keep_images=3 would-remove set alongside the old clock tags — label-grouped, NO leak.debian-debootstrap-builder:2026.195.0728+ubuntu-debootstrap-builder:2026.195.0729(9 steps, 9 passed, 0 failed).TestValidatePkgConfig_ModuleRequiresPackages(real key + plural-key regression guard) +charly box validateclean.go test ./...ok (charly + plugin-box + plugin-check) · golangci-lint 0 (all 3 modules) · gofmt clean · sdkTestGenReproduciblegreen.R0–R10 checklist
withRunTag/withMemberTag), one k8s-preresolver branch mirroring build_overlay. R5 additive/no removed surface; bringUpMembers signature swept; no liveraw["modules"]. R10 the concurrent-pair ceremony above proves fix(check): close the phase-resync goroutine leak + its data race #75 on the final rebased code.Assisted-by: Claude (fully tested and validated)