Repository navigation
Description
Problem
The wait of #7464 runs kubectl wait --for=jsonpath={.status.operationState.finishedAt} while the sync operation of a paused Application is Running. During the backoff between two retries, Argo CD sets finishedAt and keeps the phase Running. Evidence of 2026-11-27 23:18 UTC, Application danielpetty-com: phase=Running startedAt=23:07:12 finishedAt=23:18:04 retryCount=2, and the next attempt ran at 23:18:24. So the wait ends at once and the operation goes on, which can make a deleted claim again from git.
Change
When the phase of the operation of a paused Application is Running, the run ends the operation: it patches status.operationState.phase to Terminating, as argocd app terminate-op does, and waits until the phase is no longer Running or Terminating (on the homelab a terminated operation ends Failed with Operation terminated). It fails the step before the point of no return when the operation does not end.
Acceptance criteria
- A failing test first: an operation in phase
RunningwithfinishedAtset is ended and waited for, not taken as finished. devops cichecks pass.
Alternatives check of 2026-11-27: in-use.
The item already names this tool.
Tool: argoproj/argo-cd (https://github.com/argoproj/argo-cd), Apache-2.0, last activity 2026-11-27, maintained.
Reason: Searches found Argo CD, whose CLI argocd app terminate-op patches operationState.phase to Terminating and ends a running sync, so it covers the ending the issue mirrors, but not the phase wait or volume-move ordering.
Covers:
- Ends a running sync operation through terminate-op
- Sets operationState.phase to Terminating
- A terminated operation ends Failed with Operation terminated
Lacks:
- No wait on the operation phase after terminating
- No guard against finishedAt set during retry backoff
- No volume-move ordering or point-of-no-return check
Activity
devops-cli-service commentedon Nov 27, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (10)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 28, 2026
Released in v0.231.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.231.0
dan-petty commentedon Nov 28, 2026
Replacement check for #7498 (PR #7518, which replaces the volume move copy with pv-migrate): the fix of this issue stays.
_settleruns after the pause and again as its own step (step 6) after the copy and before the delete of the old claim, in place of its old place before the delete of the copy pods.test_a_running_sync_of_a_paused_application_is_waited_forchecks the two runs and their order.devops-cli-service commentedon Nov 28, 2026
Live since 2026-11-28 02:40 UTC