Skip to content

Commit

Permalink
e2e: increase targetNamespace timeout 30s=>3m
Browse files Browse the repository at this point in the history
30s wasn't a reasonable amount of time to expect to get all the way from
Deployment to a completed reconcile loop, and we've been seeing a lot of
CI flakes as a result.
  • Loading branch information
2uasimojo committed Jun 17, 2022
1 parent f9e6e20 commit 44a4b16
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hack/e2e-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,13 @@ trap 'kill %1; save_hive_logs' EXIT
# Install Hive
IMG="${HIVE_IMAGE}" make deploy

# Wait for $HIVE_NS to appear, as subsequent test steps rely on it
# Wait for $HIVE_NS to appear, as subsequent test steps rely on it.
# Timeout needs to account for Deployment=>ReplicaSet=>Pod=>Container as well
# as the operator starting up and reconciling HiveConfig to create the
# targetNamespace.
echo -n "Waiting for namespace $HIVE_NS to appear"
i=0
while [[ $i -lt 30 ]]; do
while [[ $i -lt 180 ]]; do
oc get namespace $HIVE_NS >/dev/null 2>&1 && break
i=$((i+1))
echo -n .
Expand Down

0 comments on commit 44a4b16

Please sign in to comment.