Skip to content

feat(check): bed-scoped fixture image tags + debootstrap-builder checks + module-key validation fix - #110

Merged
atrawog merged 3 commits into
mainfrom
feat/check-bed-correctness
Jul 14, 2026
Merged

atrawog merged 3 commits into
mainfrom
feat/check-bed-correctness

Conversation

@atrawog

@atrawog atrawog commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

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_tag wire field) + plugins PR #55 (agents-SKILL R1 correction).

Change class + tier

  • Change class: charly Go code + candy/plugin Go + candy config. Runtime class.
  • Tier: fully tested and validated — the batch R10 ceremony below.

Submodule bumps

  • sdk gitlink → the merged sdk#47 HEAD · charly/go.mod sdk require → the minted sdk tag.
  • plugins gitlink → the merged plugins#55 HEAD.

R10 evidence (batch ceremony, per-worktree binary @ 2026.195.0650, rebased onto c9befd8)

R0–R10 checklist

  • R1 every defect RCA'd from the actual failure (grub2-common missing-package, not a wrong assertion; the module singular-key). R2 all three surfaced defects fixed in this one cutover. R3 shared appenders (withRunTag/withMemberTag), one k8s-preresolver branch mirroring build_overlay. R5 additive/no removed surface; bringUpMembers signature swept; no live raw["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)

atrawog added 2 commits July 14, 2026 10:07
…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
@atrawog

atrawog commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: runtime (charly Go + candy Go + candy config + submodule bumps). Independently re-derived; trusted no author claim.

Producer legs verified: sdk gitlink 7e9aafe→5ad481d (= merged sdk#47), plugins gitlink 2f37adbe→7075eda (= merged plugins#55), go.mod sdk require → v0.2026195.742 (= the minted sdk tag). All match what this chain merged.

BEHIND → resolved: gh pr update-branch merged main 9e476e2 (gate-infra #109); forward-gitlink verified — the merged head keeps 5ad481d/7075eda (never reverted). #109 vs #110 file overlap is EMPTY (disjoint), and #110's content is byte-identical through the merge.

Delta re-gate on the FINAL merged code (52c8d43, workspace build) — all GREEN (re-run by me): gofmt clean · go build/go vet 0 · charly go test ./... all pass (incl. TestBedRunImageTag + TestResolveNodeOverlays_PropagatesExplicitTagToNodeVersion) · plugin-box go test (incl. TestValidatePkgConfig_ModuleRequiresPackages) · plugin-check go test · golangci-lint 0 issues on all 3 modules.

#75 — threading verified: bedRunImageTag=bed+"-"+calver → CheckBedReply.ImageTag → withRunTag appends --tag on every build+deploy step; no-drift via resolveNodeOverlays seeding node.Version (authored version still wins); k8s_deploy_preresolve honors node.Version with a fail-loud presence check, mirroring build_overlay.go's tag != "" branch. R5 bringUpMembers sweep complete (3 sites). Discriminating unit tests that fail without the fix.

#66 — grub assertion (/usr/sbin/grub-install exists:true) is intact/unweakened; the fix ADDS grub2-common (root-cause: it provides that binary, dropped by --no-install-recommends) + a qemu-img contains: matcher (R4, no version-pin). Candy composed at the new version 2026.195.0600 into debian+ubuntu (build artifacts present); 9/9 check-box per the body/CHANGELOG.

#71 — Raw["modules"]→Raw["module"] (singular authored key), sibling sweep (repo/copr already singular), discriminating test (real key fires + old plural must not) — re-run green by me.

Architecture: no new charly/*_aliases.go, no new sdk-kit import into core. placement: CORRECT (tag threaded through existing core bed-runner/deploy-resolve paths + CUE-sourced wire field + candy-side threading). Security (T1–T4): clean. R2: #76 (same-class plugin-cache landmine) is a registered task, separable, not silently parked.

Decision: APPROVED. Merge-time CalVer + tag finalized at merge.

Assisted-by: Claude (fully tested and validated)

Rename the placeholder CHANGELOG to the merge-time CalVer and align its H1.
Superproject leg of the check/bed-correctness batch (#66/#71/#75).

Assisted-by: Claude (fully tested and validated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant