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

Fails in Mac CI #2045

Open
Timmmm opened this issue Feb 11, 2025 · 3 comments
Open

Fails in Mac CI #2045

Timmmm opened this issue Feb 11, 2025 · 3 comments

Comments

@Timmmm
Copy link

Timmmm commented Feb 11, 2025

I have this running in Github actions on Mac:

      - name: Install cargo-binstall
        uses: cargo-bins/cargo-binstall@main

      - name: Install Maturin
        run: cargo binstall maturin

But it fails with 403 Forbidden when accessing api.github.com.

INFO resolve: Resolving package: 'maturin'
 INFO has_release_artifact{release=GhRelease { repo: GhRepo { owner: "pyo3", repo: "maturin" }, tag: "v1.8.2" } artifact_name="maturin-aarch64-apple-darwin-v1.8.2.tar.xz"}: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/pyo3/maturin/releases/tags/v1.8.2", query: None, fragment: None }, headers: {"accept": "application/vnd.github+json", "x-github-api-version": "2022-11-28"} } url=https://api.github.com/repos/pyo3/maturin/releases/tags/v1.8.2}: Received status code 403 Forbidden, will wait for 120s and retry
 INFO has_release_artifact{release=GhRelease { repo: GhRepo { owner: "pyo3", repo: "maturin" }, tag: "1.8.2" } artifact_name="maturin-aarch64-apple-darwin-v1.8.2.tbz2"}: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/pyo3/maturin/releases/tags/1.8.2", query: None, fragment: None }, headers: {"accept": "application/vnd.github+json", "x-github-api-version": "2022-11-28"} } url=https://api.github.com/repos/pyo3/maturin/releases/tags/1.8.2}: Received status code 403 Forbidden, will wait for 120s and retry
 WARN resolve: Timeout reached while checking fetcher invalid url: deadline has elapsed
 WARN resolve: Timeout reached while checking fetcher invalid url: deadline has elapsed
 WARN resolve: Timeout reached while checking fetcher invalid url: deadline has elapsed
 WARN resolve: Timeout reached while checking fetcher invalid url: deadline has elapsed
 WARN resolve: Timeout reached while checking fetcher QuickInstall: deadline has elapsed
 WARN resolve: Timeout reached while checking fetcher QuickInstall: deadline has elapsed
 WARN The package maturin v1.8.2 will be installed from source (with cargo)
Do you wish to continue? [yes]/no
@cocoonkid
Copy link

I think you can fix that with

environment:
  BINSTALL_NO_DISCOVER_GITHUB_TOKEN: 'true'

@passcod
Copy link
Member

passcod commented Feb 11, 2025

Most importantly, that's not a failure (it says INFO and WARN). Your action isn't working because it's waiting for input:

Do you wish to continue? [yes]/no

You need to provide -y in CI to install without prompting.

@Timmmm
Copy link
Author

Timmmm commented Feb 11, 2025

Actually it automatically selected Yes even without -y (I guess it uses isatty or something?) and successfully installed from source. The CI action didn't fail - the failure is that it couldn't install from binary (sorry I probably should have been clearer!)

BINSTALL_NO_DISCOVER_GITHUB_TOKEN: 'true'

Ah interesting. Can you explain what the problem is and why this fixes it? (I haven't tested it yet.)

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

No branches or pull requests

3 participants