mirror of
https://github.com/hanzoai/cd.git
synced 2026-10-30 14:56:45 +00:00
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.
65 lines
2.7 KiB
Bash
Executable File
65 lines
2.7 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# Should point to the Hanzo CD API endpoint on the cluster
|
|
if test "${CD_SERVER}" = ""; then
|
|
echo "Please set CD_SERVER to the remote Hanzo CD API endpoint to test." >&2
|
|
exit 1
|
|
fi
|
|
|
|
# CD_E2E_REMOTE must be set to 'true' in order for remote tests to work
|
|
export CD_E2E_REMOTE=true
|
|
|
|
# The timeout for running the test suite (duration)
|
|
export CD_E2E_TEST_TIMEOUT=2h
|
|
|
|
# The default timeout for certain operations (such as sync)
|
|
export CD_E2E_DEFAULT_TIMEOUT=30
|
|
|
|
# Set CD_E2E_NAMESPACE to the namespace the Hanzo CD we're testing against is
|
|
# running in. Defaults to "cd-e2e"
|
|
export CD_E2E_NAMESPACE="${CD_E2E_NAMESPACE:-cd-e2e}"
|
|
|
|
# Name prefix the operator sets on resources created for Hanzo CD instance. This
|
|
# is usually also the name of the instance itself.
|
|
export CD_E2E_NAME_PREFIX="${CD_E2E_NAME_PREFIX:-}"
|
|
|
|
# This is to skip some (deprecated) tests
|
|
export CD_E2E_K3S=true
|
|
|
|
# Configuration for skipping certain classes of tests
|
|
|
|
# GnuPG features not yet available with GitOps Operator
|
|
export CD_E2E_SKIP_GPG="${CD_E2E_SKIP_GPG:-false}"
|
|
# Some tests do not work OOTB with OpenShift
|
|
export CD_E2E_SKIP_OPENSHIFT="${CD_E2E_SKIP_OPENSHIFT:-false}"
|
|
# Skip Helm tests
|
|
export CD_E2E_SKIP_HELM="${CD_E2E_SKIP_HELM:-false}"
|
|
# Skip Ksonnet tests
|
|
export CD_E2E_SKIP_KSONNET="${CD_E2E_SKIP_KSONNET:-false}"
|
|
|
|
## ====================================================
|
|
# no changes below this line required
|
|
## ====================================================
|
|
|
|
# Unauthenticated URLs for pushing from CI
|
|
#
|
|
# Use `kubectl port-forward service/cd-e2e-server 9081:9081` to set up the
|
|
# listener required for this.
|
|
export CD_E2E_GIT_SERVICE="http://127.0.0.1:9081/cd-e2e/testdata.git"
|
|
export CD_E2E_HELM_SERVICE="http://127.0.0.1:9081/helm-repo"
|
|
export CD_E2E_GIT_SERVICE_SUBMODULE="http://127.0.0.1:9081/cd-e2e/submodule.git"
|
|
export CD_E2E_GIT_SERVICE_SUBMODULE_PARENT="http://127.0.0.1:9081/cd-e2e/submoduleParent.git"
|
|
|
|
# URLs used during testing - usually no need to change those
|
|
export CD_E2E_REPO_SSH="ssh://root@cd-e2e-server:2222/tmp/cd-e2e/testdata.git"
|
|
export CD_E2E_REPO_SSH_SUBMODULE="ssh://root@cd-e2e-server:2222/tmp/cd-e2e/submodule.git"
|
|
export CD_E2E_REPO_SSH_SUBMODULE_PARENT="ssh://root@cd-e2e-server:2222/tmp/cd-e2e/submoduleParent.git"
|
|
export CD_E2E_REPO_HTTPS="https://cd-e2e-server:9443/cd-e2e/testdata.git"
|
|
export CD_E2E_REPO_HTTPS_CLIENT_CERT="https://cd-e2e-server:9444/cd-e2e/testdata.git"
|
|
export CD_E2E_REPO_HTTPS_SUBMODULE="https://cd-e2e-server:9443/cd-e2e/submodule.git"
|
|
export CD_E2E_REPO_HTTPS_SUBMODULE_PARENT="https://cd-e2e-server:9443/cd-e2e/submoduleParent.git"
|
|
export CD_E2E_REPO_HELM="https://cd-e2e-server:9444/helm-repo"
|
|
export CD_E2E_REPO_DEFAULT="http://cd-e2e-server:9081/cd-e2e/testdata.git"
|
|
|
|
"$@"
|