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 code for artefact creation #4184

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

Martchus
Copy link
Contributor

@Martchus Martchus commented Sep 8, 2021

  • Remove code for initializing otherwise unused variable $days
  • Remove code checking for return codes because the involved functions
    actually throw exceptions; this code paths were not covered by tests
    anyways and would have already lead to a 500 response
  • Write code in a more compact way

* Remove code for initializing otherwise unused variable `$days`
* Remove code checking for return codes because the involved functions
  actually throw exceptions; this code paths were not covered by tests
  anyways and would have already lead to a 500 response
* Write code in a more compact way
@codecov
Copy link

codecov bot commented Sep 8, 2021

Codecov Report

Merging #4184 (3a9ea36) into master (2cc75ee) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4184   +/-   ##
=======================================
  Coverage   97.90%   97.90%           
=======================================
  Files         369      369           
  Lines       33308    33301    -7     
=======================================
- Hits        32610    32604    -6     
+ Misses        698      697    -1     
Impacted Files Coverage Δ
lib/OpenQA/Schema/Result/Jobs.pm 98.49% <100.00%> (-0.01%) ⬇️
lib/OpenQA/WebAPI/Controller/API/V1/Job.pm 93.69% <100.00%> (+0.26%) ⬆️

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 2cc75ee...3a9ea36. Read the comment docs.

@mergify mergify bot merged commit 16e44e0 into os-autoinst:master Sep 10, 2021
@Martchus Martchus deleted the artefact-error-handling branch September 10, 2021 15:39
openqabot pushed a commit to openqabot/openQA that referenced this pull request Sep 11, 2021
commit 16e44e0
Merge: 2e8f6a0 3a9ea36
Author:     mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
AuthorDate: Fri Sep 10 15:35:56 2021 +0000
Commit:     GitHub <noreply@github.com>
CommitDate: Fri Sep 10 15:35:56 2021 +0000

    Merge pull request os-autoinst#4184 from Martchus/artefact-error-handling

    Simplify code for artefact creation
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