Skip to content

fix(bootstrap): orchpad stage never writes the live venv from tests, never breaks a user's own orchpad - #840

Merged
pom11 merged 1 commit into
mainfrom
fix/orchpad-stage-live-venv
Nov 26, 2026
Merged

pom11 merged 1 commit into
mainfrom
fix/orchpad-stage-live-venv

Conversation

@pom11

@pom11 pom11 commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Two fixes to the bootstrap orchpad stage (install_orchpad.py).

Tests wrote orchpad into the live Hermes venv. test_bootstrap_isolated.py and test_bootstrap_main_orch_e2e.py symlink the sandbox hermes-agent to the real tree. The orchpad stage then pip-installed into the shared venv, and its console scripts got shebangs pointing at pytest's tmp dir. Once that dir was gone, the live orchpad and orchpad-hermes were dead, and the 2.17.8 bootstrap's orchpad stage failed on every orchestrator profile.

  • New bootstrap flag --skip-orchpad-package (installer flag --no-package). It checks the package and never installs it; profiles are reported skipped when no package is there.
  • Both real-bootstrap tests pass the flag.
  • The isolated test now asserts that the live venv's bin/orchpad* files and the orchpad dist-info RECORD are unchanged.

A user's own orchpad is never broken. orchpad is standalone, so a user may install it before hscc. Before this change, any version other than exactly the pin was reinstalled. Now:

  • a version at or above the pin is left as it is (no downgrade);
  • a local or editable checkout is user-managed and left alone;
  • only a missing or older regular install is installed or upgraded;
  • standalone installs outside the Hermes venv are never touched;
  • existing plugins.enabled entries are kept.

Verified: hscc-bootstrap/tests 1567 passed. The live orchpad files had the same md5 before and after the real bootstrap tests. 8 new installer cases.

…never breaks a user's own orchpad

The isolated-install tests symlink the sandbox hermes-agent to the real
tree, so the orchpad stage pip-installed into the shared venv with
shebangs into pytest's tmp dir. --skip-orchpad-package (installer
--no-package) checks the package and never installs it; both real
bootstrap tests pass it and the isolated test asserts the live
orchpad files are unchanged.

A user may install orchpad before hscc: a version at or above the pin
and any local/editable checkout are left as they are; only a missing
or older regular install is installed or upgraded to the pin.
@pom11
pom11 merged commit 15c0c23 into main Nov 26, 2026
13 checks passed
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