question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

plugin rapidly drains GitHub API quota in poll mode

See original GitHub issue

We 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:open
  • Created 7 years ago
  • Reactions:4
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
unphasedcommented, Jun 21, 2022

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.

1reaction
RoyTinkercommented, Apr 16, 2018

Filed a separate issue for adding If-Modified-Since to request headers when polling PRs: #653

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found