Skip to content

test(check): add check-kindcluster-workload R10 bed (Phase 6 workload leg) - #703

Merged
github-actions[bot] merged 5 commits into
mainfrom
feat/kind-workload-bed
Sep 27, 2026
Merged

github-actions[bot] merged 5 commits into
mainfrom
feat/kind-workload-bed

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

Add check-kindcluster-workload — the Phase 6 R10 witness for the
deploy:kindcluster workload leg + engine-aware image loading. A disposable kind
cluster on podman with the locally-built check-k8s-deploy-app image loaded INTO the
kind node (the podman path kind load image-archive — kind load docker-image is broken
there, plan §2 #11) and applied through the SHARED kubernetes generator (the kindcluster
cluster-policy surface is projected onto a #Kubernetes body, R3), then probed with the
kube: verb. Reuses the shared check-kindcluster-cluster template (R3 — no duplicated
kindcluster block).

Two product defects surfaced while building this bed were root-caused and fixed in their
own producer repos, and this PR adopts their tags:

  • plugin-check#64 (tag v2026.270.0151) — charly check run skipped the
    image-build step for an external-in-place deploy, so a kindcluster workload image
    was never built (pinned image … not present in local podman storage). Fixed the guard
    (bedBuildsImage).
  • plugin-kube#10 (tag v2026.270.0155) — podman save -o - writes a FILE named -
    rather than stdout (measured on podman 6.1.2: a 330 MB ./-, stdout EMPTY), so
    kind load image-archive saw an empty archive and the node's ctr images import
    failed ctr: unrecognized image format. Fixed to save to a real temp file.

Also updates the archlinux optdepends note for kubectl (the workload leg runs
kubectl apply -k).

How tested

The bed ran live on the disposable target, end to end, from the committed tree at
head 7b1a915c (binary built by scripts/bootstrap-charly.sh, 2026.270.0210, no
go.work override, no CHARLY_REPO_OVERRIDE
). All 8 steps:

image-build          ok  (95s)
check-image          ok  (38s)
deploy-add           ok  (127s)   ← cluster created, image loaded into the node, overlay applied
bring-up-members     ok  (0s)
check-live           ok  (34s)
update               ok  (51s)
cleanup              ok  (41s)    ← charly deploy del
cleanup-members      ok  (0s)
charly check run check-kindcluster-workload: PASS (steps=8)

The four plan checks all executed:

  PASS  the kindcluster-workload cluster exists on the podman engine                  [kwl-cluster-exists]
  PASS  the cluster reports at least one Ready node                                   [kwl-node-ready]
  PASS  the workload Deployment object landed on the kind cluster                     [kwl-deployment]
  PASS  the applied Deployment's controller scheduled the workload pod onto the cluster [kwl-pod-scheduled]

summary.yml records ok: true and warnings: 0 (the single finding is the check
runner's own declared, suppressed dev-worktree-binary-notice allowlist entry).
charly box validate — zero warnings, zero errors:

$ charly box validate
charly box validate: OK — checked 615 candies, 125 boxes, 45 deploys, 7 distros, 7 builders; 0 warnings, 0 errors

Clean teardown, no leak — the bed deletes its own kind cluster:

$ KIND_EXPERIMENTAL_PROVIDER=podman kind get clusters
check-kc                       # only another session's cluster remains

The branch is merged up to current main (fadbedeb, merge 7b1a915c) and the bed was
re-run on the merged tree — same PASS.

Rulebook compliance

  • R0 — skills first: loaded /charly-check:check, /charly-internals:strict-policy,
    /charly-internals:root-cause-analyzer, /charly-internals:git-workflow.
  • R1 — RCA every anomaly: both defects (pinned image … not present in local podman storage; ctr: unrecognized image format) were root-caused to their producer repos
    before any bed edit.
  • R2 — no deferral: the two producer fixes are landed (plugin-check#64,
    plugin-kube#10) and their tags adopted here; nothing deferred.
  • R3 — no duplication: the bed reuses the shared check-kindcluster-cluster
    template and the shared Kustomize generator.
  • R4 — no workarounds: the fixes are in the product (the build guard, the save
    invocation), not bed-side workarounds.
  • R4a — fix the product, not the prose.
  • R5 — no legacy: the pre-fix guard and -o - shape are deleted in their PRs.
  • R6 — git safety: session worktree; no force-push, no direct push to main; the
    branch caught up with main by merge, never rebase.
  • R7 — prove behavior: the bed's plan asserts the loaded image reached the node (the
    pod is scheduled); the producer fixes carry their own failing-without-fix tests.
  • R7a — live or skip: the bed runs against the real podman engine; no mock.
  • R8 — emitted artifacts: config + dependency pins only.
  • R9 — binary equals source: the stock scripts/bootstrap-charly.sh build of the
    committed tree ran the gate.
  • R10 — fresh disposable proof: the bed ran end to end on disposable: true targets
    with a fresh charly update, complete teardown, zero residue, and warnings: 0.
  • RDD: the image-load behaviour was proven live before the bed was finalized.
  • ADE: the bed's plan: carries deterministic check: steps.

Change classification

  • Change class: charly R10 check-bed + compiled-in plugin pin bump + @github ref
    advance (config).
  • Verification gate: the fresh disposable bed run (PASS, steps=8, warnings: 0) +
    charly box validate (0 warnings, 0 errors) on the merged tree.
  • Attribution tier: fully tested and validated — the workload leg ran live end to
    end on the disposable kindcluster and tore down cleanly.

Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

… leg)

The Phase 6 workload witness: a disposable kind cluster on podman with the
locally-built `check-k8s-deploy-app` image loaded INTO the kind node via the
engine-aware path (`kind load image-archive` — `kind load docker-image` is broken
on podman, plan §2 #11) and applied through the SHARED kubernetes generator (the
kindcluster cluster-policy surface is projected onto a `#Kubernetes` body, R3).

Proves the `deploy:kindcluster` provider's workload preresolve
(`resolveWorkloadImage` + `materializeKustomize`), the engine-aware load, and
`kubectl apply -k` end to end. The `kube:` probes assert the workload Deployment
object landed. Reuses the shared `check-kindcluster-cluster` template (R3 — no
duplicated kindcluster block).

*Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)*
…n) + assert the pod scheduled

The `kube: raw` probe needs the API group+version for a non-core resource:
`kube_resource: deployments` alone failed with
`list deployments: the server could not find the requested resource`. Add
`kube_group: apps` + `kube_version: v1` + `namespace`/`name` (mirror
check-k8s-deploy's own Deployment probe, R3), and add a `kube: pods` probe asserting
the applied Deployment's pod is scheduled — the engine-aware `kind load image-archive`
reached the node.

*Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)*
…ency

The kindcluster deploy substrate's workload leg runs `kubectl apply -k`, so
kubectl is needed for a kindcluster deploy that carries an image (cluster-only
deploys do not). Updates the archlinux optdepends note.

*Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)*
Bumps the pins the Phase 6 workload bed needs:
- compiled-in plugin-check `v0.2026269.859 → v0.2026270.151` (plugin-check#64:
  build the image for an external-in-place deploy too — the kindcluster workload
  leg's image was never built).
- the kindcluster beds' `plugin-kube` `@github` refs → `v2026.270.0155`
  (plugin-kube#10: `podman save -o -` writes a FILE named `-` rather than stdout,
  so `kind load image-archive` saw an empty archive).

*Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)*
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 7b1a915c001c65eacf9d6b854f3855615dac918b (branch: feat/kind-workload-bed)

Security screen: PASS — no scope mismatch, secrets, weakened guardrails, or supply-chain surprises; the pin bumps move opencharly/* deps forward and the new bed is a candy-level config addition.

Checklist: All applicable rules PASS or NA.

  • Diff↔body consistent: new check-kindcluster-workload bed, 5 plugin-kube @github refs advanced to v2026.270.0155, plugin-check v0.2026269.859 → v0.2026270.151 (go.mod/go.sum coherent, unchanged /go.mod hash plausible), and the packaging/charly.yml kubectl optdepends note.
  • ADE: new candy carries a non-empty description: and a plan: with 4 deterministic check: steps; charly box validate 0/0 is internally consistent.
  • R10: bed exercises the touched path (deploy-add runs the engine-aware load + apply -k, so it fails on a broken load) on a disposable: true target; pasted 8-step run, 4 plan checks, and warnings: 0 are internally coherent with the diff; producer fixes are external, so their landing is tool-limited.
  • No forbidden-framing dodges (no flake/pre-existing/idle-run), no legacy/transitional paths in the diff, placement is at the candy/check-bed layer (CORRECT).

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 27, 2026 02:24
@github-actions
github-actions Bot merged commit 8d3731a into main Sep 27, 2026
1 of 2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 27, 2026
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