plugin rapidly drains GitHub API quota in poll mode
See original GitHub issueWe recently upgraded to 1.32.8 (from 1.31.4, since many intervening versions have been broken in different ways), and we’re quickly burning through all of our GitHub API quota:
$ while true; do curl -slL https://api.github.com/rate_limit?access_token=[elided] | jq .resources.core.remaining ; sleep 1; done
592
591
589
587
586
584
582
575
564
553
545
535
529
519
509
500
491
483
478
476
473
Note that I restarted the plugin about 15m ago; this ratelimit value starts at 5000.
Looking at the Jenkins log, it looks like its querying each PR multiple times per minute. Refreshing the log, I’ll see things like
Jul 05, 2016 10:05:04 PM INFO org.jenkinsci.plugins.ghprb.GhprbPullRequest updatePR
Pull request #16,062 was updated on repo kubernetes/kubernetes but there aren't any new comments nor commits; that may mean that commit status was updated.
Jul 05, 2016 10:05:04 PM INFO org.jenkinsci.plugins.ghprb.GhprbPullRequest updatePR
Pull request #13,925 was updated on repo kubernetes/kubernetes but there aren't any new comments nor commits; that may mean that commit status was updated.
Jul 05, 2016 10:05:04 PM INFO org.jenkinsci.plugins.ghprb.GhprbPullRequest updatePR
Pull request #13,216 was updated on repo kubernetes/kubernetes but there aren't any new comments nor commits; that may mean that commit status was updated.
repeated again and again for the same PRs, even though nothing is changing.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:25 (8 by maintainers)
Top Results From Across the Web
Field Reference - The workflow engine for Kubernetes
Allows parameterization of container fields which are not strings (e.g. resource limits). priority, integer, Priority to apply to workflow pods.
Read more >How to get the most out of GitHub API rate limits - Endor Labs
We will quickly go over the specific rate limits for Github's REST APIs and some useful information to remember as well.
Read more >Repository mirroring - GitLab Docs
On the top bar, select Main menu > Projects and find your project. On the left sidebar, select Settings > Repository. Expand Mirroring...
Read more >Schedule tasks with WorkManager Part of Android Jetpack.
Because most background processing is best accomplished through persistent work, WorkManager is the primary recommended API for background ...
Read more >Available CRAN Packages By Name
admiralonco, Oncology Extension Package for ADaM in 'R' Asset Library ... anyLib, Install and Load Any Package from CRAN, Bioconductor or Github.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sad to see this six year old issue is still pending without any workaround or resolution. Might need to go ahead and try the webhook relay.
Filed a separate issue for adding
If-Modified-Since
to request headers when polling PRs: #653