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

Performance optimizations #3378

Closed

Update lib.rs

409e3fb
Select commit
Loading
Failed to load commit list.
Closed

Performance optimizations #3378

Update lib.rs
409e3fb
Select commit
Loading
Failed to load commit list.
Garnix CI / package devnet-compose-image [x86_64-linux] failed Dec 14, 2024 in 3m 53s

Run results

Build failed

Details

Last 100 lines of logs:

devnet-compose-0.1.0> Executing configureCargoCommonVars
devnet-compose-0.1.0> decompressing cargo artifacts from /nix/store/mmhq43vi6gm263zhfnkzy3kxh0l9baf0-devnet-compose-deps-0.1.0/target.tar.zst to target
devnet-compose-0.1.0> Running phase: updateAutotoolsGnuConfigScriptsPhase
devnet-compose-0.1.0> Running phase: configurePhase
devnet-compose-0.1.0> will append /build/devnet-compose-patched-workspace-cargo-toml/.cargo-home/config.toml with contents of /nix/store/g1ahydy3sxcw1nni1hlqvvdkvcp1xf18-vendor-cargo-deps/config.toml
devnet-compose-0.1.0> default configurePhase, nothing to do
devnet-compose-0.1.0> Running phase: buildPhase
devnet-compose-0.1.0> ++ command cargo --version
devnet-compose-0.1.0> cargo 1.83.0-nightly (15fbd2f60 2024-10-08)
devnet-compose-0.1.0> ++ command cargo build --release --message-format json-render-diagnostics -j1 -p devnet-compose
devnet-compose-0.1.0> warning: Patch `arbitrary v1.3.2 (https://github.com/unionlabs/arbitrary#b5796f1a)` was not used in the crate graph.
devnet-compose-0.1.0> Patch `merlin v3.0.0 (https://github.com/aptos-labs/merlin#3454ccc8)` was not used in the crate graph.
devnet-compose-0.1.0> Patch `x25519-dalek v1.2.0 (https://github.com/aptos-labs/x25519-dalek?branch=zeroize_v1#762a9501)` was not used in the crate graph.
devnet-compose-0.1.0> Check that the patched package version and available features are compatible
devnet-compose-0.1.0> with the dependency requirements. If the patch has a different version from
devnet-compose-0.1.0> what is locked in the Cargo.lock file, run `cargo update` to use the new
devnet-compose-0.1.0> version. This may also occur with an optional dependency that is not enabled.
devnet-compose-0.1.0>    Compiling portable-atomic v1.6.0
devnet-compose-0.1.0>    Compiling indicatif v0.17.8
devnet-compose-0.1.0>    Compiling cliclack v0.2.5
devnet-compose-0.1.0>    Compiling devnet-compose v0.1.0 (/build/devnet-compose-patched-workspace-cargo-toml/devnet-compose)
devnet-compose-0.1.0> warning: unused imports: `LogConfiguration` and `ShutdownConfig`
devnet-compose-0.1.0>  --> devnet-compose/src/main.rs:7:5
devnet-compose-0.1.0>   |
devnet-compose-0.1.0> 7 |     LogConfiguration, Probe, Process, ProcessDependency, Project, ShutdownConfig,
devnet-compose-0.1.0>   |     ^^^^^^^^^^^^^^^^                                              ^^^^^^^^^^^^^^
devnet-compose-0.1.0>   |
devnet-compose-0.1.0>   = note: `#[warn(unused_imports)]` on by default
devnet-compose-0.1.0> 
devnet-compose-0.1.0> error[E0015]: cannot call non-const fn `Style::new` in statics
devnet-compose-0.1.0>   --> devnet-compose/src/theme.rs:19:36
devnet-compose-0.1.0>    |
devnet-compose-0.1.0> 19 |         static CYAN_STYLE: Style = Style::new().cyan();
devnet-compose-0.1.0>    |                                    ^^^^^^^^^^^^
devnet-compose-0.1.0>    |
devnet-compose-0.1.0>    = note: calls in statics are limited to constant functions, tuple structs and tuple variants
devnet-compose-0.1.0>    = note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`
devnet-compose-0.1.0> 
devnet-compose-0.1.0> error[E0015]: cannot call non-const fn `Style::cyan` in statics
devnet-compose-0.1.0>   --> devnet-compose/src/theme.rs:19:49
devnet-compose-0.1.0>    |
devnet-compose-0.1.0> 19 |         static CYAN_STYLE: Style = Style::new().cyan();
devnet-compose-0.1.0>    |                                                 ^^^^^^
devnet-compose-0.1.0>    |
devnet-compose-0.1.0>    = note: calls in statics are limited to constant functions, tuple structs and tuple variants
devnet-compose-0.1.0>    = note: consider wrapping this expression in `std::sync::LazyLock::new(|| ...)`
devnet-compose-0.1.0> 
devnet-compose-0.1.0> error[E0308]: mismatched types
devnet-compose-0.1.0>   --> devnet-compose/src/galois.rs:42:39
devnet-compose-0.1.0>    |
devnet-compose-0.1.0> 42 |     let readiness_probe = Probe::exec(format!("nix run .#galoisd -- query-stats {GALIOSD_PORT}"));
devnet-compose-0.1.0>    |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `String`
devnet-compose-0.1.0>    |
devnet-compose-0.1.0>    = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
devnet-compose-0.1.0> 
devnet-compose-0.1.0> error[E0433]: failed to resolve: use of undeclared type `ProcessBuilder`
devnet-compose-0.1.0>   --> devnet-compose/src/main.rs:36:9
devnet-compose-0.1.0>    |
devnet-compose-0.1.0> 36 |         ProcessBuilder::new(
devnet-compose-0.1.0>    |         ^^^^^^^^^^^^^^ use of undeclared type `ProcessBuilder`
devnet-compose-0.1.0> 
devnet-compose-0.1.0> error[E0433]: failed to resolve: use of undeclared type `ProcessBuilder`
devnet-compose-0.1.0>   --> devnet-compose/src/main.rs:97:5
devnet-compose-0.1.0>    |
devnet-compose-0.1.0> 97 |     ProcessBuilder::new(
devnet-compose-0.1.0>    |     ^^^^^^^^^^^^^^ use of undeclared type `ProcessBuilder`
devnet-compose-0.1.0> 
devnet-compose-0.1.0> error[E0507]: cannot move out of static item `CYAN_STYLE`
devnet-compose-0.1.0>   --> devnet-compose/src/theme.rs:20:9
devnet-compose-0.1.0>    |
devnet-compose-0.1.0> 20 |         CYAN_STYLE
devnet-compose-0.1.0>    |         ^^^^^^^^^^ move occurs because `CYAN_STYLE` has type `Style`, which does not implement the `Copy` trait
devnet-compose-0.1.0>    |
devnet-compose-0.1.0> help: consider cloning the value if the performance cost is acceptable
devnet-compose-0.1.0>    |
devnet-compose-0.1.0> 20 |         CYAN_STYLE.clone()
devnet-compose-0.1.0>    |                   ++++++++
devnet-compose-0.1.0> 
devnet-compose-0.1.0> Some errors have detailed explanations: E0015, E0308, E0433, E0507.
devnet-compose-0.1.0> For more information about an error, try `rustc --explain E0015`.
devnet-compose-0.1.0> warning: `devnet-compose` (bin "devnet-compose") generated 1 warning
devnet-compose-0.1.0> error: could not compile `devnet-compose` (bin "devnet-compose") due to 6 previous errors; 1 warning emitted
error: build of '/nix/store/xp8c0yd7aq8dc8yhx18fprrggk90wmpw-devnet-compose-0.1.0.drv' on 'ssh-ng://nix-ssh@garnix6' failed: builder for '/nix/store/xp8c0yd7aq8dc8yhx18fprrggk90wmpw-devnet-compose-0.1.0.drv' failed with exit code 101;
       last 10 log lines:
       >    |
       > help: consider cloning the value if the performance cost is acceptable
       >    |
       > 20 |         CYAN_STYLE.clone()
       >    |                   ++++++++
       >
       > Some errors have detailed explanations: E0015, E0308, E0433, E0507.
       > For more information about an error, try `rustc --explain E0015`.
       > warning: `devnet-compose` (bin "devnet-compose") generated 1 warning
       > error: could not compile `devnet-compose` (bin "devnet-compose") due to 6 previous errors; 1 warning emitted
       For full logs, run 'nix log /nix/store/xp8c0yd7aq8dc8yhx18fprrggk90wmpw-devnet-compose-0.1.0.drv'.
error: builder for '/nix/store/xp8c0yd7aq8dc8yhx18fprrggk90wmpw-devnet-compose-0.1.0.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/4mcasn6y435j53k8x574z4ashffjgq94-devnet-compose-base.json.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mwxpbb1cpc333jg5yinr7cmgp2qvd5bh-devnet-compose-conf.json.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a61v7va7zbgsgwkbgcbzpx85nc9a623p-stream-devnet-compose.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vn6qp98crd5yskzcf0xy0qldi7hrl9hk-devnet-compose.tar.gz.drv' failed to build