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

Issue in building rust-based packages in parallel #3565

Closed
ryanking13 opened this issue Feb 10, 2023 · 1 comment · Fixed by #3607
Closed

Issue in building rust-based packages in parallel #3565

ryanking13 opened this issue Feb 10, 2023 · 1 comment · Fixed by #3607
Labels
bug Something isn't working

Comments

@ryanking13
Copy link
Member

We are having some issue when building multiple rust-based packages in parallel.

For example, see: https://app.circleci.com/pipelines/github/pyodide/pyodide/5328/workflows/a0ced892-ac1a-4519-984c-d98a84fabe29/jobs/66900

It is expected behavior since rustup was not designed for concurrent use (rust-lang/rustup#988).

Some possible workarounds that I can think of are:

  1. Add some logic to not build rust-baed packages in parallel
  2. Create a fresh local rust build environment everytime when building rust-based package. I found a Python package called rustenv, which is designed for that purpose. It is a ~150LoC script, which basically installs rust every time from https://sh.rustup.rs into a local directory.

I slightly prefer option 1, as we don't have to be responsible for installing build requirements. But I have no strong opinion.

@ryanking13 ryanking13 added the bug Something isn't working label Feb 10, 2023
@rth
Copy link
Member

rth commented Feb 20, 2023

+1 for option 1 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants