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

feat: customize retry behavior implementation (#1474) #1493

Merged
merged 10 commits into from
Jul 21, 2021

Conversation

shaffeeullah
Copy link
Contributor

@shaffeeullah shaffeeullah commented Jun 23, 2021

Retry customization implementation.

Adds the RetryOptions interface which allows users to configure retryDelayMultiplier, totalTimeout, maxRetryDelay, autoRetry, maxRetries, and retryableErrorFn

* 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>
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 23, 2021
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/nodejs-storage API. label Jun 23, 2021
@shaffeeullah shaffeeullah added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 23, 2021
shaffeeullah and others added 2 commits June 23, 2021 14:04
* 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>
@bcoe bcoe added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 2, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 2, 2021
@shaffeeullah shaffeeullah added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 12, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 12, 2021
@shaffeeullah shaffeeullah added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 12, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 12, 2021
@shaffeeullah shaffeeullah removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 12, 2021
@shaffeeullah shaffeeullah marked this pull request as ready for review July 12, 2021 20:06
@shaffeeullah shaffeeullah requested a review from a team July 12, 2021 20:06
@shaffeeullah shaffeeullah requested a review from a team as a code owner July 12, 2021 20:06
Copy link
Contributor

@ddelgrosso1 ddelgrosso1 left a comment

Choose a reason for hiding this comment

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

LGTM

@shaffeeullah shaffeeullah added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 12, 2021
shaffeeullah and others added 2 commits July 14, 2021 10:17
* 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

* 🦉 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>
src/storage.ts Outdated Show resolved Hide resolved
added comment next to EAI_AGAIN
Copy link

@danielduhh danielduhh left a comment

Choose a reason for hiding this comment

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

🚢

ddelgrosso1 and others added 2 commits July 21, 2021 08:51
* feat: pass retryOptions to gcs-resumable-upload

* linter fixes

* additional test assertions for retryOptions

* add additional asserts to resumable operation tests
@shaffeeullah shaffeeullah removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 21, 2021
@shaffeeullah shaffeeullah merged commit 49008e3 into master Jul 21, 2021
@shaffeeullah shaffeeullah deleted the shaffeeullah/retryStrategy branch July 21, 2021 16:13
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.

5 participants