Repository navigation
Conversation
`rocketpool service start` and `rocketpool service stop` now take optional service names, like `service logs` already does, and pass them to `docker compose up` / `docker compose stop`. Without names, both commands behave exactly as before. The ec/cc/vc aliases from `service logs` are shared through a small helper. Closes rocket-pool#357 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Hey, thanks for the recent submissions! I have a couple concerns with this PR:
|
`rocketpool service start <names>` now only acts on the named services: - If the IPv6 setting no longer matches the live Docker network, a partial start stops with an error asking for a full `rocketpool service start`, instead of recreating the network (which stops and removes every container and would only bring back the named ones). - The upgrade flow (prompt, UpdateDefaults, RemoveUpgradeFlagFile) only runs on a full start. A partial start after an upgrade prints a note, keeps the current settings and leaves the upgrade flag in place, so the next full start still offers the prompt. - The validator client-swap check, which can stop the running validator and wait out the slashing delay, and the doppelganger note only apply when the validator is among the services being started. - `--remove-orphans` is only passed on a full start, since it acts on the whole compose project. Full starts (no service names) behave as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, both good catches. Fixed in 1605a20:
While going through
The Prometheus/Alertmanager config writes and the compose file regeneration still run on a partial start. They only write files from the current config and don't touch running containers, so I left them as they are. Full starts (no names) behave as before, and Verification: added unit tests for |
rocketpool service startandrocketpool service stopnow take optional service names, the same wayservice logsdoes. They're passed todocker compose up -danddocker compose stop, so you can stop or start a single container without touching the rest of the stack:The
ec/cc/vc(andel,cl,bn, ...) aliases fromservice logswork here too. The alias switch moved out ofserviceLogsinto a smallresolveServiceNameshelper so all three commands share it.Without service names both commands run exactly the same compose command as before.
service startwith names still runs every check it runs today (config validation, the upgrade prompt, the anti-slashing delay when the validator client changed, the IPv6 network check). Only the finaldocker compose upis narrowed. Compose also starts the listed services'depends_onservices, sostart validatorcan bringeth2up too. Unknown names are rejected by compose (no such service).service stopwith names asks "Are you sure you want to pause grafana? ...". The warning says that stopping the EC, CC or VC will cause penalties. Without names the prompt is unchanged.Tested with unit tests for the compose arguments and the alias mapping,
go build ./...,go vetand golangci-lint. I also checked the generatedup/stopcommands against a throwaway busybox compose project: stopping one service left the other running, andupwith a name started only that one again. CI run: https://github.com/tidelit4/smartnode/actions/runs/46820740605. Not tested on a live node.Closes #357
AI disclosure: written with help from an AI coding assistant (Claude); I reviewed the change and the tests.