Repository navigation
fix(charly): re-pin sdk to the config-stack overlay fix + sweep the stale test comments - #631
Conversation
…tale test comments Bumps github.com/opencharly/sdk to v0.2026265.2104 (the merged fix from opencharly/sdk#270: the per-host deploy overlay is no longer raw-merged as a config-stack PROJECT layer) and sweeps the three test comments that documented the OLD three-layer merge. opencharly/sdk#270 removed `spec.DefaultDeployConfigPath()` from loaderkit/config_stack.go's stack. Before it, a per-host deploy overlay was raw-merged as a project document layer, injecting a deploy-level member's top-level persisted copy next to the member its owner still declares nested — which FoldMembers rejects (`peer name "..." collides with an existing deploy/bed/peer entry`). Every member-bearing bed failed at steps=1. With the pin advanced, three test comments asserting the OLD behavior are now false, and the per-test `t.Setenv("XDG_CONFIG_HOME", t.TempDir())` they justified is no longer needed (TestMain already sets XDG_CONFIG_HOME package-wide; the per-test isolation existed ONLY to shield against the user-layer merge, which is gone). Swept (#630): - charly/layers_test.go - charly/plugin_bootstrap_test.go - charly/unified_test.go `go mod tidy` also advances github.com/opencharly/spec to v0.2026262.957 (the version the bumped sdk requires). R10 (live, charly rebuilt against the bumped pin): - check-preempt-live-pod: PASS (steps=22) - full charly package: go test -count=1 . = ok (252.777s); go build ./... exit 0; go vet . exit 0; gofmt -l . empty Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Change class: charly core Go — dependency re-pin ( Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
… overlay fix (#21) * fix: re-pin sdk so the in-plugin project load honors the config-stack overlay fix Bump github.com/opencharly/sdk v0.2026253.1947 -> v0.2026265.2104 (and the spec require it carries) so this plugin's OWN project self-load stops raw-merging the per-host deploy overlay as a config-stack PROJECT layer. WHY. This plugin is an out-of-process deploy:vm substrate: it self-loads the project (loaderkit.LoadUnifiedViaExecutor, lifecycle.go) to resolve the VM entity for PrepareVenue. Under the pin above, that load used the pre-fix config stack: it raw-merged ~/.config/charly/charly.yml (a DeployConfig — per-host RUNTIME state) as a project document layer. For a member-bearing bed that injects a deploy-level member's TOP-LEVEL persisted copy next to the member its owner still declares nested, and FoldMembers rejects it: peer name "preempt-vm-taker" (declared under deploy "check-preempt-vm-live") collides with an existing deploy/bed/peer entry Observed live on check-preempt-vm-live (distro-fedora AND the relocated plugin-preempt copy), failing at bring-up-members (steps=9). charly core and the compiled-in plugins got this fix via opencharly/sdk#270 + the charly re-pin (opencharly/charly#631); an OUT-OF-PROCESS plugin vendors its OWN loaderkit, so each must re-pin in its own repo. This is that re-pin for plugin-deploy-vm. R10 (live): check-preempt-vm-live re-run against a charly binary whose CHARLY_REPO_OVERRIDE points this repo at the bumped tree: - bring-up-members: FAIL (steps=9) before -> PASS after - bed verdict: PASS (steps=20), 0 FAIL; the VM-venue arbiter assertions preemptor-vm-lease-recorded + preemptor-vm-stopped-the-holder both PASS, proving the pluginHolderStop/pluginHolderStart addr.Vm!="" dispatch live. - go build ./... exit 0; go vet ./... exit 0; go test ./... ok Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs: re-freeze the PR body against the final head --------- Co-authored-by: Andreas Trawoeger <[email protected]>
Summary of changes
Re-pins
github.com/opencharly/sdkto v0.2026265.2104 (the merged fix from opencharly/sdk#270) and sweeps the three test comments that documented the OLD three-layer config stack.Why the pin bump. opencharly/sdk#270 removed
spec.DefaultDeployConfigPath()fromloaderkit/config_stack.go's stack. Before it, the per-host deploy overlay (~/.config/charly/charly.yml) was raw-merged as a project DOCUMENT layer, injecting a deploy-level member's top-level persisted copy next to the member its owner still declares nested — whichFoldMembersrejects (peer name "..." collides with an existing deploy/bed/peer entry). Every member-bearing bed failed atsteps=1.The sweep (#630). With the pin advanced, three test comments asserting the old "sdk v0.2026250.702+ LoadUnified merges system → user → in-dir" behavior are now false, and the per-test
t.Setenv("XDG_CONFIG_HOME", t.TempDir())they justified is no longer needed —TestMainalready setsXDG_CONFIG_HOMEpackage-wide, and the per-test isolation existed ONLY to shield against the user-layer merge that is now gone. Swept:charly/layers_test.go— removed the stale comment +t.Setenv.charly/plugin_bootstrap_test.go— removed the stale comment +t.Setenv.charly/unified_test.go— removed the stale comment +t.Setenv.Concrete edits:
charly/go.mod—github.com/opencharly/sdk v0.2026260.1434→v0.2026265.2104.charly/go.sum— the sdk + spec checksums (tidy also advancesgithub.com/opencharly/spectov0.2026262.957, the version the bumped sdk requires).Change class
charly-or-sdk Go (charly core: dependency pin + stale-comment sweep in tests).
Closes / relates to: closes #630; relates to opencharly/sdk#270 (the merged fix this re-pins).
opencharly/spec#142(deletes the dead siblingmerge.MergeConfigStack) is an independent companion — no ordering dependency (dead code).Breaking change + rollback: no public surface changes — a dependency pin bump plus comment/test-isolation removal. Rollback: revert this commit (the pin returns to
v0.2026260.1434).How R10-tested — exact gate, commands, and pasted output
charly check run <bed>for the touched code path — the config-stack change is exercised by member-bearing beds;check-preempt-live-podis the bed that regressed (steps=1) and must pass on the re-pinned tree.check-preempt-live-pod | pod | ok | 22 steps | ~430s(opencharly/plugin-preempt)charly version= 2026.249.2125, built from this branch (GOWORK=off go build -buildvcs=false -ldflags "-X main.BuildCalVer=2026.249.2125"), calver.check/check-preempt-live-pod/2026.265.2114/.charly version= 2026.249.2125. The bed ransteps=22at zero un-allowlisted warnings (one allowlisteddev-worktree-binary-noticeper step).readConfigStackis on the load path of everycharlysubprocess; the member builds (image-build-preempt-holder/-taker) now PASS and the full bed runs to verdict. The sweep itself is test-only; the full charly package ran green with it (below).Evidence — put each item in the block whose label names it.
1. Fresh-rebuild gate output (
charly version+ the gate run, at zero warnings):2. Each changed code path executing (the lines proving the changed branch ran, not that it built):
3. Docs-only evidence: N/A — code change class (dependency pin + test edits).
Attribution tier
fully tested and validated. The re-pinned binary was rebuilt from this branch and the regressed bed (
check-preempt-live-pod) executed live toPASS (steps=22); the swept tests ran green in the full charly package (go test -count=1 .= ok, 252.777s) at zero warnings, and the sweep removed the isolation those tests no longer need.Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)go(charly Go module,task build:binary, R9 freshness),git-workflow,root-cause-analyzer,strict-policy.t.Setenv("XDG_CONFIG_HOME", …)duplicatedTestMain's package-wide override; removing it deletes the redundant per-test copy now that its only rationale is gone.git grepin block 2 — the stalesystem → user → in-dir/USER config-stack layerclaims have ZERO hits in charly live code, andMergeConfigStackhas ZERO hits (exit 1 each). No transitional/dual-mode path.origin/main(this session's own),git statusinspected before staging; commit onfix/branch, PR-only, no force-push.charly version= 2026.249.2125; no new runtime OS deps introduced by this change.disposable: truebed (check-preempt-live-pod, 22 steps) on a fresh rebuild at zero un-allowlisted warnings. The sweep's coverage is the full charly package (which would fail if the removed isolation were still needed).52a1ce8b); pin bump + sweep together, no Phase-2.gofmt -l .empty;go vet .clean;go test ./...(full packagego test -count=1 .= ok, 252.777s);go build ./...exit 0.CHANGELOG/is written from the PR body by the merge workflow (existing entries are dated CalVer files authored at merge). No file staged.Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)