Visitar URL original
Accept a deployment version in `pulumi deployment get` by i-am-tom · Pull Request #23238 · pulumi/pulumi · GitHub
Skip to content

Accept a deployment version in pulumi deployment get - #23238

Merged
julienp merged 4 commits into
masterfrom
claude/determined-ardinghelli-52515c
May 18, 2026
Merged

julienp merged 4 commits into
masterfrom
claude/determined-ardinghelli-52515c

Conversation

@i-am-tom

@i-am-tom i-am-tom commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

pulumi deployment get is now visible (the Hidden: true gate is removed, matching its siblings list, log, cancel) and accepts a per-stack deployment version number (e.g. 9410 or #9410) as well as a deployment UUID, matching the convention used in the Pulumi Cloud UI and in chat. Version refs are resolved through the GetDeploymentByVersion endpoint added in #23233; UUIDs continue to go through GetDeployment. The command stays [EXPERIMENTAL] for now.

Mirrors the parallel change applied to pulumi deployment logs in #23233, on which this PR is stacked — once #23233 merges, this PR will rebase down to its own commits.

Test plan

  • Added appropriate unit tests - For all changes
  • Added a test in pkg/engine/lifecycletest - N/A
  • Added a conformance test in pkg/testing/pulumi-test-language - N/A
  • Added a golden test in pkg/backend/display - N/A

New tests cover three branches in deployment_get_test.go:

  • TestDeploymentGet_ResolvesVersionRef (sub-tests 9410 and #9410) — version refs dispatch to GetDeploymentByVersion.
  • TestDeploymentGet_PassesUUIDThrough — UUID refs go through GetDeployment.
  • TestDeploymentGet_VersionLookupError — resolution error is propagated and the by-id endpoint is never called.

Validation

  • make lint — clean
  • make test_fast — failed locally with compile: version "go1.25.8" does not match go tool version "go1.25.7", an environment-level Go version mismatch (mise/toolchain), not related to this change. The deployment and httpstate/client packages pass individually.
  • make tidy_fix — N/A (no module changes)
  • make format — clean
  • Relevant SDK tests pass - N/A (no SDK changes)
  • make check_proto — N/A (no proto changes)

Changelog

  • Changelog entry added — the command becomes user-visible.

Risk

Low. The command is still marked [EXPERIMENTAL]. The new dispatch logic is a single conditional in the command body — UUID input continues to flow through the original endpoint unchanged. Version refs are matched by the existing ^#?[0-9]+$ regex introduced in #23233, so deployment UUIDs (which contain hyphens) are never misclassified.

iwahbe and others added 2 commits May 18, 2026 14:02
The `get` command now accepts a per-stack deployment version number
(e.g. `9410` or `#9410`) as well as a deployment UUID, matching the
convention used in the Pulumi Cloud UI and in chat. Version refs are
resolved through the new `GetDeploymentByVersion` endpoint added in
#23233; UUIDs continue to go through `GetDeployment`.

Mirrors the parallel change made to `pulumi deployment logs` in #23233,
on which this PR is stacked.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@i-am-tom
i-am-tom changed the base branch from master to iwahbe/fix-deployment-logs-command May 18, 2026 13:40
The `--output` flag self-documents the available formats, so restating
"Default output is a human-readable summary; pass --output=json …" at the
end of `Long:` is redundant.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@i-am-tom
i-am-tom marked this pull request as ready for review May 18, 2026 13:57
@i-am-tom
i-am-tom requested a review from a team as a code owner May 18, 2026 13:57
The sibling commands (`deployment list`, `log`, `cancel`) are already
visible; unhide `get` so users can discover it via `pulumi deployment
--help`. The command stays `[EXPERIMENTAL]` for now.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Base automatically changed from iwahbe/fix-deployment-logs-command to master May 18, 2026 14:19
@i-am-tom
i-am-tom enabled auto-merge May 18, 2026 14:51
@i-am-tom
i-am-tom added this pull request to the merge queue May 18, 2026
@julienp
julienp removed this pull request from the merge queue due to a manual request May 18, 2026
@julienp
julienp added this pull request to the merge queue May 18, 2026
Merged via the queue into master with commit 66da7e7 May 18, 2026
230 of 232 checks passed
@julienp
julienp deleted the claude/determined-ardinghelli-52515c branch May 18, 2026 23:10
@pulumi-bot

Copy link
Copy Markdown
Contributor

This PR has been shipped in release v3.242.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants