Files
argo-cd/hack/test.sh
Jesse Suen 476b09cbbf feat: improve api-server and controller performance (#3222)
* group read comparison settings during app reconciliation
* Reduce lock contention in clusterInfo::ensureSynced(). Add getRepoObj stats
* Remove additional source of lock contention
* Exclude the coordination.k8s.io/Lease resource

Co-authored-by: Alexander Matyushentsev <amatyushentsev@gmail.com>
2020-03-16 11:51:59 -07:00

24 lines
531 B
Bash
Executable File

#!/bin/bash
set -eux -o pipefail
# make sure apiclient does not depend on packr
which godepgraph || go get github.com/kisielk/godepgraph
if godepgraph -s github.com/argoproj/argo-cd/pkg/apiclient | grep packr; then
echo apiclient package should not depend on packr
exit 1
fi
TEST_RESULTS=${TEST_RESULTS:-test-results}
mkdir -p $TEST_RESULTS
report() {
set -eux -o pipefail
go-junit-report < $TEST_RESULTS/test.out > $TEST_RESULTS/junit.xml
}
trap 'report' EXIT
go test -failfast $* 2>&1 | tee $TEST_RESULTS/test.out