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

Return errors on artefact creation correctly #4179

Merged
merged 3 commits into from
Sep 8, 2021

Conversation

Martchus
Copy link
Contributor

@Martchus Martchus commented Sep 7, 2021

  • Return a 400/500 error when creating an artefact fails so the worker
    would log the error and retry in case of the 500 error
  • We've seen cases in production where result files are missing but no
    final upload error (after exhausing all attempts) is logged, see
    https://progress.opensuse.org/issues/94531#note-35. This change might
    fix those problems.

Copy link
Member

@asdil12 asdil12 left a comment

Choose a reason for hiding this comment

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

LGTM

* Return a 400/500 error when creating an artefact fails so the worker
  would log the error and retry in case of a 500 error
* We've seen cases in production where result files are missing but no
  final upload error (after exhausing all attempts) is logged, see
  https://progress.opensuse.org/issues/94531#note-35. This change might
  fix those problems.
@codecov
Copy link

codecov bot commented Sep 8, 2021

Codecov Report

Merging #4179 (c8d7443) into master (ebe25e5) will decrease coverage by 0.00%.
The diff coverage is 93.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4179      +/-   ##
==========================================
- Coverage   97.90%   97.90%   -0.01%     
==========================================
  Files         369      369              
  Lines       33310    33308       -2     
==========================================
- Hits        32612    32610       -2     
  Misses        698      698              
Impacted Files Coverage Δ
lib/OpenQA/WebAPI/Controller/API/V1/Job.pm 93.42% <85.71%> (+0.01%) ⬆️
t/api/04-jobs.t 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebe25e5...c8d7443. Read the comment docs.

@mergify mergify bot merged commit 2cc75ee into os-autoinst:master Sep 8, 2021
@Martchus Martchus deleted the artefact-error-handling branch September 8, 2021 13:28
This pull request was closed.
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