GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — doc: deployment architecture — a services layer outside the system switch by dezren39 · Pull Request #5764 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 13 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 37f62be9c4
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| removed in the same change that proves it), and **none requires a system | ||
| switch to land** — the only system-flake change in the whole program is | ||
| adding the `deploy` package and the `deployTargets` output. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Define an explicit handoff of Home Manager unit ownership
For the M2 and M4 migrations, replacing the live unit files does not relinquish Home Manager's ownership: home/common/default.nix:876-904 declares both brokers, and nixos/services/pm-stack/default.nix:106 onward declares the PM units. The broker comment at home/common/default.nix:873-875 explicitly confirms that HM replaces hand-installed units on activation. Under this additive-only migration, a subsequent ordinary system switch can therefore restore the old broker binaries and checkout-backed PM services over the independently deployed generations. Include an ownership-removal activation, or specify a durable override strategy, and verify that migrated services survive a subsequent HM/system activation.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Failure at any step: the profile flips back and the unit restarts on the | ||
| previous generation — deploy-rs's magic-rollback idea, with nix profiles | ||
| as the mechanism instead of a bespoke one. `rollback` is the same flip |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Restore the previous unit configuration during rollback
When a deployment changes rendered unit arguments or environment and then fails its health check, the prescribed profile flip and restart leave systemd using the failed generation's loaded unit configuration. The previous executable can therefore restart with incompatible new arguments or environment instead of recovering the working generation. Forward activation explicitly writes the unit and reloads systemd, but the rollback recipe omits those corresponding steps; systemctl --help describes daemon-reload as “Reload systemd manager configuration.” Specify that rollback also restores or relinks the previous generation's rendered unit and performs daemon-reload before restarting.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| user = "user"; # or a systemd DynamicUser where suitable | ||
| ports = [ 4801 ]; | ||
| restart = "on-failure"; | ||
| healthCheck = "http://100.99.113.103:4801/health"; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Use the queue broker's unauthenticated health endpoint
For the fleet serve queue-broker target shown here, /health is not an ordinary HTTP health probe: pkgs/fleet/crates/fleet-queue/src/queue_broker.rs:640-645 permits unauthenticated GET requests only to /healthz, while other paths require authentication and POST. A GET to the configured URL therefore returns 401 without credentials or 405 with credentials, causing a healthy deployment to fail its activation check and roll back. Use http://100.99.113.103:4801/healthz, which is also the endpoint exercised by the broker smoke test.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.