Skip to content

Add retry plugin and related options #288

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

Merged
merged 11 commits into from
Sep 26, 2022
Merged

Conversation

luketomlinson
Copy link
Contributor

@luketomlinson luketomlinson commented Sep 23, 2022

This PR adds a few new features:

  • Support for octokit/plugin-retry.js
  • 3 new options
    • retries: the number of times to retry a failed request
    • retryAfter: a delay after retrying
    • doNotRetry: a list of HTTP status codes to NOT retry

These options largely mirror the options from the octokit plugin.

These options are completely opt in and require you to be explicit: retryAfter and doNotRetry will have no effect unless retries is set.

fixes #104

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@luketomlinson luketomlinson requested a review from a team September 23, 2022 15:57
Copy link
Member

@joshmgross joshmgross left a comment

Choose a reason for hiding this comment

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

Could you bump the version to 6.2.1 in package.json?

retries
}

core.info(
Copy link
Member

Choose a reason for hiding this comment

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

Should this be debug?
Users might not want every step to output this information

@luketomlinson
Copy link
Contributor Author

@joshmgross what do you think about 6.3.0 since this is adding a feature, and not just a bug fix?

@joshmgross
Copy link
Member

@joshmgross what do you think about 6.3.0 since this is adding a feature, and not just a bug fix?

👍 Sounds good to me

@joshmgross joshmgross merged commit d4560e1 into actions:main Sep 26, 2022
fuxingloh referenced this pull request in DeFiCh/metachain Oct 12, 2022
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/github-script](https://togithub.com/actions/github-script) |
action | minor | `v6.2.0` -> `v6.3.2` |

---

### Release Notes

<details>
<summary>actions/github-script</summary>

###
[`v6.3.2`](https://togithub.com/actions/github-script/releases/tag/v6.3.2)

[Compare
Source](https://togithub.com/actions/github-script/compare/v6.3.1...v6.3.2)

##### What's Changed

- Update [@&#8203;actions/core](https://togithub.com/actions/core) to
1.10.0 by [@&#8203;rentziass](https://togithub.com/rentziass) in
[https://github.com/actions/github-script/pull/295](https://togithub.com/actions/github-script/pull/295)

##### New Contributors

- [@&#8203;rentziass](https://togithub.com/rentziass) made their first
contribution in
[https://github.com/actions/github-script/pull/295](https://togithub.com/actions/github-script/pull/295)

**Full Changelog**:
actions/github-script@v6.3.1...v6.3.2

###
[`v6.3.1`](https://togithub.com/actions/github-script/releases/tag/v6.3.1)

[Compare
Source](https://togithub.com/actions/github-script/compare/v6.3.0...v6.3.1)

#### What's Changed

- Fix overriding request options from
[@&#8203;actions/github](https://togithub.com/actions/github) by
[@&#8203;luketomlinson](https://togithub.com/luketomlinson) in
[https://github.com/actions/github-script/pull/293](https://togithub.com/actions/github-script/pull/293)

**Full Changelog**:
actions/github-script@v6.3.0...v6.3.1

###
[`v6.3.0`](https://togithub.com/actions/github-script/releases/tag/v6.3.0)

[Compare
Source](https://togithub.com/actions/github-script/compare/v6.2.0...v6.3.0)

#### What's Changed

- Add retry plugin and related options by
[@&#8203;luketomlinson](https://togithub.com/luketomlinson) in
[https://github.com/actions/github-script/pull/288](https://togithub.com/actions/github-script/pull/288),
see https://github.com/actions/github-script/tree/v6.3.0#retries for
more information.

#### New Contributors

- [@&#8203;luketomlinson](https://togithub.com/luketomlinson) made their
first contribution in
[https://github.com/actions/github-script/pull/288](https://togithub.com/actions/github-script/pull/288)

**Full Changelog**:
actions/github-script@v6.2.0...v6.3.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click
this checkbox.

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/DeFiCh/metachain).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMTYuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzMi4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

Please consider retries for the Octokit client
3 participants