You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: drive build from lpb.stack.env/lpb.conf.env, harden launcher + tests
lpb.py regressions from recent refactors (all now covered by tests):
- cmd_remove called .is_dir() on the str from resolve_path() -> AttributeError
- _load_stack_env/_load_conf_env only looked next to the script, silently
ignoring lpb.stack.env/lpb.conf.env when run from a checkout
- separator comment swallowed `def self_update()`, so cmd_update would
NameError at runtime (body was absorbed into warn())
Canonical config now drives the build:
- support/build.sh sources lpb.stack.env + lpb.conf.env and passes
--build-arg for every value (CONFIG_FORK, CONFIG_REF, NODE_VERSION,
VSCODIUM_VERSION, PI_*, LPB_VERSION, LPB_MAX_TOKENS_CONTEXT_RATIO, ...)
- Dockerfile: new ARGs/ENVs, bakes CONFIG_FORK/REF as LPB_CONFIG_REMOTE/REF
and copies lpb.stack.env into /opt/devstack/
- CI cli/web jobs pass PI_REF, PI_HEAD_SHA, LPB_VERSION and MAX_TOKENS and
apply them on push
Tests (scripts/test_lpb.py): 15 -> 27, incl. structural guards for swallowed
defs, env-file discovery, host-path semantics, remove confirm/abort, update
path, and web-mode env/volume assertions; mutation tests prove the guards
catch the two historic regressions. CI runs the suite and gates image builds.
Docs: fix stale /home/dev -> /home/lpb; add doc/LAUNCHER-INTERNALS.md.
0 commit comments