Repository navigation
feat(deploy): deployTargets registry + deploy list CLI (#5766 slice 1) - #6231
Merged
Merged
Conversation
First slice of issue #5766 (queue task 10491): a deployTargets flake output carrying this repo's service definitions in the design 2026-11-04 section-3 option shape (pkgs/deploy/services.nix: queue-broker, secrets-broker, session-proxy, mcpx), and the deploy CLI package with list + strict definition validation (pkgs/deploy/deploy.py). Flake checks pin both halves: list enumerates the real registry, and list refuses a malformed fixture registry with field-named errors. No activation, systemd, or rollback code in this slice -- those are later slices on issue #5766.
developing-today
Bot
requested review from
a team and
dezren39
as code owners
November 5, 2026 13:39
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
…oy.py The malformed-registry flake check calls `deploy list --registry <fixture>`; the parser only honoured --registry before the subcommand, silently listing the baked-in registry instead (caught by check-deploy-list-malformed on the laptop, queue task 10491). Parse the flag in any position. Also run the treefmt python formatter (ruff format) over deploy.py.
This was referenced Nov 8, 2026
Migration M2: one declaration for the fleet three (laptop-agent, secrets-broker, queue-broker)
#5769
Closed
This was referenced Nov 8, 2026
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice 1 of #5766 (queue task 10491): the registry foundation only.
What lands
pkgs/deploy/services.nix— this repo's service definitions in the design §3 option shape (package, entryPoint, args, environment, secrets-by-name, user, ports, restart, healthCheck, targets, plus the §4class): queue-broker, secrets-broker, session-proxy, mcpx. Ports taken frompkgs/fleet/crates/fleet-configconstants (4800/4801/3130); secrets are names only, never values.deployTargetsflake output (per system, vialib.make-deploy) exposing those definitions withpackageas a derivation for later renderers.pkgs/deploy/deploy.py+ packagedeploy— the CLI withlist: validates every definition against the §3 shape (the validator names its oracle: exact field set, types, port range, restart-policy and class vocabularies) and enumerates name / class / targets. Any malformed definition makeslistexit non-zero with field-named errors. Unimplemented subcommands (deploy / status / rollback) say so and exit non-zero.deploy-list(enumerates the real registry) anddeploy-list-malformed(a fixture registry with a non-string entryPoint and an out-of-range port must be refused).Explicitly not in this slice (per the task packet): systemd activation, generation profiles, rollback — later slices on #5766. Cloudflare/container classes are #5767.
Refs #5766 (slice 1 of its scope; the issue stays open for the remaining slices).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.