files-sync-action icon indicating copy to clipboard operation
files-sync-action copied to clipboard

Handle retries and improve performance

Open kishaningithub opened this issue 4 months ago • 1 comments

Context

I am using this to sync files across ~600 repos. When performing this operation, after ~35 minutes of serialised run the action failed with the following error

Error: patterns.0 redacted-org/redacted-repo - HttpError: other side closed

Proposals

  • When HttpError: other side closed happens perform a retry of the failed request keeping into account github's rate limiting headers in their api response
  • After a 35 minute run, only ~ 100 repos completed synchronisation. I think there is scope for performance improvement.

kishaningithub avatar Nov 06 '25 12:11 kishaningithub

Github API Rate limits must also be gracefully handled

Error: patterns.0 redacted-org/redacted-repo - Compare commits error: HttpError: API rate limit exceeded for user.

kishaningithub avatar Nov 06 '25 13:11 kishaningithub