Skip to content

403 errors in macOS runners causing long delays #22

@thedjinn

Description

@thedjinn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions