rust-lang / cargo-bisect-rustc

Bisects rustc, either nightlies or CI artifacts
https://rust-lang.github.io/cargo-bisect-rustc/
Apache License 2.0
177 stars 55 forks source link

Fix CI test error. #179

Closed ehuss closed 2 years ago

ehuss commented 2 years ago

The test_github test has been sporadically failing on CI. The error is due to rate limiting:

Forbidden: {"message":"API rate limit exceeded for 52.255.184.219. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

This fixes the issue by adding a GITHUB_TOKEN, which has a higher rate limit than the unauthenticated request. There's still a rate limit, but I think it should be enough for normal CI runs.

This also adds more context to the error message when it happens.

Fixes #166