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

403 errors in macOS runners causing long delays #22

Open
thedjinn opened this issue Aug 13, 2024 · 1 comment
Open

403 errors in macOS runners causing long delays #22

thedjinn opened this issue Aug 13, 2024 · 1 comment

Comments

@thedjinn
Copy link

We have been using setup-rust for a while on both Linux and macOS runners. On Linux everything is stable, but the macOS runners very often hang for long periods of time with the following error:

INFO has_release_artifact{release=GhRelease { repo: GhRepo { owner: "matthiaskrgr", repo: "cargo-cache" }, tag: "0.8.3" } artifact_name="cargo-cache-aarch64-apple-darwin-v0.8.3.tar"}:do_send_request{request=Request { method: GET, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("api.github.com")), port: None, path: "/repos/matthiaskrgr/cargo-cache/releases/tags/0.8.3", query: None, fragment: None }, headers: {"accept": "application/vnd.github+json", "x-github-api-version": "2022-11-28"} } url=[https://api.github.com/repos/matthiaskrgr/cargo-cache/releases/tags/0.8.3}:](https://api.github.com/repos/matthiaskrgr/cargo-cache/releases/tags/0.8.3%7D:) Received status code 403 Forbidden, will wait for 120s and retry

After many attempts the step proceeds and emits the following warning:

WARN The package cargo-cache v0.8.3 (aarch64-apple-darwin) has been downloaded from third-party source QuickInstall

The entire action takes 25 minutes to run, making CI very slow for our project.

On both platforms the following step is used:

- uses: moonrepo/setup-rust@v1
  with:
      components: clippy
      cache-base: staging

We are using stock GitHub action runners, nothing special in our setup.

@milesj
Copy link
Contributor

milesj commented Aug 13, 2024

@thedjinn This happens because you're being rate limited by GH's API. You can resolve it by simply setting GITHUB_TOKEN: https://github.com/moonrepo/proto/blob/master/.github/workflows/ci.yml#L13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants