Repository navigation
test(hosts): upgrade a real 0.7.1 daemon through the compatible path - #522
Conversation
Adds v0.7.1 (link 12, same as this release) to the real-daemon upgrade harness: separate and shared installs. The hub welcomes it online, the update is started through POST /api/hosts/<id>/updates, and the old daemon's own updater installs/restarts it to the current version. Also asserts, for every legacy version, that exactly one daemon survives and the sessions directory is untouched.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Adds a real v0.7.1 daemon (link protocol 12, same as current) to
lib/hosts/v10-upgrade.integration.test.mjs, for both the separate and shared install layouts.POST /api/hosts/<id>/updates, the route a GUI click uses. A stale shared install is refused there with 409host_update_blocked.No production code changed. Run:
npx bun test lib/hosts/v10-upgrade.integration.test.mjs(6 pass, about 66 s).Summary by CodeRabbit