mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
The fork was already ours everywhere that matters — our image, our IAM (dex is not deployed), hanzo kv behind what the env still called REDIS. Only the vocabulary was upstream's: ARGOCD_* across the Go, the manifests, the docs and the plugin contract, and mkdocs still titled 'Argo CD' pointing at argoproj/argo-cd. ARGOCD_ -> CD_ and REDIS_ -> KV_ across 345 files, plus the 8 e2e/cmp fixtures that assert the plugin env contract — those had to move with the binary, which now emits CD_APP_NAME where they expected ARGOCD_APP_NAME. Left alone deliberately, because renaming them would be wrong: - util/helm/testdata/redis/ and gitops-engine/.../statefulset*.yaml are fixtures for a THIRD-PARTY chart named redis, not our config - util/kustomize/testdata/ likewise - generated.proto regenerates from types.go, which is already clean go build ./... exit 0. LOCKSTEP: the live StatefulSet sets 47 ARGOCD_* names the binary no longer reads. universe 4a5375735 carries the matching manifest change; they deploy together or the controller falls back to defaults. Co-authored-by: Hanzo Dev <[email protected]>
35 lines
1.3 KiB
Bash
Executable File
35 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
set -eux -o pipefail
|
|
|
|
# check for local installation of go-junit-report otherwise install locally
|
|
which go-junit-report || go install github.com/jstemmer/go-junit-report@latest
|
|
|
|
# check for local installation of gotestsum otherwise install locally
|
|
which gotestsum || go install gotest.tools/gotestsum@latest
|
|
|
|
TEST_RESULTS=${TEST_RESULTS:-test-results}
|
|
TEST_FLAGS=${TEST_FLAGS:-}
|
|
DIST_DIR=${DIST_DIR:-dist}
|
|
|
|
# Add DIST_DIR to PATH so binaries installed for argo are found first
|
|
export PATH="${DIST_DIR}:${PATH}"
|
|
|
|
if test "${CD_TEST_PARALLELISM:-}" != ""; then
|
|
TEST_FLAGS="$TEST_FLAGS -p $CD_TEST_PARALLELISM"
|
|
fi
|
|
if test "${CD_TEST_PARALLEL:-}" != ""; then
|
|
TEST_FLAGS="$TEST_FLAGS -parallel $CD_TEST_PARALLEL"
|
|
fi
|
|
if test "${CD_TEST_VERBOSE:-}" != ""; then
|
|
TEST_FLAGS="$TEST_FLAGS -v"
|
|
fi
|
|
|
|
mkdir -p "$TEST_RESULTS"
|
|
|
|
# `TEST_FLAGS` cannot be quoted as empty needs to evaluate to 0 arguments.
|
|
# `TEST_FLAGS` cannot be turned into array without backward incompatible change of script input
|
|
# shellcheck disable=SC2086
|
|
GODEBUG="tarinsecurepath=0,zipinsecurepath=0" \
|
|
gotestsum --rerun-fails-report=rerunreport.txt --junitfile="$TEST_RESULTS/junit.xml" --format=testname \
|
|
--rerun-fails="$RERUN_FAILS" --packages="${TEST_MODULE:-$PACKAGES}" -- -cover $TEST_FLAGS "$@"
|