Skip to content

sweep the stale config-stack test comments in the sdk re-pin PR #630

Closed

Description

@aitrawog

What

After opencharly/sdk#270 merges (the fix that removes the per-host deploy overlay from the config stack), charly's sdk re-pin PR must also sweep three now-stale test comments plus the defensive t.Setenv("XDG_CONFIG_HOME", …) they justify.

Why

sdk#270 removes spec.DefaultDeployConfigPath() from loaderkit/config_stack.go's stack (it was raw-merged as a project layer, injecting top-level member keys that collide in FoldMembers). Post-fix the user layer is no longer part of LoadUnified.

Three charly tests carry a comment asserting the OLD behavior ("sdk v0.2026250.702+ LoadUnified merges system → user → in-dir") and a per-test t.Setenv("XDG_CONFIG_HOME", t.TempDir()) whose stated reason is that stale merge:

  • charly/charly/layers_test.go:561
  • charly/charly/plugin_bootstrap_test.go:47
  • charly/charly/unified_test.go:26

These are NOT currently false — charly's pinned sdk (v0.2026260.1434) still merges the user layer — so they must NOT be swept before the pin advances. They go stale at the re-pin.

Scope

  • Bump github.com/opencharly/sdk to sdk#270's merge tag.
  • Remove the stale comment + the now-unnecessary per-test t.Setenv("XDG_CONFIG_HOME", …) in the three files. (TestMain already sets XDG_CONFIG_HOME package-wide in test_main_test.go.)

Evidence the removal is safe

With sdk#270 applied, removing all three t.Setenv("XDG_CONFIG_HOME", …) lines and running the FULL charly package (go test -count=1 .) passes: ok github.com/opencharly/charly/charly 238.196s, 0 failures.

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

Activity

  1. aitrawog commented on Sep 22, 2026

    @aitrawog
    ContributorAuthor

    Resolved by #631 (merged): sdk re-pinned to v0.2026265.2104 and the three stale test comments + their now-unneeded per-test XDG_CONFIG_HOME isolation swept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions