Repository navigation
docs(openspec): plan #2576 retry argo cd token on 401 - #3002
Merged
Merged
Conversation
dan-petty
added a commit
that referenced
this pull request
Nov 1, 2026
…3080) Plan #2576 came from the Service in pull request #3002. An evaluation on 2026-11-01 found defects in it. This pull request fixes the plan in place. It changes only the change folder `openspec/changes/2576-a-token-that-argo-cd-refuses/`. The corrected plan: - Retries one time on HTTP 401 when the admin password is stored, and ends with one clear message in each other case. - Has three behavior groups with real test paths and tests written first. - Puts the spec delta in the right capability, `argo-sync-rollouts-teardown`. - Has a Feasibility section with command output. - Names the callers left out of scope, so the follow-up is exact. Plans #2576
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.
Plans #2576
This change adds a shared helper in argo/credentials.py that wraps Argo CD API calls. On HTTP 401, it mints a new token with the stored admin password, stores it, and retries the request once. When no password is stored, or the retry also fails, it raises ArgoError with a message naming argocd.token. Other HTTP errors raise ArgoError with the status code. The commands cd_apps_list, cd_apps_sync, and cd_apps_status use this helper instead of raw raise_for_status, so every Argo CD API error is a DevOpsCLIError that the exit seam reports as one line.
Change:
openspec/changes/2576-a-token-that-argo-cd-refuses/