Repository navigation
fix(hosts): update an old linked host's daemon normally once recovery is offered - #533
Conversation
getHostSoftwareUpdates gives an old daemon (no force contract) a forceMethod of "recovery" as soon as this server's own release exists on GitHub. updateHostSoftware read that as "this update is a recovery" for every update, so the normal update of a 0.7.1-or-older host was refused with "This host requires explicitly approved recovery" once 0.7.2 was published. Recovery is now used only for a forced update; a normal one goes to the host's own updater as before. The tests that cover it reached the live GitHub API, so they passed while the release was unpublished or the API rate-limited the runner. They now serve the release lookup themselves.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The old-server GUI update e2e (#524) requires the plain update of this machine's 0.7.0/0.7.1 daemon to be refused so that only Force starts its recovery, as the 0.7.2 upgrade note says. Only a linked host's old daemon takes a normal update through its own updater.
|
@codex review |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
getHostSoftwareUpdates gives an old daemon (no force contract) a forceMethod of "recovery" as soon as this server's own release exists on GitHub. updateHostSoftware read that as "this update is a recovery" for every update, so the normal update of a 0.7.1-or-older linked host was refused with "This host requires explicitly approved recovery" once 0.7.2 was published. Recovery is now used for a linked host only on Force; a normal update goes to that host's own updater as before. This machine's old daemon keeps requiring Force (recovery), as the 0.7.2 upgrade note and the old-server GUI e2e (#524) require.
The unit tests that cover it reached the live GitHub API, so they passed while the release was unpublished or the API rate-limited the runner. They now serve the release lookup themselves.
Summary by CodeRabbit