Closed joannenolan-sky closed 5 years ago
This also happens when there is no storedump.json
file present
Did you add the new required permissions on status
, checks
and so on? Please check your log for WARN
entries.
Yes, I need to add the webhook permission but I already had the checks and status added . I created a new app to check and compare the permissions to make sure they matched.
I have my logs outputted to a file attached. The config is valid and there is no warning except for the abuse limits wuffle.log
Thanks for sharing the log, is it helpful.
A few insights of my preliminary analysis: GitHub rate-limits to 5000 requests per hour. Looking into your setup, we get decently close to that boundary with a single sync already.
There are a few ways to work around this limitation:
Additional idea:
I've recently run into this as well in a large organization. Prioritizing open issues as well as newer issues would be a great help.
A few more details on how background synchronization works that relates to this issue:
Background synchronization handles open and closed issues differently: Open issues are always synchronized, closed issues are only synchronized if they have been updated in the last 30 days. This is obviously a problem in test setups or super huge organizations that have 1000 or more issues open or closed in thirty days.
https://github.com/nikku/wuffle/commit/31c274758594bdd1d9161ee5d3d28f262f1fbd58 and https://github.com/nikku/wuffle/commit/9dd0c636fbbb93da0c06117ac6350e8cd6b3280f ship some additional changes:
As the result of this change, initial is going to fetch details for recently updated issues only. As issues are being worked on (i.e. changed via the board or GitHub) details will eventually be background synched.
I expect this to be a good change and look forward for your feedback how this behaves in your organizations. I got a few additional ideas for optimization, however I'd rather see the impact of this change in bigger setups (yours, ours) before dumping huge amounts of additional work in this matter.
Closing this issue for now, looking forward for your feedback.
Thanks for that I have just updated to v0.29.0
and I have been rate limited yet which is great.
I have tried it against with an original storedump.json
present and with no storedump.json
Thanks for getting that sorted
Glad to hear!
Describe the Bug Unable to perform backgroundSync as application is being rate limited when getting status or reviews. This happens for each open pull request
Steps to Reproduce
valid configuration Setup : 7 repos, 900 total issues(750 pull requests)(9 open pull requests) Version 17
storedump.json
running on latest(v27) of applicationnpm clean-install
npm run buildl
npm run start
Expected Behavior
full refresh of issues should happen, reviewers and status should be updated wit no issues
Environment
running in a local environment