You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ci: dedicated UT jobs for CA and VPA
* changes to ca and vpa to trigger tests
* missing ;;
* rename test configs to Cluster Autoscaler and Vertical Pod Autoscaler
# TODO: #8127 - Use default analyzers set by `go test` to include `printf` analyzer.
34
+
# Default analyzers that go test runs according to https://github.com/golang/go/blob/52624e533fe52329da5ba6ebb9c37712048168e0/src/cmd/go/internal/test/test.go#L649
35
+
# This doesn't include the `printf` analyzer until cluster-autoscaler libraries are updated.
go test -count=1 -race $(go list ./... | grep -v /vendor/ | grep -v vertical-pod-autoscaler/e2e | grep -v cluster-autoscaler/apis)
43
+
popd
44
+
pushd${CONTRIB_ROOT}/vertical-pod-autoscaler/e2e
45
+
go test -run=None ./...
46
+
popd
35
47
;;
36
-
"test")
48
+
"addon-resizer")
49
+
pushd${CONTRIB_ROOT}/addon-resizer
50
+
godep go test -race $(go list ./... | grep -v /vendor/ | grep -v vertical-pod-autoscaler/e2e)
51
+
popd
37
52
;;
38
53
*)
39
54
echo"invalid subcommand: ${CMD}"
40
55
exit 1
41
56
;;
42
57
esac
43
-
44
-
forproject_namein${PROJECT_NAMES[*]};do
45
-
(
46
-
export GO111MODULE=auto
47
-
project=${CONTRIB_ROOT}/${project_name}
48
-
echo"${CMD}ing ${project}"
49
-
cd"${project}"
50
-
case"${CMD}"in
51
-
"test")
52
-
if [[ -n$(find . -name "Godeps.json") ]];then
53
-
godep go test -race $(go list ./... | grep -v /vendor/ | grep -v vertical-pod-autoscaler/e2e)
54
-
else
55
-
go test -count=1 -race $(go list ./... | grep -v /vendor/ | grep -v vertical-pod-autoscaler/e2e | grep -v cluster-autoscaler/apis)
56
-
fi
57
-
;;
58
-
*)
59
-
godep go "${CMD}" ./...
60
-
;;
61
-
esac
62
-
)
63
-
done;
64
-
65
-
if [ "${CMD}"="build" ] || [ "${CMD}"=="test" ];then
66
-
pushd${CONTRIB_ROOT}/vertical-pod-autoscaler/e2e
67
-
go test -run=None ./...
68
-
popd
69
-
pushd${CONTRIB_ROOT}/cluster-autoscaler/
70
-
# TODO: #8127 - Use default analyzers set by `go test` to include `printf` analyzer.
71
-
# Default analyzers that go test runs according to https://github.com/golang/go/blob/52624e533fe52329da5ba6ebb9c37712048168e0/src/cmd/go/internal/test/test.go#L649
72
-
# This doesn't include the `printf` analyzer until cluster-autoscaler libraries are updated.
0 commit comments