Skip to content
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

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

perlpunk
Copy link
Contributor

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

perlpunk added a commit to perlpunk/scripts that referenced this pull request Nov 13, 2023
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
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6e1f097) 98.32% compared to head (901317e) 98.32%.

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.
📢 Have feedback on the report? Share it here.

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;
Copy link
Member

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?

Copy link
Contributor Author

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.

perlpunk added a commit to perlpunk/scripts that referenced this pull request Nov 13, 2023
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
@mergify mergify bot merged commit e6799a9 into os-autoinst:master Nov 14, 2023
13 checks passed
@perlpunk perlpunk deleted the api-cli-retry branch November 15, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants