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
{{ message }}
Repository navigation
Commit 96b94e4
Browse filesBrowse the repository at this point in the historyBrowse files
CI: in-cluster scaler tests poll their dependency instead of sleeping between checks (#8153)
Five scaler tests that run without cloud credentials each waited for a
dependency with a hand-rolled loop: a fixed sleep, a check, and another
sleep if the check failed. This replaces those loops with KedaEventually,
so the wait ends when the dependency answers rather than at the next tick,
and a failure names what the last attempt saw rather than just that the
attempts ran out.
- activemq: the broker health query dropped its 10s head start; the loop
kept its 10-minute budget and 10s interval. An exec that fails is now
returned as the reason instead of being discarded.
- solr: same shape, same 1-minute budget and 5s interval, and it is called
twice, before and after the restart that enables BasicAuth.
- metrics_api: the recursive retry (5 x 5s, with a log line claiming 1s)
is one wait for every metrics-server pod to be running with an IP. It
is the only wait the test has on that Deployment, so the budget is
2 minutes to absorb scheduling ten replicas on a cold node.
- elastic_forecast: two deadline loops keep their budgets (3 minutes) and
intervals (3s and 5s). An exec or JSON error is returned as the reason
rather than skipped.
- couchdb: the 10s "wait until client is ready" becomes WaitForPodReady on
the client pod, which is what the exec that follows actually needs.
Sleeps under tests/scalers: 38 -> 31. None of these tests need external
credentials, so they are the ones that reach OpenShift CI.
Relates to #7991
Signed-off-by: Mikhail Fedosin <mfedosin@redhat.com>
returnretryFunc("No pods found with the given selector.")
294
-
}
295
293
296
-
iflen(pods.Items) !=nbReplicasForMetricsServer {
297
-
returnretryFunc(fmt.Sprintf("Number of replicas of metrics server (%d) does not match expected value (%d).", len(pods.Items), nbReplicasForMetricsServer))
0 commit comments