Repository navigation
fix(bootstrap): orchpad stage never writes the live venv from tests, never breaks a user's own orchpad - #840
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes to the bootstrap orchpad stage (
install_orchpad.py).Tests wrote orchpad into the live Hermes venv.
test_bootstrap_isolated.pyandtest_bootstrap_main_orch_e2e.pysymlink the sandboxhermes-agentto 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 liveorchpadandorchpad-hermeswere dead, and the 2.17.8 bootstrap's orchpad stage failed on every orchestrator profile.--skip-orchpad-package(installer flag--no-package). It checks the package and never installs it; profiles are reportedskippedwhen no package is there.bin/orchpad*files and the orchpad dist-infoRECORDare 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:
user-managedand left alone;plugins.enabledentries are kept.Verified:
hscc-bootstrap/tests1567 passed. The live orchpad files had the same md5 before and after the real bootstrap tests. 8 new installer cases.