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 hubble-image [x86_64-linux] failed Dec 14, 2024 in 22m 22s

Run results

Build failed

Details

Last 100 lines of logs:

hubble-0.1.0>    Compiling aptos-short-hex-str v0.1.0 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling sqlformat v0.2.3
hubble-0.1.0>    Compiling move-package v0.1.0 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling aptos-secure-storage v0.1.0 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling jsonrpsee-http-client v0.24.3
hubble-0.1.0>    Compiling aptos-move-stdlib v0.1.1 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling aptos-vm-types v0.0.1 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling aptos-sdk-builder v0.2.0 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling jsonrpsee-ws-client v0.24.3
hubble-0.1.0>    Compiling prost v0.13.2
hubble-0.1.0>    Compiling ethereum-light-client-types v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/ethereum-light-client-types)
hubble-0.1.0>    Compiling ark-bls12-381 v0.4.0
hubble-0.1.0>    Compiling serde_merge v0.1.3
hubble-0.1.0>    Compiling toml_edit v0.22.9
hubble-0.1.0>    Compiling sqlx-core v0.7.4
hubble-0.1.0>    Compiling aptos-framework v0.1.0 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling aptos-config v0.1.0 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling tendermint-proto v0.39.1 (https://github.com/unionlabs/tendermint-rs?branch=v0.39.1-bn254#e891d238)
hubble-0.1.0>    Compiling jsonrpsee v0.24.3
hubble-0.1.0>    Compiling aptos-openapi v0.1.0 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling cometbft-types v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/cometbft-types)
hubble-0.1.0>    Compiling ed25519-consensus v2.1.0
hubble-0.1.0>    Compiling ed25519 v2.2.3
hubble-0.1.0>    Compiling serde_repr v0.1.18
hubble-0.1.0>    Compiling aptos-api-types v0.0.1 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling sqlx-postgres v0.7.4
hubble-0.1.0>    Compiling tungstenite v0.21.0
hubble-0.1.0>    Compiling tendermint v0.39.1 (https://github.com/unionlabs/tendermint-rs?branch=v0.39.1-bn254#e891d238)
hubble-0.1.0>    Compiling toml v0.8.12
hubble-0.1.0>    Compiling reconnecting-jsonrpc-ws-client v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/reconnecting-jsonrpc-ws-client)
hubble-0.1.0>    Compiling tendermint-config v0.39.1 (https://github.com/unionlabs/tendermint-rs?branch=v0.39.1-bn254#e891d238)
hubble-0.1.0>    Compiling async-tungstenite v0.24.0
hubble-0.1.0>    Compiling sqlx-macros-core v0.7.4
hubble-0.1.0>    Compiling aptos-rest-client v0.0.0 (https://github.com/unionlabs/aptos-core#fe799078)
hubble-0.1.0>    Compiling tendermint-light-client-types v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/tendermint-light-client-types)
hubble-0.1.0>    Compiling tracing-error v0.2.0
hubble-0.1.0>    Compiling md-5 v0.10.6
hubble-0.1.0>    Compiling move-bindgen-derive v0.0.0 (/build/hubble-patched-workspace-cargo-toml/lib/move-bindgen-derive)
hubble-0.1.0>    Compiling tendermint-rpc v0.39.1 (https://github.com/unionlabs/tendermint-rs?branch=v0.39.1-bn254#e891d238)
hubble-0.1.0>    Compiling color-spantrace v0.2.1
hubble-0.1.0>    Compiling move-bindgen v0.0.0 (/build/hubble-patched-workspace-cargo-toml/tools/move-bindgen)
hubble-0.1.0>    Compiling berachain-light-client-types v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/berachain-light-client-types)
hubble-0.1.0>    Compiling sqlx-macros v0.7.4
hubble-0.1.0>    Compiling cometbft-rpc v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/cometbft-rpc)
hubble-0.1.0>    Compiling scroll-rpc v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/scroll-rpc)
hubble-0.1.0>    Compiling beacon-api v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/beacon-api)
hubble-0.1.0>    Compiling scroll-api v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/scroll-api)
hubble-0.1.0>    Compiling ics23 v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/ics23)
hubble-0.1.0>    Compiling chain-utils v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/chain-utils)
hubble-0.1.0> warning: unused import: `SdkError`
hubble-0.1.0>   --> lib/chain-utils/src/cosmos_sdk.rs:29:52
hubble-0.1.0>    |
hubble-0.1.0> 29 |     cosmos_sdk::cosmos_sdk_error::{CosmosSdkError, SdkError},
hubble-0.1.0>    |                                                    ^^^^^^^^
hubble-0.1.0>    |
hubble-0.1.0>    = note: `#[warn(unused_imports)]` on by default
hubble-0.1.0> 
hubble-0.1.0> warning: `chain-utils` (lib) generated 1 warning (run `cargo fix --lib -p chain-utils` to apply 1 suggestion)
hubble-0.1.0>    Compiling sqlx v0.7.4
hubble-0.1.0>    Compiling aptos-move-ibc v0.1.0 (/build/hubble-patched-workspace-cargo-toml/generated/rust/aptos-move-ibc)
hubble-0.1.0>    Compiling color-eyre v0.6.3
hubble-0.1.0>    Compiling arbitrum-light-client-types v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/arbitrum-light-client-types)
hubble-0.1.0>    Compiling scroll-light-client-types v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/scroll-light-client-types)
hubble-0.1.0>    Compiling movement-light-client-types v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/movement-light-client-types)
hubble-0.1.0>    Compiling cometbls-light-client-types v0.1.0 (/build/hubble-patched-workspace-cargo-toml/lib/cometbls-light-client-types)
hubble-0.1.0>    Compiling backon v0.4.4
hubble-0.1.0>    Compiling serde-aux v4.5.0
hubble-0.1.0>    Compiling hubble v0.1.0 (/build/hubble-patched-workspace-cargo-toml/hubble)
hubble-0.1.0> error: this file contains an unclosed delimiter
hubble-0.1.0>    --> hubble/src/indexer/ethereum/fetcher_client.rs:150:29
hubble-0.1.0>     |
hubble-0.1.0> 97  | impl EthFetcherClient {
hubble-0.1.0>     |                       - unclosed delimiter
hubble-0.1.0> ...
hubble-0.1.0> 148 |     async fn fetch_eager_details(
hubble-0.1.0>     |                                 - unclosed delimiter
hubble-0.1.0> 149 |         &self,
hubble-0.1.0> 150 |         block: &AnyRpcBlock
hubble-0.1.0>     |                            ^
hubble-0.1.0> 
hubble-0.1.0> error: could not compile `hubble` (bin "hubble") due to 1 previous error
error: build of '/nix/store/v6a1pabqikzaa6hfzv2ki36a7n2rwqig-hubble-0.1.0.drv' on 'ssh-ng://nix-ssh@garnix5' failed: builder for '/nix/store/v6a1pabqikzaa6hfzv2ki36a7n2rwqig-hubble-0.1.0.drv' failed with exit code 101;
       last 10 log lines:
       > 97  | impl EthFetcherClient {
       >     |                       - unclosed delimiter
       > ...
       > 148 |     async fn fetch_eager_details(
       >     |                                 - unclosed delimiter
       > 149 |         &self,
       > 150 |         block: &AnyRpcBlock
       >     |                            ^
       >
       > error: could not compile `hubble` (bin "hubble") due to 1 previous error
       For full logs, run 'nix log /nix/store/v6a1pabqikzaa6hfzv2ki36a7n2rwqig-hubble-0.1.0.drv'.
error: builder for '/nix/store/v6a1pabqikzaa6hfzv2ki36a7n2rwqig-hubble-0.1.0.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/p1drb19ibmpi4cgiv5ibbslmpr373zj6-hubble-base.json.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ibh70p2l5lwbysw3palbixmyw8ra3gd3-hubble-customisation-layer.drv' failed to build
error: 1 dependencies of derivation '/nix/store/w2n486x0cdp5y5ikz26gjh9pg636lv9w-hubble-conf.json.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vjsx0cjidgyxfqr1xd57wyj3sk1kpbdn-stream-hubble.drv' failed to build
error: 1 dependencies of derivation '/nix/store/90f7jmar2qgj0lajd5wri48vw49i4zs0-hubble.tar.gz.drv' failed to build