Skip to content

acceptance tests - stop uploading when receiving an error#32559

Merged
phil-davis merged 1 commit into
masterfrom
stopUploadOnError
Sep 4, 2018
Merged

acceptance tests - stop uploading when receiving an error#32559
phil-davis merged 1 commit into
masterfrom
stopUploadOnError

Conversation

@individual-it

@individual-it individual-it commented Sep 4, 2018

Copy link
Copy Markdown
Member

Description

stop uploading with there is an error
when uploading chunks and receiving an error on one chunk, the upload helper would still doing the other steps of the upload

Related Issue

Motivation and Context

Before #32505 there was an exception thrown on errors. We don't do that any-more, because the higher layers might just expect the error code. But now we need to return the error code when it happens and not doing other requests afterwards.

How Has This Been Tested?

run failing tests of firewall

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • Backport (if applicable set "backport-request" label and remove when the backport was done)

@phil-davis phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The last if is not essential, but good to leave it there in case someone adds more code in future between it and the final return.

@individual-it

Copy link
Copy Markdown
Member Author

backport in #32561

@codecov

codecov Bot commented Sep 4, 2018

Copy link
Copy Markdown

Codecov Report

Merging #32559 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #32559   +/-   ##
=========================================
  Coverage     64.09%   64.09%           
  Complexity    18654    18654           
=========================================
  Files          1177     1177           
  Lines         70232    70232           
  Branches       1270     1270           
=========================================
  Hits          45018    45018           
  Misses        24844    24844           
  Partials        370      370
Flag Coverage Δ Complexity Δ
#javascript 52.89% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.37% <ø> (ø) 18654 <ø> (ø) ⬇️

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 e246af0...74fffbd. Read the comment docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants