Repository navigation
Description
Problem Description
devops argo cd apps list shows an empty Repo column for every Application that uses spec.sources (multi-source) in place of spec.source. ArgoAppInfo reads spec.source.repoURL only (src/devops_cli/models/argo.py), and a multi-source Application has no spec.source.
On the homelab (2026-10-29), 16 of the 29 Applications use spec.sources, for example argocd (chart, values ref and git), and grafana, loki, traefik and argo-workflows (chart and values ref). All 16 show no repository.
Reproduction Steps
- Have an Argo CD Application with
spec.sources(for example a Helm chart source and arefsource for its values). - Run
uv run devops argo cd apps list.
Expected vs Actual Behavior
- Expected: the Repo column names each source of the Application (for example the chart repository and the values repository), or the first source, with a rule the help states.
- Actual: the Repo column is empty.
Environment Diagnostics
origin/main cabfcd43. Read-only kubectl -n argocd get applications -o json shows spec.source unset and spec.sources set on each of the 16.
Logs, Traces, or Terminal Output
devops argo cd apps list: argocd, argo-workflows, argocd-image-updater, dcgm-exporter, gitea, grafana, k8s-monitoring, loki, open-webui, otel-collector, prometheus, prometheus-operator-crds, pyroscope, qdrant, tempo and traefik show no repository. The single-source Applications (base, devops, llm and others) show theirs.
Existing Tool Considered
The Argo CD Application spec defines spec.sources as a list of the same source objects. The fix reads it in the existing model. Nothing new is built.
Proposed design
Problem statement
The command devops argo cd apps list shows an empty Repo column for every Argo CD Application that uses spec.sources (multi-source) instead of spec.source. The model reads only spec.source.repoURL. On the homelab, 16 of 29 Applications use spec.sources and all show no repository. The fix reads spec.sources[0].repoURL as a fallback in the existing model.
Acceptance criteria
Requirement: Single-source repo shown
When an Application has spec.source.repoURL, the Repo column SHALL show that URL.
Scenario: Application with spec.source set
- WHEN An Application JSON has
spec.source.repoURLset to a value andspec.sourcesabsent - THEN The Repo column shows the value of
spec.source.repoURL
Requirement: Multi-source first repo shown
When an Application has spec.sources and no spec.source, the Repo column SHALL show the repoURL of the first element of spec.sources.
Scenario: Application with spec.sources list
- WHEN An Application JSON has
spec.sourcesas a non-empty list andspec.sourceabsent - THEN The Repo column shows the
repoURLofspec.sources[0]
Requirement: No source yields empty repo
When an Application has neither spec.source nor spec.sources, the Repo column SHALL be empty.
Scenario: Application with no source fields
- WHEN An Application JSON has neither
spec.sourcenorspec.sources - THEN The Repo column is an empty string
Existing Tool Considered
No check has run. No external tool covers this need because it is a bug in the project's own model code. The fix adds a fallback read of spec.sources[0].repoURL in src/devops_cli/models/argo.py. The written cost is a few lines of code to build, keep and fix, well under one hour of elapsed time.
Key questions
- What value to show in the Repo column for a multi-source Application?: Show the
repoURLof the first element ofspec.sources. This matches the Argo CD CLI behavior and keeps the column narrow and predictable. (best practice) [sources: src/devops_cli/models/argo.py]- Chosen: First source repoURL. Matches Argo CD CLI behavior. Keeps the column narrow. The first source is the primary source by Argo CD convention.
- Rejected: All repoURLs joined by comma. Shows every source but makes the column very wide and hard to read in a table.
- Rejected: Leave empty. Preserves the current broken behavior. Does not fix the issue.
- Which methods in the model need the fallback read?: Two methods:
ArgoCDApp.from_api_itemandArgoResourceState.from_manifest, both insrc/devops_cli/models/argo.py. Both currently read onlyspec.source.repoURL. [sources: src/devops_cli/models/argo.py:40, src/devops_cli/models/argo.py:155]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Oct 29, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The command displays wrong data for Applications that use 'spec.sources' instead of 'spec.source'.The list command is incomplete for 12 of 29 Applications, but the data is still reachable via kubectl or the Argo CD UI.Users lose the repository column for multi-source Applications, which reduces the usefulness of the list command.The fix reads 'spec.sources' in the existing model file; no new component is built.devops-cli-service commentedon Oct 30, 2026
Status set to Ready at 07fb4c2 (see proposed design in issue body).
devops-cli-service commentedon Nov 1, 2026
Staged: branch
fix/2579-devops-argo-cd-apps-list-shows, draft pull request #3003. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:
These paths of the plan are no file on the default branch, and no group creates them:
tests/test_models_argo.py. A person checks that the plan names them right.docs(openspec): plan #2579 show repo for multi-source Argo apps (#3003)
64 remaining items
devops-cli-service commentedon Nov 4, 2026
Cleared the stop at job by the rule
digest: the runner image changed since the stop, from sha256:eb2c32f9c27c350eafb35b7f08c274621a0a05b95904b2185c667b9805b0d499 to sha256:ff7f81f8f5902c5ae4e48ed334bc83f842b51afb639ab71be65cb4240daadf01. The item is Planned again, and the Service takes it in the next round. The Service clears a stop one time for each runner image. A new stop on this image waits for a commentimplement: retry.feat(roadmap): ask for a smaller edit after a parser failure (#3737)
[-]fix(argo): devops argo cd apps list shows no repository for an Application with spec.sources[/-][+]fix(argo): show repo for multi-source Argo apps[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 81 characters, and the limit is 60. The type and the scope stay.
fix(argo): devops argo cd apps list shows no repository for an Application with spec.sourcesfix(argo): show repo for multi-source Argo appsdevops-cli-service commentedon Nov 6, 2026
Released in v0.71.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.71.1
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 19:47 UTC