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

Simplify error handling of downloader, avoid confusing error codes #5810

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

Martchus
Copy link
Contributor

  • Remove the made-up HTTP response codes introduced by aea93ad (e.g. just log Connect timeout instead of 521 Connect timeout)
  • Simplify the code
  • Keep retry behavior as-is, so if there's no response code at all or a real 5xx error code the downloader tries again
  • Simplify code
  • See https://progress.opensuse.org/issues/164222

* Remove the made-up HTTP response codes introduced by
  aea93ad (e.g. just log `Connect timeout`
  instead of `521 Connect timeout`)
* Simplify the code
* Keep retry behavior as-is, so if there's no response code at all or a
  real 5xx error code the downloader tries again
* Simplify code
* See https://progress.opensuse.org/issues/164222
Copy link
Contributor

@b10n1k b10n1k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@okurz
Copy link
Member

okurz commented Aug 1, 2024

Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.49%. Comparing base (4726870) to head (0be1071).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5810      +/-   ##
==========================================
- Coverage   98.49%   98.49%   -0.01%     
==========================================
  Files         394      394              
  Lines       38685    38683       -2     
==========================================
- Hits        38101    38099       -2     
  Misses        584      584              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mergify mergify bot merged commit 64488e5 into os-autoinst:master Aug 1, 2024
42 checks passed
@Martchus Martchus deleted the downloader-error-handling branch August 1, 2024 09:07
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.

3 participants