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
@@ -119,16 +114,19 @@ if [[ "$DISABLE_METRICS" == "" ]]; then
119
114
120
115
fi
121
116
122
-
set -eu
117
+
set -e
123
118
124
119
if [[ "$DISABLE_METRICS"=="" ]];then
125
120
121
+
set -u
122
+
126
123
INITIAL_GET_REQUESTS=$GET_REQUESTS
127
124
INITIAL_PUT_REQUESTS=$PUT_REQUESTS
128
125
INITIAL_POST_REQUESTS=$POST_REQUESTS
129
126
INITIAL_ERROR_RECONCILES=$ERROR_RECONCILES
130
127
INITIAL_SUCCESS_RECONCILES=$SUCCESS_RECONCILES
131
128
129
+
set +u
132
130
fi
133
131
134
132
@@ -200,6 +198,8 @@ sanity_test_metrics_data() {
200
198
exit 1
201
199
202
200
fi
201
+
202
+
set +u
203
203
}
204
204
205
205
if [[ "$DISABLE_METRICS"=="" ]];then
@@ -219,8 +219,6 @@ if [ -f "/tmp/e2e-operator-run.log" ]; then
219
219
# Grep the log for unexpected errors
220
220
# - Ignore errors that are expected to occur
221
221
222
-
set +u # allow undefined vars
223
-
224
222
UNEXPECTED_ERRORS_FOUND_TEXT=`cat /tmp/e2e-operator-run.log | grep "ERROR"| grep -v "because it is being terminated"| grep -v "the object has been modified; please apply your changes to the latest version and try again"| grep -v "unable to fetch"| grep -v "StorageError"| grep -v "client rate limiter Wait returned an error: context canceled"| grep -v "failed to reconcile Rollout's ClusterRoleBinding"| grep -v "clusterrolebindings.rbac.authorization.k8s.io \"argo-rollouts\" already exists"`
0 commit comments