files-sync-action
files-sync-action copied to clipboard
Handle retries and improve performance
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 closedhappens 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.
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.