Skip to content

Conversation

@ddelgrosso1
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@ddelgrosso1 ddelgrosso1 requested review from a team and shaffeeullah July 19, 2021 20:39
@ddelgrosso1 ddelgrosso1 requested a review from a team as a code owner July 19, 2021 20:39
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/nodejs-storage API. label Jul 19, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 19, 2021
Copy link
Contributor

@shaffeeullah shaffeeullah left a comment

Choose a reason for hiding this comment

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

Nice!! Thanks for doing this, @ddelgrosso1 ! Can you please also update these tests to check for retry options?

it('should delete resumable file upload cache', done => {

it('should start a resumable upload', done => {

@ddelgrosso1
Copy link
Contributor Author

@shaffeeullah I have added additional assertions to those tests to check for retryOptions.

@shaffeeullah shaffeeullah self-requested a review July 20, 2021 17:30
Copy link
Contributor

@shaffeeullah shaffeeullah left a comment

Choose a reason for hiding this comment

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

Thanks, Denis!

@shaffeeullah shaffeeullah merged commit a4a9a0d into googleapis:shaffeeullah/retryStrategy Jul 21, 2021
shaffeeullah added a commit that referenced this pull request Jul 21, 2021
* feat: customize retry behavior implementation (#1474)

* feat: customize retry behavior implementation

* 🦉 Updates from OwlBot

* fixed !=

* 🦉 Updates from OwlBot

* updated names to match gogle gax

* 🦉 Updates from OwlBot

* refactored retryOptions into its own config

* 🦉 Updates from OwlBot

* fixed linting error

* 🦉 Updates from OwlBot

* added retry delay explanation

* 🦉 Updates from OwlBot

* refactored constants

* 🦉 Updates from OwlBot

* removed const assignment

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* feat: implemented retry function (#1476)

* implemented retry function

* 🦉 Updates from OwlBot

* fixed import

* 🦉 Updates from OwlBot

* resolved merge conflict

* passed retry function to common

* 🦉 Updates from OwlBot

* refactored code to retryableErrFn

* removed unused import

* fixed typo

* fixed typo

* fixed failing tests

* made retryableErrorFn configurable

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

* wrote unit tests

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

* changed reason check to be less brittle

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* depend on common 3.7.0 for retry changes

* feat: remove gaxios dependency (#1503)

* feat: remove gaxios dependency

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

* moved callbackFunction inline

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

* assigned types to any

* changed any to string

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* feat: applied customization to multipart filesave (#1504)

* feat: applied customization to multipart filesave

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

* fixed failing tests

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

* removed unused import

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* Update storage.ts

added comment next to EAI_AGAIN

* feat: pass retryOptions to gcs-resumable-upload (#1506)

* feat: pass retryOptions to gcs-resumable-upload

* linter fixes

* additional test assertions for retryOptions

* add additional asserts to resumable operation tests

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Denis DelGrosso <[email protected]>
@ddelgrosso1 ddelgrosso1 deleted the res-up-retry branch July 21, 2021 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/nodejs-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants