Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github search has custom rate limits #1119

Closed
paulmelnikow opened this issue Oct 2, 2017 · 3 comments
Closed

Github search has custom rate limits #1119

paulmelnikow opened this issue Oct 2, 2017 · 3 comments
Assignees
Labels
bug Bugs in badges and the frontend core Server, BaseService, GitHub auth, Shared helpers

Comments

@paulmelnikow
Copy link
Member

I ran into some unexpected behavior locally which we're also seeing in CI. The Github service tests are flaky, and they sometimes pass or fail depending on the order in which they are run.

Our token logic doesn't correctly distinguish between the standard 12,500 requests per minute, and the 30 requests per minute provided by the Search API. Once a token is used for a search request, the server thinks it's exhausted and stops using it.

This is pretty serious: it means in production we're recycling tokens very prematurely.

I'd argue our github-auth middleware deserves some separate unit tests or integration tests.

This is independent of #979.

@paulmelnikow paulmelnikow added bug Bugs in badges and the frontend service-badge New or updated service badge labels Oct 2, 2017
@paulmelnikow paulmelnikow added core Server, BaseService, GitHub auth, Shared helpers and removed service-badge New or updated service badge labels Oct 10, 2017
@paulmelnikow paulmelnikow self-assigned this Oct 21, 2017
@paulmelnikow
Copy link
Member Author

paulmelnikow commented Oct 21, 2017

Have started refactoring and working on this.

master...paulmelnikow:github-token-pool

@paulmelnikow
Copy link
Member Author

After a massive amount of incremental work, this is in the home stretch: #1205.

@paulmelnikow
Copy link
Member Author

This was fixed in #1205.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs in badges and the frontend core Server, BaseService, GitHub auth, Shared helpers
Projects
None yet
Development

No branches or pull requests

1 participant