Files
zeekayandHanzo Dev 84ee9fa0ce cd: kill the argo naming — binaries, packages, identifiers
Every command is cd-*: cd, cd-server, cd-repo-server,
cd-application-controller, cd-applicationset-controller, cd-cmp-server,
cd-commit-server, cd-dex, cd-git-ask-pass, cd-k8s-auth, cd-notification.
util/argo is util/cd; util/notification/argocd is util/notification/cd.

Preserved deliberately: github.com/argoproj/argocd-example-apps is an
EXTERNAL repo used as an e2e fixture, and notifications-engine + pkg/v2 are
real dependencies. Renaming a URL we do not own would break the tests.

Two bugs I made and caught, both from a careless sed:
- s/argo/cd/g turned 'argocd' into 'cdcd' in two directory names
- renaming the package declaration left every call site saying argo.X

go build ./... exit 0.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 16:00:25 -07:00

58 lines
2.9 KiB
YAML

tests:
- healthStatus:
status: Progressing
message: Initializing promotion strategy
inputPath: testdata/no-status.yaml
- healthStatus:
status: Progressing
message: Promotion strategy is being deleted
inputPath: testdata/deleting.yaml
- healthStatus:
status: Progressing
message: Promotion strategy is not ready yet
inputPath: testdata/no-ready-condition.yaml
- healthStatus:
status: Progressing
message: Waiting for promotion strategy spec update to be observed
inputPath: testdata/observed-generation-outdated.yaml
- healthStatus:
status: Degraded
message: "Promotion strategy reconciliation failed: Something went wrong"
inputPath: testdata/reconciliation-error.yaml
- healthStatus:
status: Degraded
message: Promotion strategy has no environments configured
inputPath: testdata/no-environments.yaml
- healthStatus:
status: Progressing
message: The active commit DRY SHA is missing or empty in environment 'dev'.
inputPath: testdata/active-dry-sha-missing.yaml
- healthStatus:
status: Progressing
message: "The proposed commit DRY SHA is missing or empty in environment 'dev'."
inputPath: testdata/proposed-dry-sha-missing.yaml
- healthStatus:
status: Progressing
message: "Promotion in progress for environment 'dev' from 'abc1234' to 'def5678': 1 pending, 0 successful, 1 failed. Pending commit statuses: test-pending. Failed commit statuses: test-failed. Hydrator has processed dry commit 'def5678'. "
inputPath: testdata/progressing-failed-pending.yaml
- healthStatus:
status: Healthy
message: All environments are up-to-date on commit 'abc1234'. Hydrator has processed dry commit 'abc1234'.
inputPath: testdata/all-healthy.yaml
- healthStatus:
status: Progressing
message: Not all environments have the same proposed commit SHA. This likely means the hydrator has not run for all environments yet.
inputPath: testdata/different-proposed-commits.yaml
- healthStatus:
status: Degraded
message: "Promotion strategy reconciliation failed (ChangeTransferPolicyNotReady): ChangeTransferPolicy \"strategy-environments-qal-usw2-27894e05\" is not Ready because \"ReconciliationError\": Reconciliation failed: failed to calculate ChangeTransferPolicy status: failed to get SHAs for proposed branch \"environments/qal-usw2-next\": exit status 128: fatal: 'origin/environments/qal-usw2-next' is not a commit and a branch 'environments/qal-usw2-next' cannot be created from it"
inputPath: testdata/missing-sha-and-not-ready.yaml
- healthStatus:
status: Progressing
message: "Promotion in progress for environment 'dev' from 'abc1234' to 'old1111': 0 pending, 0 successful, 0 failed. Hydrator has processed dry commit 'new9999'. "
inputPath: testdata/proposed-note-dry-sha-preferred.yaml
- healthStatus:
status: Healthy
message: All environments are up-to-date on commit '56057f1'. Hydrator has processed dry commit 'ab3c473'.
inputPath: testdata/no-op-rehydration-note-ahead.yaml