Skip to content

Conversation

@zwick
Copy link

@zwick zwick commented Jun 11, 2025

Context

Users of this action have reported failing tasks due to a race condition with this action. The above linked PR suggested adding a retry capability to the Octokit call. A plugin exists for Octokit to retry failed requests utilizing a standard Backoff and was leveraged for this functionality.

This action is using Octokit Core v6, which required we pin to the Octokit Retry v6 rather than the latest v8. @octokit/plugin-paginate-rest had an Octokit Core version conflict during an npm install. Our version of Octokit Core installs a sub-dependency of @octokit/plugin-paginate-rest that is not conflicting

Changes

  • Installed and imported octokit-retry package to action
  • Automatically retry failed requests in the Add-to-project action

@zwick zwick self-assigned this Jun 11, 2025
@zwick zwick added enhancement New feature or request dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jun 11, 2025
@zwick zwick force-pushed the zwick/add-retries branch from b7befbf to 095d3fc Compare June 11, 2025 14:32
@skw
Copy link
Contributor

skw commented Jul 7, 2025

@zwick Were you planning to get this PR ready for review? I think you may need to update the package.json and lock file.

@zwick zwick force-pushed the zwick/add-retries branch 2 times, most recently from 8621a20 to 3b6cd34 Compare July 8, 2025 14:26
@zwick
Copy link
Author

zwick commented Jul 8, 2025

@skw My efforts are a bit stuck at the moment. The failures in these tests are accurate, we are having some Typescript compatibilities between the Retry plugin and the version of Octokit Core bundled with @actions/github.

I'm currently down a bit of a rabbit hole while attempting to leverage @octokit/core instead. Importing this requires rewriting the action to an ES Module instead of targeting commonjs. However I am having issues with successfully importing Octokit Core after the change to a module.

This won't be ready until this can be solved, but I'm trying to not spend an exceeding amount of time on it.

@cbobach cbobach mentioned this pull request Aug 5, 2025
@zwick zwick force-pushed the zwick/add-retries branch from 3b6cd34 to 5a29fc9 Compare December 8, 2025 21:30
@zwick zwick changed the title Add Retry option to Add-to-project action Add automatic Retry to Add-to-project action Dec 8, 2025
@zwick zwick force-pushed the zwick/add-retries branch from 593f79d to cba7153 Compare December 9, 2025 14:27
- Added octokit plugin for automatic retries
- Removed un-imported dependency causing version conflicts
- Update dist for action with new retry plugin
- Update license cache
@zwick zwick force-pushed the zwick/add-retries branch from cba7153 to 1f33b7b Compare December 9, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants