Repository navigation
fix(builder): pin HOME and PIXI_HOME in the pixi stage so the env lands where the image expects it - #627
Conversation
…ds where the image expects it pixi installs its environment under $PIXI_HOME (default $HOME/.pixi), not the project directory, and the emitted stage set only USER + WORKDIR — HOME comes from the BASE image's passwd for that uid. When a rebuilt base moved uid 1000's home, the env landed outside the box's home and the final stage's COPY --from=<stage> <home> <home> carried no .pixi: every image check reading <home>/.pixi/envs/default/bin/python went red (measured on opencharly/pod-comfyui#49's composed bed, filed as opencharly/pod-comfyui#51). The template now sets ENV HOME/PIXI_HOME explicitly — the same fix class npmStageTemplate already carries for NPM_CONFIG_PREFIX — and both RUN arms assert the env root exists, so a wrong home fails the BUILD instead of a runtime check. Consumer chain: plugin-builder-pixi bumps its sdk dependency, the umbrella advances the plugin pin, then pod-comfyui#48/#49 and the consumer pin bump can land. *Agent: `image-lane-vram` · Claude Code session `739c9baf-e4cc-465c-9028-0a77b9ea7617`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)*
Review — BLOCKHead SHA: Change class: code — Go template emitter in Blocks
Notes (non-blocking)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…t it Coverage the review asked for: the emitted stage must carry ENV HOME=<home> PIXI_HOME=<home>/.pixi and test -d <home>/.pixi for every input home (three homes in the table). Measured: the test PASSES with the fix and FAILS with the ENV line removed — the control can fail. *Agent: `image-lane-vram` · Claude Code session `739c9baf-e4cc-465c-9028-0a77b9ea7617`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)*
|
STATUS — round 2 ( The new test asserts On the bed: the emitter is consumed by Agent: |
Review — PASSHead SHA: Security screen: PASS — no secrets, no network/egress, no guardrail edits, no embedded directives; diff matches the body exactly. Comment dispositions
Non-blocking notes
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…I_HOME (#10) * chore(deps): adopt sdk v0.2026327.1653 — the pixi stage pins HOME/PIXI_HOME opencharly/sdk#627 merged as v0.2026327.1653: the emitted pixi stage now sets ENV HOME/PIXI_HOME from the input home and asserts <home>/.pixi exists, so a base whose uid home moves can no longer strand the environment outside the box home (the failure that reddened every check reading <home>/.pixi/envs/default/bin/python, opencharly/pod-comfyui#51). go build ./... and go test ./... pass on the bump. *Agent: `image-lane-vram` · Claude Code session `739c9baf-e4cc-465c-9028-0a77b9ea7617`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)* * test(resolve): the stage this plugin SERVES carries the HOME/PIXI_HOME pins and guard The provider's own reply is the emitted artifact: Invoke(Op resolve) is called exactly as the host calls it, and the served stage is asserted for two different homes. Fails if the sdk dependency is reverted to a template without the pins (opencharly/pod-comfyui#51). *Agent: `image-lane-vram` · Claude Code session `739c9baf-e4cc-465c-9028-0a77b9ea7617`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)* * fix(test): import the provider reply type from spec/proto, as the package already does *Agent: `image-lane-vram` · Claude Code session `739c9baf-e4cc-465c-9028-0a77b9ea7617`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)*
…OME (#27) `charly.yml` pins the four external builder plugins as the BUILDER REPLY CONTRACT, and its own comment states the rule: bump them WITH the binary's own pins, never after. npm, cargo and aur already agree with `charly/charly.yml`; pixi did not — it still named v2026.326.2258, one release behind. That release emits a pixi stage with neither HOME nor PIXI_HOME set, so pixi installed its environment outside the box home ($PIXI_HOME defaults to $HOME/.pixi, and without HOME set it resolves elsewhere): every image built through this layer got a pixi env no `<home>/.pixi` check could find, while the build stayed green. v2026.327.1705 carries the fix (opencharly/sdk#627, opencharly/plugin-builder-pixi#10). Proven on the real composition, with this tree served through the sanctioned CHARLY_REPO_OVERRIDE (the ref's tag is ignored, the working tree is used): $ CHARLY_REPO_OVERRIDE=opencharly/layer-charly=<this tree> charly box generate comfyui-cdi plugin plugin-builder-pixi: … source …[email protected]… $ grep PIXI_HOME .build/comfyui-cdi/Containerfile ENV HOME=/home/user PIXI_HOME=/home/user/.pixi Both lines are absent at v2026.326.2258 (measured before this change: the same command served that tag and emitted no PIXI_HOME). *Agent: `image-lane-vram` · Claude Code session `739c9baf-e4cc-465c-9028-0a77b9ea7617`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)*
#1254) * chore(plugins): advance plugin-builder-pixi to the pixi-stage HOME fix The build resolves its builder plugin from THIS ref, not from the umbrella's gitlink — measured: with the umbrella pin advanced and the binary rebuilt, a build still served v2026.326.2258 (opencharly/opencharly#1254's evidence). This advances the ref to v2026.327.1705, the release whose emitted stage pins HOME/PIXI_HOME and asserts the env root, so the next release's builds carry opencharly/sdk#627's fix. *Agent: `image-lane-vram` · Claude Code session `739c9baf-e4cc-465c-9028-0a77b9ea7617`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)* * fix(packaging): pin the packaged charly layer to the fixed pixi builder The packaged `charly` candy still vendored plugin-builder-pixi at v2026.326.2258 while the project manifest's `charly-dev:` candy pinned v2026.327.1705 — the drift CHANGELOG 2026.327.0947 closed by hand, reopened because nothing enforced it: the packaging tests assert plugin NAMES against scripts/host-command-plugins.txt, never their tags. The tag is what the connect path vendors, so a packaged layer pinned at an older builder release ships the pre-fix plugin (its pixi stage carries no HOME/PIXI_HOME pins) while the tree claims the new one. Bump both manifests in one change and add the missing control: every plugin the packaged layer pins must appear in the project manifest at the same tag. TestPackagingPluginPinsMatchTheProjectManifest is RED on the half-bumped tree (it names the drifted repo and both tags) and GREEN once both move together. *Agent: `image-lane-vram` · Claude Code session `739c9baf-e4cc-465c-9028-0a77b9ea7617`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)*
Summary
The emitted pixi builder stage set only
USER {{.UID}}andWORKDIR {{.Home}}.pixi installputs its environment under$PIXI_HOME(default$HOME/.pixi), not the project directory, andUSER/WORKDIRdo not setHOME— it is read from the base image's passwd for that uid. When a rebuilt base moved uid 1000's home, the environment landed outside the box's home, and the final stage'scarried no
.pixi. Every image check that reads<home>/.pixi/envs/default/bin/pythonthen failed (measured:opencharly/pod-comfyui#49's composed bed —image-buildPASS 33m, thencomfyui-pinned-packages/comfyui-manager-versionexit 127 "No such file or directory"; filed as opencharly/pod-comfyui#51).This is the same defect class the codebase already fixed for npm, and it takes the same cure:
Fix
USER {{.UID}} WORKDIR {{.Home}} +ENV HOME={{.Home}} PIXI_HOME={{.Home}}/.pixi ... -RUN … {{.InstallCmd}} && rm -f {{.Manifest}} pixi.lock +RUN … {{.InstallCmd}} && test -d {{.Home}}/.pixi && rm -f {{.Manifest}} pixi.lock(the assertion is in both RUN arms — with and without a
build.sh), so a home mismatch fails the build instead of surfacing as a red runtime check in every consumer.How tested
The new coverage, measured both ways:
The integration gate is the consumer's composed bed (
check-cachyos-comfyui-podinopencharly/distro-cachyos), which cannot run until this emitter reaches it — the emitted stage isbuilt by
plugin-builder-pixi, which vendors this module, so the order is: this module's release →the plugin's dependency bump → the umbrella's plugin pin → the pod-comfyui branches' beds. That is
the structural order of the fix, not a deferral of this PR's own check: the unit test above is this
PR's check and it fails without the change.
Rulebook compliance
$HOME/.pixiwas explicitly rejected); the build now fails loudly on a wrong home.plugin-builder-pixibumps this sdk, the umbrella advances the plugin pin, thencheck-cachyos-comfyui-podon the pod-comfyui branches.Change classification
Change class: builder-stage emitter (one template constant) → gate:
go test ./kit/here, then the consumer's composed bed.Breaking change + rollback: none — the emitted stage gains two ENV lines and a
test -d; every consumer keeps the same env root it already used. Rollback is reverting this commit.Filed issues
Agent:
image-lane-vram· Claude Code session739c9baf-e4cc-465c-9028-0a77b9ea7617Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)