-
Notifications
You must be signed in to change notification settings - Fork 196
ci/openshift-ci: Use loop instead of curl --retry-all-errors #5806
Conversation
.ci/openshift-ci/run_smoke_test.sh
Outdated
@@ -56,7 +56,11 @@ else | |||
port=$(oc get service/http-server-service -o jsonpath='{.spec.ports[0].nodePort}') | |||
fi | |||
|
|||
curl "${host}:${port}${hello_file}" -s -o hello_msg.txt --retry 60 --retry-delay 1 --retry-all-errors | |||
rm -f hello_msg.txt | |||
for i in $(seq 60); do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @ldoktor , good catch.
One suggestion is to use the waitForProcess
(e.g. waitForProcess $wait_time $sleep_time "$cmd"
) utility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
Changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ldoktor !
@beraldoleal mind to review this one? |
The --retry-all-errors argument is not supported on the CI runners, use a busy loop instead. Fixes: kata-containers#5802 Signed-off-by: Lukáš Doktor <[email protected]>
To avoid using pre-existing file ensure it's not present by deleting it. Signed-off-by: Lukáš Doktor <[email protected]>
Changes: Added the fixes to commit a message |
/test |
Changes: Removed the controversial commit that treats |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @ldoktor !
/test |
The --retry-all-errors argument is not supported on the CI runners, use a busy loop instead.