Skip to content

feat(argo): preview requests in dry run for argo commands - #2855

Merged
dan-petty merged 1 commit into
mainfrom
feat/2240-argo-dry-run
Oct 31, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/2240-argo-dry-run

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

  • Add dry-run support for 22 Argo commands.
  • Classify 20 commands as request-plan: argo cd apps bootstrap-gitops, argo cd apps list, argo cd apps status, argo cd apps sync, argo cd fleet sync, argo cd gitops sync, argo cd gitops watch, argo fleet sync, argo gitops sync, argo gitops watch, argo rollouts abort, argo rollouts analyze, argo rollouts list, argo rollouts promote, argo rollouts restart, argo rollouts status, argo sync, argo workflows list, argo workflows logs, and argo workflows submit.
  • Classify 2 commands as no-external-request: argo cd gitops drift and argo gitops drift.
  • Add --dry-run to commands lacking it: argo cd apps sync, argo rollouts list, argo rollouts status, argo sync, argo workflows list, argo workflows logs, and argo workflows submit.
  • List token request before target Argo CD HTTP API request in dry-run plans.
  • Make zero external requests during dry run. Remove echo-only previews.
  • Remove all 22 commands from tests/fixtures/dry_run_gaps.json.
  • Regenerate documentation and CLI references.

Verification

  • Ran tests in tests/commands/test_argo_dry_run.py (28 passed in 3.52s).
  • Ran argo test suites in tests/argo/, tests/commands/test_argo.py, and tests/commands/test_argo_apps_status.py (183 passed in 8.29s).
  • Verified ratchet invariant in tests/invariants/test_dry_run_class_ratchet.py (7 passed in 1.58s).
  • Archived OpenSpec change 2240-argo-dry-run with uv run devops openspec archive.
  • Passed fast static quality gates (python version, lint, format, typecheck, actionlint, zizmor).

Closes #2240

@dan-petty dan-petty added type/feature Type feature: a new function scope/argo Argo CD applications and Argo Workflows labels Oct 31, 2026
Add dry-run support for 22 Argo commands.

Classify 20 commands as request-plan: argo cd apps bootstrap-gitops,
argo cd apps list, argo cd apps status, argo cd apps sync, argo cd
fleet sync, argo cd gitops sync, argo cd gitops watch, argo fleet sync,
argo gitops sync, argo gitops watch, argo rollouts abort, argo rollouts
analyze, argo rollouts list, argo rollouts promote, argo rollouts
restart, argo rollouts status, argo sync, argo workflows list, argo
workflows logs, and argo workflows submit.

Classify 2 commands as no-external-request: argo cd gitops drift and
argo gitops drift.

Add --dry-run to commands lacking it: argo cd apps sync, argo rollouts
list, argo rollouts status, argo sync, argo workflows list, argo
workflows logs, and argo workflows submit.

List token request before target Argo CD HTTP API request in dry run.
Make zero external requests during dry run. Remove echo-only previews.
Remove all 22 commands from tests/fixtures/dry_run_gaps.json.

Verification:
- Ran tests in tests/commands/test_argo_dry_run.py (28 passed in 3.52s).
- Ran all argo test suites (183 passed in 8.29s).
- Verified ratchet invariant (7 passed in 1.58s).
- Passed fast static CI quality gates.

Closes #2240
@dan-petty
dan-petty force-pushed the feat/2240-argo-dry-run branch from 2e12202 to 90f885a Compare October 31, 2026 12:49
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 12:56
@dan-petty
dan-petty merged commit 9b18d68 into main Oct 31, 2026
19 checks passed
@dan-petty
dan-petty deleted the feat/2240-argo-dry-run branch October 31, 2026 12:56
dan-petty pushed a commit that referenced this pull request Oct 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.27.0](v0.26.1...v0.27.0)
(2026-10-31)


### Features

* **ai:** preview requests in dry run for model and gateway
([#2862](#2862))
([efd6159](efd6159)),
closes [#2241](#2241)
* **argo:** preview requests in dry run for argo commands
([#2855](#2855))
([9b18d68](9b18d68)),
closes [#2240](#2240)
* **k8s:** preview requests in dry run for manifest commands
([#2851](#2851))
([92be95c](92be95c)),
closes [#2239](#2239)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/argo Argo CD applications and Argo Workflows type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(argo): argo commands list their requests in a dry run and make none

1 participant