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

cargo-docker.sh container is running out of memory #1580

Open
stan-irl opened this issue Jun 5, 2023 · 4 comments
Open

cargo-docker.sh container is running out of memory #1580

stan-irl opened this issue Jun 5, 2023 · 4 comments
Labels

Comments

@stan-irl
Copy link
Contributor

stan-irl commented Jun 5, 2023

this one is kinda hard to spot because the container looks like its running and then the output just stops. The issue is pretty well documented here: rust-lang/cargo#10583.

If you update the container to 1.70 it'll fix the issue because sparse is enabled by default: https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html#sparse-by-default-for-cratesio.

In the meantime im running the tests by opening a shell on the container:

docker run \
    -ti --rm \
    -v $HOME/.cargo/registry:/usr/local/cargo/registry \
    -v $PWD:/mounted_workdir \
    -w /mounted_workdir \
    rfkelly/uniffi-ci:latest bash

then on the container:

rustup update nightly
cargo +nightly -Z sparse-registry test

This could potentially only be a problem on m1 mac but thats where you really need the container

┆Issue is synchronized with this Jira Task
┆Issue Number: UNIFFI-280

@badboy
Copy link
Member

badboy commented Jun 5, 2023

That's unfortunate (and I'm on a M1 but don't use Docker to develop uniffi).
We're currently still on Rust 1.66, but we could go to 1.69 and enable the sparse protocol through the env variable.

@stan-irl
Copy link
Contributor Author

stan-irl commented Jun 5, 2023

Even when I got it running it was hanging at:

test uniffi_foreign_language_testcase_test_kts has been running for over 60 seconds

in the end I just bit the bullet and got everything running locally.

@badboy
Copy link
Member

badboy commented Jun 5, 2023

On which test crate was that? We have some intermittens and I've seen that before on CI as well, so that particular might be something different.

@stan-irl
Copy link
Contributor Author

stan-irl commented Jun 5, 2023

unary-result-alias

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

No branches or pull requests

3 participants