Repository navigation
refactor(managed-server): move the managed server's lifecycle into src/main/managed-server/lifecycle/ - #30343
Conversation
…c/main/managed-server/lifecycle/ orcad-managed-*, orcad-runtime-*, orcad-stdio-bridge-*, orcad-decommission-* and orcad-rollback-* leave src/main/ssh. git mv plus import and path-literal rewrites; two e2e route regexes learn the new folder. orcad-runtime-maintenance stays for now because open #29834 edits it.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
ELI5
This is step three of moving the desktop side of the managed Orca server out of
src/main/ssh. This step moves the code that runs a managed server once it is installed: tunnels, serving, wake and update, conversion, decommission and rollback. Its new home issrc/main/managed-server/lifecycle/. Nothing the app does changes, and nothing on a host changes.What Changed
git mvtosrc/main/managed-server/lifecycle/, keeping their names. They are thesrc/main/sshfiles matchingorcad-managed-*,orcad-runtime-*,orcad-stdio-bridge-*,orcad-decommission-*andorcad-rollback-*, plus their tests.vi.mockpaths in 85 importers acrossssh,ipc,wslandsrc/main. Path literals are updated inreliability-gates.jsonc,ci-shard-timings.jsonand both legacy-relay fence baselines, where the moved importer and tagged file are renamed in place.ssh.orcad-host-serveraround line 131 andssh.orcad-journeysaround line 251) now matchmanaged-server/<sub>/as well asssh/. A script compared spec selection for every moved production file at its old and new path, and none differ.orcad-runtime-maintenance, because open PR fix(orcad): refuse new terminals while an update stops the server (R32) #29834 edits it.managed-server-*update-policy files. Moving them wraps the import lines inssh-host-server-on-connect.tsand pushes it past the 300-line limit. They should move together with thessh-host-server-*on-connect files in one later slice, so their imports stay in one folder.git diff -M. The only edits inside moved files are../import depth.Why
This follows round 2's folder plan (§4.2, M4, D8). It is the third of four M4 PRs; host-state is next.
Linked Issue
N/A (SSH hardening round 2, S11/M4).
Visual Proof
N/A: a pure file move.
Testing
typecheck:cipasses.src/main/managed-server,src/main/ssh,src/main/wsl,src/main/orcad,ipc/orcad*,ipc/ssh*,ipc/runtime-environment*,ipc/managed-orcad*,ephemeral-vm*,startup, and the e2e routing, orcad scope and node-server config tests: 562 files, 5,845 tests pass. The exception is the 4orcad-forked-child-pathscases, which fail on main on macOS too because of the/private/vartmpdir realpath.