Skip to content

fix(argo): devops argo cd apps list shows no repository for an... - #3078

Closed
devops-cli-service[bot] wants to merge 3 commits into
mainfrom
fix/2579-devops-argo-cd-apps-list-shows
Closed

devops-cli-service[bot] wants to merge 3 commits into
mainfrom
fix/2579-devops-argo-cd-apps-list-shows

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2579

#2579 reports that devops argo cd apps list shows an empty Repo column for every Application that uses spec.sources (multi-source) in place of spec.source. The model reads only spec.source.repoURL, so 16 of 29 homelab Applications show no repository.

Change: openspec/changes/archive/2026-11-01-2579-devops-argo-cd-apps-list-shows/

@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

  • group 1 (Add tests for multi-source repo fallback): done, 22 model requests, commit fe11f202a07e
  • group 2 (Add spec.sources fallback to ArgoCDApp and ArgoResourceState): done, 15 model requests, commit 78529c08f790

@dan-petty

Copy link
Copy Markdown
Owner

Advisory pre-merge review (automated; a person decides).

Recommendation: hold. The fix is correct, but the new test file is in a forbidden place. A required check fails because of it.

Severity Where Problem Evidence Fix
blocker tests/test_models_argo.py The file sits at the tests/ root. The layout invariant allows 0 test files there. The required check "Tests & Coverage" fails. tests/invariants/test_source_tree.py:217 sets CONST_ROOT_TESTS_CEILING = 0. Check run 124870761692 on 9d26701: test_tests_mirror_source_tree_layout fails with assert 1 <= 0. A lens ran the same test on origin/main and it passed. Move the six tests to tests/models/ or into tests/commands/test_argo.py and tests/argo/test_argo_crd.py. Fix the paths in the archived plan. Run tests/invariants before the push.
minor PR title The title is 65 characters and ends with .... The limit is 60. The title becomes the squash subject. Title: fix(argo): devops argo cd apps list shows no repository for an... Use a short title, for example fix(argo): show repo for multi-source apps.
minor tests/test_models_argo.py No test covers these branches: both spec.source and spec.sources set, an empty sources list, a non-dict first item. The six tests use only: source set, sources only, neither. Add parametrized cases, mainly for the case where both fields are set.
minor commits ece9813, c4c15e9 The subjects are not Conventional Commits. Add tests for multi-source repo fallback (#2579). The squash uses the PR title, so the effect is small. Use test(argo): ... and fix(argo): ..., or rely on the corrected PR title.
nit src/devops_cli/models/argo.py The same 6-line fallback is in ArgoCDApp.from_api_item and ArgoResourceState.from_manifest. Two identical hunks in the diff. Optional: one private helper such as _primary_source(spec).
nit apps list help text Issue #2579 asks for a rule that the help states. The help is unchanged. The plan did not ask for it either. The diff does not touch src/devops_cli/commands/argo.py. Optional: add one sentence to the help.

What is good:

  • The behavior change is limited to repo_url. It applies only when spec.source has no repoURL and spec.sources is a non-empty list.
  • The two multi-source tests fail on origin/main (assert "" == "https://github.com/example/test-repo.git") and pass on the head. They are real fail-to-pass tests. They use no mocks.
  • The OpenSpec change is archived as renames. The new spec has the three requirements. No private data, no version or CHANGELOG edit.

Checks that I ran or read:

  • pytest tests/test_models_argo.py at the head: 6 passed.
  • The same file on origin/main: 2 failed, 4 passed.
  • ruff check, ruff format --check and mypy --strict on the changed Python files: pass.
  • pytest tests/invariants/test_source_tree.py::test_tests_mirror_source_tree_layout: fails at the head, passes on origin/main.
  • Existing argo tests (81): pass.
  • I did not re-run the full CI. The test job took 6m45s, which is above the 5-minute limit. This PR did not cause it.

The root cause is also a process gap. The implement step ran only the new test file and not the layout invariant. A guard that puts new tests in the mirror directory would stop this on the next item.

@dan-petty

Copy link
Copy Markdown
Owner

Closed so the Service can retry this item with the fixes merged since this Job ran.

Owner decision of 2026-11-02: "close and retry".

@dan-petty
dan-petty deleted the fix/2579-devops-argo-cd-apps-list-shows branch November 2, 2026 03:28
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.

fix(argo): show repo for multi-source Argo apps

1 participant