From 9a868766eeac0375c23100fc1bc9e0638bdcb827 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Fri, 15 Nov 2019 10:38:18 -0500 Subject: [PATCH] Enable mutation detection --- hack/make-rules/test-cmd.sh | 8 ++++++++ hack/make-rules/test-e2e-node.sh | 8 ++++++++ hack/make-rules/test-integration.sh | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/hack/make-rules/test-cmd.sh b/hack/make-rules/test-cmd.sh index e22d78e7a80..b8adc81af19 100755 --- a/hack/make-rules/test-cmd.sh +++ b/hack/make-rules/test-cmd.sh @@ -21,6 +21,14 @@ set -o errexit set -o nounset set -o pipefail +# start the cache mutation detector by default so that cache mutators will be found +KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}" +export KUBE_CACHE_MUTATION_DETECTOR + +# panic the server on watch decode errors since they are considered coder mistakes +KUBE_PANIC_WATCH_DECODE_ERROR="${KUBE_PANIC_WATCH_DECODE_ERROR:-true}" +export KUBE_PANIC_WATCH_DECODE_ERROR + KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../.. source "${KUBE_ROOT}/hack/lib/init.sh" source "${KUBE_ROOT}/hack/lib/test.sh" diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh index 0dba6319ca5..6cfc2d1d6e7 100755 --- a/hack/make-rules/test-e2e-node.sh +++ b/hack/make-rules/test-e2e-node.sh @@ -17,6 +17,14 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../.. source "${KUBE_ROOT}/hack/lib/init.sh" +# start the cache mutation detector by default so that cache mutators will be found +KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}" +export KUBE_CACHE_MUTATION_DETECTOR + +# panic the server on watch decode errors since they are considered coder mistakes +KUBE_PANIC_WATCH_DECODE_ERROR="${KUBE_PANIC_WATCH_DECODE_ERROR:-true}" +export KUBE_PANIC_WATCH_DECODE_ERROR + focus=${FOCUS:-""} skip=${SKIP-"\[Flaky\]|\[Slow\]|\[Serial\]"} # The number of tests that can run in parallel depends on what tests diff --git a/hack/make-rules/test-integration.sh b/hack/make-rules/test-integration.sh index 4dd50ce5ee6..88647f8afd2 100755 --- a/hack/make-rules/test-integration.sh +++ b/hack/make-rules/test-integration.sh @@ -21,6 +21,14 @@ set -o pipefail KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../.. source "${KUBE_ROOT}/hack/lib/init.sh" +# start the cache mutation detector by default so that cache mutators will be found +KUBE_CACHE_MUTATION_DETECTOR="${KUBE_CACHE_MUTATION_DETECTOR:-true}" +export KUBE_CACHE_MUTATION_DETECTOR + +# panic the server on watch decode errors since they are considered coder mistakes +KUBE_PANIC_WATCH_DECODE_ERROR="${KUBE_PANIC_WATCH_DECODE_ERROR:-true}" +export KUBE_PANIC_WATCH_DECODE_ERROR + # Give integration tests longer to run by default. KUBE_TIMEOUT=${KUBE_TIMEOUT:--timeout=600s} KUBE_INTEGRATION_TEST_MAX_CONCURRENCY=${KUBE_INTEGRATION_TEST_MAX_CONCURRENCY:-"-1"}