Skip to content

Commit df8c2a1

Browse files
CFSNMopenshift-merge-bot[bot]
authored andcommitted
adding clause to wait 90s when checking the kueue pods
1 parent 0b7a1a3 commit df8c2a1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ods_ci/tests/Resources/OCP.resource

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,14 @@ Wait For Pods To Be Ready
122122
... This keyword can also check for the expected number of the pod replicas using `${exp_replicas}`
123123
... argument.
124124
[Arguments] ${label_selector} ${namespace} ${timeout}=600s ${exp_replicas}=${NONE}
125+
${evaluating_kueue} = Evaluate "kueue" in "${label_selector}"
126+
IF ${evaluating_kueue}
127+
Sleep 90s reason=Waiting for the kueue pods to stabilize
128+
END
125129
Wait Until Keyword Succeeds ${timeout} 5s
126130
... Check If Pod Exists namespace=${namespace} label_selector=${label_selector}
127131
... status_only=${FALSE}
128132
${rc} ${out}= Run And Return Rc And Output
129-
... oc wait --for=condition=ready=true pod -l ${label_selector} -n ${namespace} --timeout=60s
130-
IF ${rc} != ${0}
131-
Log To Console
132-
... msg=Pod defined by selector "${label_selector}" in "${namespace}" namespace is not ready, trying a second time.
133-
END
134-
${rc} ${out}= Run And Return Rc And Output
135133
... oc wait --for=condition=ready=true pod -l ${label_selector} -n ${namespace} --timeout=${timeout}
136134
IF ${rc} != ${0}
137135
FAIL msg=Pod defined by selector "${label_selector}" in "${namespace}" namespace is not ready.

0 commit comments

Comments
 (0)