-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make openqa-cli retry also on connection errors #5359
Conversation
When making openqa-cli requests, we try to be more patient. os-autoinst/openQA#5359 Will make sure also connection timeouts will be retried. Issue: ihttps://progress.opensuse.org/issues/138545
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5359 +/- ##
=======================================
Coverage 98.32% 98.32%
=======================================
Files 389 389
Lines 37326 37330 +4
=======================================
+ Hits 36700 36704 +4
Misses 626 626 ☔ View full report in Codecov by Sentry. |
t/43-cli-api.t
Outdated
@@ -60,6 +60,7 @@ my @host = ('--host', $host); | |||
# Default options for authentication tests | |||
my @auth = ('--apikey', 'ARTHURKEY01', '--apisecret', 'EXCALIBUR', @host); | |||
|
|||
$ENV{MOJO_CONNECT_TIMEOUT} = 1; |
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.
does this mean waiting 1s in tests additionally?
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.
Actually we don't need it. I think because "Connection refused" will return immediately in this case. So I removed it again.
When making openqa-cli requests, we try to be more patient. os-autoinst/openQA#5359 Will make sure also connection timeouts will be retried. Issue: https://progress.opensuse.org/issues/138545
There may be temporary network problems or an overloaded webui. In those cases we also want to retry. Issue: https://progress.opensuse.org/issues/138545
5136bc4
to
901317e
Compare
There may be temporary network problems or an overloaded webui. In those cases we also want to retry.
Issue: https://progress.opensuse.org/issues/138545