various ginkgo tweaks
1. Remove deprecated args (progress, slow spec threshold) 2. Disable colors in CI Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
This commit is contained in:
parent
abfc9b7da8
commit
f8bee19c04
@ -36,7 +36,18 @@ warn=
|
||||
wait=
|
||||
greencheck=
|
||||
redcross=
|
||||
if ! printenv NO_COLOR >/dev/null; then
|
||||
|
||||
should_color() {
|
||||
if [[ "${CI:-}" == "true" ]]; then
|
||||
return 1
|
||||
elif [[ "${NO_COLOR:-}" ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
if should_color >/dev/null; then
|
||||
red="\033[0;31m"
|
||||
green="\033[0;32m"
|
||||
yel="\033[0;33m"
|
||||
|
||||
@ -15,5 +15,13 @@
|
||||
# limitations under the License.
|
||||
|
||||
set -o errexit
|
||||
|
||||
trap 'make kind-logs' EXIT
|
||||
make --no-print-directory e2e FLAKE_ATTEMPTS=2 K8S_VERSION="$(K8S_VERSION)"
|
||||
|
||||
# Note: We set CI here, even though it should be set by Prow, which is the cert-manager CI test runner
|
||||
# See the list of defined variables here: https://docs.prow.k8s.io/docs/jobs/#job-environment-variables
|
||||
# We explicitly set CI here because it helps with local testing
|
||||
# (i.e. "I want to run the exact same e2e test that will be run in CI")
|
||||
# and because it allows us to be explicit about where it's getting set when we call "make e2e-ci"
|
||||
|
||||
make --no-print-directory e2e FLAKE_ATTEMPTS=2 CI=true K8S_VERSION="$(K8S_VERSION)"
|
||||
|
||||
32
make/e2e.sh
32
make/e2e.sh
@ -69,12 +69,18 @@ BINDIR=${BINDIR:-$_default_bindir}
|
||||
# [5]: https://prow.build-infra.jetstack.net/view/gs/jetstack-logs/pr-logs/pull/cert-manager_cert-manager/4968/pull-cert-manager-make-e2e-v1-23/1507011895024947200
|
||||
# [6]: https://prow.build-infra.jetstack.net/view/gs/jetstack-logs/pr-logs/pull/cert-manager_cert-manager/4968/pull-cert-manager-make-e2e-v1-23/1507019887451574272
|
||||
# [7]: https://prow.build-infra.jetstack.net/view/gs/jetstack-logs/pr-logs/pull/cert-manager_cert-manager/4968/pull-cert-manager-make-e2e-v1-23/1507040653668782080
|
||||
|
||||
nodes=20
|
||||
|
||||
flake_attempts=1
|
||||
|
||||
ginkgo_skip=
|
||||
ginkgo_focus=
|
||||
|
||||
feature_gates=AdditionalCertificateOutputFormats=true,ExperimentalCertificateSigningRequestControllers=true,ExperimentalGatewayAPISupport=true,LiteralCertificateSubject=true
|
||||
|
||||
artifacts="./$BINDIR/artifacts"
|
||||
|
||||
help() {
|
||||
cat <<EOF | color ""
|
||||
Runs the end-to-end test suite against an already configured kind cluster.
|
||||
@ -170,22 +176,28 @@ if [[ "${ginkgo_args[*]}" =~ ginkgo.focus ]]; then
|
||||
ginkgo_args+=(--ginkgo.v --test.v)
|
||||
fi
|
||||
|
||||
ginkgo_color=
|
||||
|
||||
if ! should_color; then
|
||||
ginkgo_color="--no-color"
|
||||
fi
|
||||
|
||||
mkdir -p "$artifacts"
|
||||
|
||||
export CGO_ENABLED=0
|
||||
|
||||
trace ginkgo \
|
||||
-tags=e2e_test \
|
||||
-procs="$nodes" \
|
||||
-output-dir="$artifacts" \
|
||||
-junit-report="junit__01.xml" \
|
||||
-flake-attempts="$flake_attempts" \
|
||||
-timeout="24h" \
|
||||
--tags=e2e_test \
|
||||
--procs="$nodes" \
|
||||
--output-dir="$artifacts" \
|
||||
--junit-report="junit__01.xml" \
|
||||
--flake-attempts="$flake_attempts" \
|
||||
--timeout="1h" \
|
||||
$ginkgo_color \
|
||||
-v \
|
||||
-randomize-all \
|
||||
-progress \
|
||||
-trace \
|
||||
-slow-spec-threshold="${GINKGO_SLOW_SPEC_THRESHOLD:-300s}" \
|
||||
--randomize-all \
|
||||
--trace \
|
||||
--poll-progress-after=60s \
|
||||
./test/e2e/ \
|
||||
-- \
|
||||
--repo-root="$PWD" \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user