Project

General

Profile

Bug #11463

teuthology is getting rate limited by github api

Added by Andrew Schoen almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

Teuthology uses the github api to find out if a branch exists in a given repo. We have a limit of 60 requests to that api in a day and we're exceeding it. This is currently happening in the octo lab.

$ curl -i https://api.github.com/repos/ceph/teuthology/git/refs/heads/master
HTTP/1.1 403 Forbidden
Server: GitHub.com
Date: Thu, 23 Apr 2015 22:12:03 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 258
Status: 403 Forbidden
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1429827461
X-GitHub-Media-Type: github.v3
X-XSS-Protection: 1; mode=block
X-Frame-Options: deny
Content-Security-Policy: default-src 'none'
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
Access-Control-Allow-Origin: *
X-GitHub-Request-Id: 42BBE9CA:54C9:696EB46:55396E33
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
X-Content-Type-Options: nosniff

{
  "message": "API rate limit exceeded for X.X.X.X. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
  "documentation_url": "https://developer.github.com/v3/#rate-limiting" 
}

History

#1 Updated by Dan Mick almost 9 years ago

teuthology PR #473 added to mitigate the usage. "git clone -b <branch>" will failfast and may be preferable to checking for the branch with the github API call.

#2 Updated by Zack Cerza almost 9 years ago

  • Status changed from New to Resolved
  • Regression set to No

Also available in: Atom PDF