File tree Expand file tree Collapse file tree 2 files changed +7136
-1646
lines changed Expand file tree Collapse file tree 2 files changed +7136
-1646
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,27 @@ if [[ "${GOVC_URL:-}" == "10.2.224.4" ]]; then
137
137
E2E_CONF_OVERRIDE_FILE=" $( pwd) /test/e2e/config/config-overrides-mirror-prow.yaml"
138
138
fi
139
139
140
+ # Ensure vSphere is reachable
141
+ function wait_for_vsphere_reachable() {
142
+ local n=0
143
+ until [ $n -ge 30 ]; do
144
+ curl -s -v " https://${VSPHERE_SERVER} /sdk" --connect-timeout 2 -k && RET=$? || RET=$?
145
+ if [[ " $RET " -eq 0 ]]; then
146
+ break
147
+ fi
148
+ n=$(( n + 1 ))
149
+ echo " Failed to reach https://${VSPHERE_SERVER} /sdk. Retrying in 1s ($n /30)"
150
+ sleep 1
151
+ done
152
+ return " $RET "
153
+ }
154
+ # Only run the boskos/check for IPAM when we need them (not for vcsim)
155
+ if [[ ! " ${GINKGO_FOCUS:- } " =~ $RE_VCSIM ]]; then
156
+ wait_for_vsphere_reachable
157
+ fi
158
+
140
159
# Make tests run in-parallel
141
- export GINKGO_NODES=5
160
+ export GINKGO_NODES=4
142
161
143
162
# Only run the boskos/check for IPAM when we need them (not for vcsim)
144
163
if [[ ! " ${GINKGO_FOCUS:- } " =~ $RE_VCSIM ]]; then
You can’t perform that action at this time.
0 commit comments