Deploying palace and slop-cannon together (request dcc973) left both on their old generations:
Switching palace stopped slop-broker.service, which dropped the broker's SSH connection to slop-cannon mid-activation.
Activation runs in a transient unit, but with systemd-run --pipe its output still went straight back over that connection, and activate-rs panics (exit 101) when a write fails, leaving the switch half done.
Changes:
Inside the unit, activate-rs's output goes through cat || cat >/dev/null (with pipefail), so output streams as before while the connection is there and is discarded after; activation always finishes and its exit status still comes back. A test drops the reader before the activation writes and checks it finishes.
The NixOS module sets restartIfChanged = false on slop-broker.service, so deploying the broker's own box doesn't stop it and the deploy reports its result. A new version or configuration takes effect at the next restart of the service.
docs/design.md and docs/architecture.md describe both.
Tested: cargo clippy --all-targets, nix build (all tests) and the VM test.
Deploying `palace` and `slop-cannon` together (request `dcc973`) left both on their old generations:
- Switching `palace` stopped `slop-broker.service`, which dropped the broker's SSH connection to `slop-cannon` mid-activation.
- Activation runs in a transient unit, but with `systemd-run --pipe` its output still went straight back over that connection, and `activate-rs` panics (exit 101) when a write fails, leaving the switch half done.
Changes:
- Inside the unit, `activate-rs`'s output goes through `cat || cat >/dev/null` (with `pipefail`), so output streams as before while the connection is there and is discarded after; activation always finishes and its exit status still comes back. A test drops the reader before the activation writes and checks it finishes.
- The NixOS module sets `restartIfChanged = false` on `slop-broker.service`, so deploying the broker's own box doesn't stop it and the deploy reports its result. A new version or configuration takes effect at the next restart of the service.
- `docs/design.md` and `docs/architecture.md` describe both.
Tested: `cargo clippy --all-targets`, `nix build` (all tests) and the VM test.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Activation runs in a transient unit, but its output still went
straight back over the connection, and `activate-rs` panics when a
write fails. Deploying `palace` and `slop-cannon` together stopped
the broker, which dropped the connection to `slop-cannon` and left
its switch half done. The output now goes through a `cat` that gives
way to one discarding it once the connection is gone.
Switching also no longer restarts the broker, so it can deploy its
own box and report the result; a new version or configuration takes
effect at the next restart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Deploying
palaceandslop-cannontogether (requestdcc973) left both on their old generations:palacestoppedslop-broker.service, which dropped the broker's SSH connection toslop-cannonmid-activation.systemd-run --pipeits output still went straight back over that connection, andactivate-rspanics (exit 101) when a write fails, leaving the switch half done.Changes:
activate-rs's output goes throughcat || cat >/dev/null(withpipefail), so output streams as before while the connection is there and is discarded after; activation always finishes and its exit status still comes back. A test drops the reader before the activation writes and checks it finishes.restartIfChanged = falseonslop-broker.service, so deploying the broker's own box doesn't stop it and the deploy reports its result. A new version or configuration takes effect at the next restart of the service.docs/design.mdanddocs/architecture.mddescribe both.Tested:
cargo clippy --all-targets,nix build(all tests) and the VM test.🤖 Generated with Claude Code