Repository navigation
feat(cli): list a deployment's attempts - #615
Draft
PiquelChips wants to merge 1 commit into
Draft
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
PiquelChips
force-pushed
the
feat/cli-deployment-attempts
branch
from
November 22, 2026 12:32
dc819aa to
f2629b0
Compare
PiquelChips
changed the base branch from
main
to
fix/newest-deployment-not-first-row
November 22, 2026 12:32
PiquelChips
force-pushed
the
fix/newest-deployment-not-first-row
branch
from
November 22, 2026 22:12
04e6103 to
49387a0
Compare
`piquelctl env attempts` and `preview attempts` list each try at rolling a deployment out, newest first, as the dashboard's Attempts tab does: the attempt number, state, failure and when it last changed, as a table or `--json`. They default to the latest deployment, like `env wait`, and take `--deployment` and `--cursor` for older pages. The rule that the running attempt leads the list, and how an attempt's failure reads, move from the dashboard onto `piqueld_core::Operation`, so both surfaces share them. Fixes PQD-159
PiquelChips
force-pushed
the
feat/cli-deployment-attempts
branch
from
November 22, 2026 22:12
f2629b0 to
ed57f3f
Compare
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.
What and why
Fixes PQD-159
The dashboard's Attempts tab lists each time piqueld tried to roll a deployment out. The CLI had no way to do the same, though the API and
Client::deployment_attemptsalready existed. PQD-125's audit found the gap.This adds
piquelctl env attemptsandpiquelctl preview attempts. They show what the dashboard shows: each attempt's number, state, failure (code: message) and when it last changed. Output is a human table or--json, which is the API's page of operations.Like
env wait, they list the latest deployment's attempts unless you pass--deployment ID. The latest deployment is #616'slatest_deployment: the environment's latest operation, not the deployment list's first row (PQD-149). Its operation is also the running attempt that leads the first page.--cursorpages the deployment that--deploymentnames. As on the dashboard, the first page starts with the attempt running now, until the API retains its outcome. An unknown deployment fails withinvalid_input:deployment "…" of production was not found. The API is unchanged.Two rules move from the dashboard onto
piqueld_core::Operationso both surfaces share them:attempts(the running attempt goes first) andfailure(how an attempt's failure reads). The new command andfind_deploymentshare the 404 mapping.I updated the user docs (
reference/cli.mdandoperations/history.md) and regeneratedreference/cli-commands.md.Stacked on #616 (
fix/newest-deployment-not-first-row).Proved by a fake-server CLI test that covers the human table,
--jsonwith and without--deployment, a second page and an unknown deployment. In that test the deployment list's first row is an older deployment with a higher ID, and the command still lists the newer one's attempts. Core tests coverOperation::attemptsandOperation::failure. Clippy passes natively and for the dashboard on wasm32, andjust docspasses. The dev instance couldn't run: the host Docker engine kept a stale container name.cargo test -p piquelctlpasses apart fromauth::tests::concurrent_credential_updates_preserve_every_login, which fails under this load onmaintoo.Checklist
AGENTS.mdit applies to,documentation included, with its reverse states.
Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)