Skip to content

running out of 7 GiB memory for GitHub hosted runner #90272

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

Closed
cataggar opened this issue Oct 25, 2021 · 1 comment
Closed

running out of 7 GiB memory for GitHub hosted runner #90272

cataggar opened this issue Oct 25, 2021 · 1 comment
Labels
C-bug Category: This is a bug.

Comments

@cataggar
Copy link

I'm trying to compile azure_mgmt_compute with --all-features, but the GitHub hosted runner with 7 GiB appears to be running out of memory, getting an error like #51309. This is happening with a few crates. I've tested on stable rustc 1.56.0 & 1.55.0.

cargo check --manifest-path services/mgmt/compute/Cargo.toml --all-features
    Checking azure_mgmt_compute v0.1.0 (/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/mgmt/compute)
error: could not compile `azure_mgmt_compute`

Caused by:
  process didn't exit successfully: `rustc --crate-name azure_mgmt_compute --edition=2018 mgmt/compute/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="no-default-version"' --cfg 'feature="package-2015-06-preview"' --cfg 'feature="package-2016-03"' --cfg 'feature="package-2016-04-preview"' --cfg 'feature="package-2017-03"' --cfg 'feature="package-2017-12"' --cfg 'feature="package-2018-04"' --cfg 'feature="package-2018-04-01"' --cfg 'feature="package-2018-06"' --cfg 'feature="package-2018-06-01"' --cfg 'feature="package-2018-06-exclude-gallery"' --cfg 'feature="package-2018-09-30-only"' --cfg 'feature="package-2018-10-01"' --cfg 'feature="package-2018-10-01-Disks"' --cfg 'feature="package-2018-10-01-only"' --cfg 'feature="package-2019-03-01"' --cfg 'feature="package-2019-03-01-only"' --cfg 'feature="package-2019-04-01-only"' --cfg 'feature="package-2019-07"' --cfg 'feature="package-2019-07-01"' --cfg 'feature="package-2019-07-01-only"' --cfg 'feature="package-2019-11-01"' --cfg 'feature="package-2019-11-01-only"' --cfg 'feature="package-2019-12-01"' --cfg 'feature="package-2019-12-01-only"' --cfg 'feature="package-2020-05-01"' --cfg 'feature="package-2020-05-01-only"' --cfg 'feature="package-2020-06-01"' --cfg 'feature="package-2020-06-01-only"' --cfg 'feature="package-2020-06-30"' --cfg 'feature="package-2020-06-30-only"' --cfg 'feature="package-2020-09-30"' --cfg 'feature="package-2020-09-30-only"' --cfg 'feature="package-2020-10-01-preview"' --cfg 'feature="package-2020-10-01-preview-only"' --cfg 'feature="package-2020-12-01"' --cfg 'feature="package-2020-12-01-only"' --cfg 'feature="package-2021-03-01"' --cfg 'feature="package-2021-03-01-only"' --cfg 'feature="package-2021-04-01"' --cfg 'feature="package-2021-04-01-only"' --cfg 'feature="package-2021-06-01-preview"' --cfg 'feature="package-2021-06-01-preview-only"' --cfg 'feature="package-2021-07-01"' --cfg 'feature="package-2021-07-01-only"' --cfg 'feature="package-compute-2015-06"' --cfg 'feature="package-compute-2016-03"' --cfg 'feature="package-compute-2016-04-preview"' --cfg 'feature="package-compute-2017-03"' --cfg 'feature="package-compute-2017-12"' --cfg 'feature="package-compute-2018-04"' --cfg 'feature="package-compute-only-2017-12"' --cfg 'feature="package-compute-only-2018-06"' --cfg 'feature="package-container-service-2015-11-preview"' --cfg 'feature="package-container-service-2016-03"' --cfg 'feature="package-container-service-2016-09"' --cfg 'feature="package-container-service-2017-01"' --cfg 'feature="package-disks-2018-04"' --cfg 'feature="package-skus-2017-09"' -C metadata=5dbfc7bc7ead3e22 -C extra-filename=-5dbfc7bc7ead3e22 --out-dir /home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/deps -L dependency=/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/deps --extern azure_core=/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/deps/libazure_core-40184fd401691aa4.rmeta --extern bytes=/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/deps/libbytes-b2938827ee914b28.rmeta --extern http=/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/deps/libhttp-2fb7c8626bfc32bf.rmeta --extern reqwest=/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/deps/libreqwest-62268f4c3390a62a.rmeta --extern serde=/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/deps/libserde-b42b87069b47d791.rmeta --extern serde_json=/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/deps/libserde_json-f8076766c71556ab.rmeta --extern thiserror=/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/deps/libthiserror-d9310e6ded0252f8.rmeta --extern url=/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/deps/liburl-a6e2c467b078b50d.rmeta --deny warnings --allow unused_attributes -L native=/home/runner/work/azure-sdk-for-rust/azure-sdk-for-rust/services/target/debug/build/ring-86f475579a58e5cb/out` (signal: 9, SIGKILL: kill)
Error: Process completed with exit code 101.

To reproduce, run in a GitHub workflow:

git clone https://github.com/Azure/azure-sdk-for-rust.git
cd azure-sdk-for-rust
cargo check --manifest-path services/mgmt/compute/Cargo.toml --all-features

I'm hoping there is a way to cap rustc memory and have the compilation take longer.

Meta

rustc 1.56.0 & 1.55.0

@cataggar
Copy link
Author

I'm going to throw more RAM at this problem. The macos hosted runner has 14 GiB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

1 participant