Files
zeekay 0d4229f4af build, e2e: drop stale argo/argocd naming from dev and test tooling
The release Dockerfile's shipped binaries and symlinks were already
hanzocd-*, but the build stages feeding them weren't: stage names
(argocd-base/-ui/-build), the in-container build user/group/home
(argocd, uid 999 — renamed in place, same uid so no ownership fallout),
and the GOPATH-style build WORKDIR (.../argoproj/argo-cd) all still
carried the pre-fork name. Same in Dockerfile.dev, hack/Dockerfile.dev-tools,
and ui/scripts/build_docker.sh.

The Makefile and both Procfiles (root + test/container) had the matching
half of this: CD_BINARY_NAME values that don't match any case in
cmd/main.go's dispatch switch (all hanzocd-*), a --argocd-repo-server
flag no command registers (the real one is --cd-repo-server), a
`kubectl get secret argocd-redis` that can never succeed (the Secret
the redis manifest actually mounts is hanzocd-redis), `kubectl create ns
argocd`/argocd-e2e(-external(-2)) that don't match the namespaces
test/e2e/fixture actually uses (cd/cd-e2e/cd-e2e-external(-2)), a
TEST_MODULE filter matching the pre-fork gitops-engine import path only,
and IMAGE_REGISTRY/IMAGE_NAMESPACE/IMAGE_REPOSITORY defaults that silently
point an override-less `make image` at quay.io/argoproj/argocd instead of
ghcr.io/hanzoai/cd. Also folded three different stale /tmp scratch-dir
spellings (argocd-local, argocd-e2e-env, argo-e2e) into the one each
already-correct sibling file used, so Procfile/Makefile/reaper.sh/
start-git.sh/fixture.go/nginx.conf all agree again — see LLM.md for the
full map, it's not worth re-deriving twice.

Deleted hack/bump-major-version.sh: it bumps a github.com/.../vN
import-path suffix, a scheme this module has never used (no /v2, /v3 —
we don't bump Go majors) and nothing else in the repo references it.
2026-09-05 14:58:35 -07:00

15 lines
5.2 KiB
Plaintext

controller: [ "$BIN_MODE" = 'true' ] && COMMAND=./dist/hanzocd || COMMAND='go run ./cmd/main.go' && sh -c "[ -f /tmp/cd-e2e-env ] && . /tmp/cd-e2e-env; GOCOVERDIR=${CD_COVERAGE_DIR:-/tmp/coverage/app-controller} HOSTNAME=testappcontroller-1 FORCE_LOG_COLORS=1 CD_FAKE_IN_CLUSTER=true CD_TLS_DATA_PATH=${CD_TLS_DATA_PATH:-/tmp/cd-local/tls} CD_SSH_DATA_PATH=${CD_SSH_DATA_PATH:-/tmp/cd-local/ssh} CD_BINARY_NAME=hanzocd-application-controller $COMMAND --loglevel debug --redis localhost:${CD_E2E_KV_PORT:-6379} --repo-server localhost:${CD_E2E_REPOSERVER_PORT:-8081} --commit-server localhost:${CD_E2E_COMMITSERVER_PORT:-8086} --otlp-address=${CD_OTLP_ADDRESS} --application-namespaces=${CD_APPLICATION_NAMESPACES:-''} --server-side-diff-enabled=${CD_APPLICATION_CONTROLLER_SERVER_SIDE_DIFF:-'false'} --hydrator-enabled=${CD_HYDRATOR_ENABLED:='false'}"
api-server: [ "$BIN_MODE" = 'true' ] && COMMAND=./dist/hanzocd || COMMAND='go run ./cmd/main.go' && sh -c "GOCOVERDIR=${CD_COVERAGE_DIR:-/tmp/coverage/api-server} FORCE_LOG_COLORS=1 CD_FAKE_IN_CLUSTER=true CD_TLS_DATA_PATH=${CD_TLS_DATA_PATH:-/tmp/cd-local/tls} CD_SSH_DATA_PATH=${CD_SSH_DATA_PATH:-/tmp/cd-local/ssh} CD_BINARY_NAME=hanzocd-server $COMMAND --loglevel debug --redis localhost:${CD_E2E_KV_PORT:-6379} --disable-auth=${CD_E2E_DISABLE_AUTH:-'true'} --insecure --dex-server http://localhost:${CD_E2E_DEX_PORT:-5556} --repo-server localhost:${CD_E2E_REPOSERVER_PORT:-8081} --port ${CD_E2E_APISERVER_PORT:-8080} --otlp-address=${CD_OTLP_ADDRESS} --application-namespaces=${CD_APPLICATION_NAMESPACES:-''} --hydrator-enabled=${CD_HYDRATOR_ENABLED:='false'}"
dex: sh -c "CD_BINARY_NAME=hanzocd-dex go run github.com/hanzoai/cd/cmd gendexcfg -o `pwd`/dist/dex.yaml && (test -f dist/dex.yaml || { echo 'Failed to generate dex configuration'; exit 1; }) && docker run --rm -p ${CD_E2E_DEX_PORT:-5556}:${CD_E2E_DEX_PORT:-5556} -v `pwd`/dist/dex.yaml:/dex.yaml ghcr.io/dexidp/dex:v2.45.0 dex serve /dex.yaml" # renovate: datasource=github-releases depName=dexidp/dex
redis: hack/start-redis-with-password.sh
repo-server: [ "$BIN_MODE" = 'true' ] && COMMAND=./dist/hanzocd || COMMAND='go run ./cmd/main.go' && sh -c "export PATH=\$(pwd)/dist:\$PATH && [ -n \"\$CD_GIT_CONFIG\" ] && export GIT_CONFIG_GLOBAL=\$CD_GIT_CONFIG && export GIT_CONFIG_NOSYSTEM=1; GOCOVERDIR=${CD_COVERAGE_DIR:-/tmp/coverage/repo-server} FORCE_LOG_COLORS=1 CD_FAKE_IN_CLUSTER=true CD_GNUPGHOME=${CD_GNUPGHOME:-/tmp/cd-local/gpg/keys} CD_PLUGINSOCKFILEPATH=${CD_PLUGINSOCKFILEPATH:-./test/cmp} CD_GPG_DATA_PATH=${CD_GPG_DATA_PATH:-/tmp/cd-local/gpg/source} CD_TLS_DATA_PATH=${CD_TLS_DATA_PATH:-/tmp/cd-local/tls} CD_SSH_DATA_PATH=${CD_SSH_DATA_PATH:-/tmp/cd-local/ssh} CD_BINARY_NAME=hanzocd-repo-server CD_GPG_ENABLED=${CD_GPG_ENABLED:-false} $COMMAND --loglevel debug --port ${CD_E2E_REPOSERVER_PORT:-8081} --redis localhost:${CD_E2E_KV_PORT:-6379} --otlp-address=${CD_OTLP_ADDRESS}"
cmp-server: [ "$CD_E2E_TEST" = 'true' ] && exit 0 || [ "$BIN_MODE" = 'true' ] && COMMAND=./dist/hanzocd || COMMAND='go run ./cmd/main.go' && sh -c "FORCE_LOG_COLORS=1 CD_FAKE_IN_CLUSTER=true CD_BINARY_NAME=hanzocd-cmp-server CD_PLUGINSOCKFILEPATH=${CD_PLUGINSOCKFILEPATH:-./test/cmp} $COMMAND --config-dir-path ./test/cmp --loglevel debug --otlp-address=${CD_OTLP_ADDRESS}"
commit-server: [ "$BIN_MODE" = 'true' ] && COMMAND=./dist/hanzocd || COMMAND='go run ./cmd/main.go' && sh -c "GOCOVERDIR=${CD_COVERAGE_DIR:-/tmp/coverage/commit-server} FORCE_LOG_COLORS=1 CD_BINARY_NAME=hanzocd-commit-server $COMMAND --loglevel debug --port ${CD_E2E_COMMITSERVER_PORT:-8086}"
ui: sh -c 'cd ui && ${CD_E2E_PNPM_CMD:-pnpm} start'
git-server: test/fixture/testrepos/start-git.sh
helm-registry: test/fixture/testrepos/start-helm-registry.sh
oci-registry: test/fixture/testrepos/start-authenticated-helm-registry.sh
dev-mounter: [ "$CD_E2E_TEST" != "true" ] && go run hack/dev-mounter/main.go --configmap hanzocd-ssh-known-hosts-cm=${CD_SSH_DATA_PATH:-/tmp/cd-local/ssh} --configmap hanzocd-tls-certs-cm=${CD_TLS_DATA_PATH:-/tmp/cd-local/tls} --configmap hanzocd-gpg-keys-cm=${CD_GPG_DATA_PATH:-/tmp/cd-local/gpg/source}
applicationset-controller: [ "$BIN_MODE" = 'true' ] && COMMAND=./dist/hanzocd || COMMAND='go run ./cmd/main.go' && sh -c "GOCOVERDIR=${CD_COVERAGE_DIR:-/tmp/coverage/applicationset-controller} FORCE_LOG_COLORS=4 CD_FAKE_IN_CLUSTER=true CD_TLS_DATA_PATH=${CD_TLS_DATA_PATH:-/tmp/cd-local/tls} CD_SSH_DATA_PATH=${CD_SSH_DATA_PATH:-/tmp/cd-local/ssh} CD_BINARY_NAME=hanzocd-applicationset-controller CD_APPLICATIONSET_CONTROLLER_ENABLE_PROGRESSIVE_SYNCS=${CD_APPLICATIONSET_CONTROLLER_ENABLE_PROGRESSIVE_SYNCS:-true} $COMMAND --loglevel debug --metrics-addr localhost:12345 --probe-addr localhost:12346 --webhook-addr localhost:7001 --cd-repo-server localhost:${CD_E2E_REPOSERVER_PORT:-8081}"
notification: [ "$BIN_MODE" = 'true' ] && COMMAND=./dist/hanzocd || COMMAND='go run ./cmd/main.go' && sh -c "GOCOVERDIR=${CD_COVERAGE_DIR:-/tmp/coverage/notification} FORCE_LOG_COLORS=4 CD_FAKE_IN_CLUSTER=true CD_TLS_DATA_PATH=${CD_TLS_DATA_PATH:-/tmp/cd-local/tls} CD_BINARY_NAME=hanzocd-notifications $COMMAND --loglevel debug --application-namespaces=${CD_APPLICATION_NAMESPACES:-''} --self-service-notification-enabled=${CD_NOTIFICATION_CONTROLLER_SELF_SERVICE_NOTIFICATION_ENABLED:-'false'}"