Page MenuHomePhabricator

[chronik] Bump the rust rocksdb version
Changes PlannedPublic

Authored by Fabien on Thu, Oct 16, 07:48.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

This fixes the build with clang-20 and GCC 15.

Test Plan
ninja
./test/functional/test_runner.py chronik_*

Event Timeline

Fabien requested review of this revision.Thu, Oct 16, 07:48

@bot guix-linux guix-win guix-osx

Tail of the build log:

    Checking httpdate v1.0.3
    Checking foldhash v0.2.0
    Checking sync_wrapper v1.0.2
   Compiling ryu v1.0.20
    Checking hyper v1.7.0
   Compiling chronik-proto v0.1.0 (/work/chronik/chronik-proto)
    Checking async-tungstenite v0.29.1
    Checking karyon_core v0.6.1
    Checking postcard v1.1.3
    Checking chronik-plugin v0.1.0 (/work/chronik/chronik-plugin)
    Checking tungstenite v0.24.0
    Checking url v2.5.7
    Checking event-listener-strategy v0.5.4
   Compiling pyo3 v0.23.5
    Checking toml_datetime v0.6.11
    Checking serde_spanned v0.6.9
    Checking mime v0.3.17
    Checking seahash v4.1.0
    Checking winnow v0.7.13
    Checking toml_write v0.1.2
    Checking topo_sort v0.4.0
    Checking axum-core v0.4.5
    Checking tokio-tungstenite v0.24.0
    Checking async-channel v2.5.0
   Compiling karyon_jsonrpc_macro v0.6.1
    Checking hyper-util v0.1.17
    Checking memoffset v0.9.1
    Checking tower v0.5.2
    Checking serde_urlencoded v0.7.1
    Checking futures-executor v0.3.31
   Compiling chronik-bridge v0.1.0 (/work/chronik/chronik-bridge)
    Checking serde_path_to_error v0.1.20
    Checking unindent v0.2.4
    Checking matchit v0.7.3
    Checking unicode-segmentation v1.12.0
    Checking base64 v0.22.1
    Checking tower-http v0.5.2
    Checking futures v0.3.31
    Checking webpki-roots v1.0.3
    Checking convert_case v0.6.0
    Checking toml_edit v0.22.27
   Compiling librocksdb-sys v0.17.3+10.4.2
    Checking axum v0.7.9
   Compiling pyo3-macros v0.23.5
    Checking toml v0.8.23
    Checking chronik-plugin-impl v0.1.0 (/work/chronik/chronik-plugin-impl)
   Compiling aws-lc-rs v1.14.1
   Compiling rustls v0.23.32
    Checking rustls-webpki v0.103.7
    Checking tokio-rustls v0.26.4
    Checking karyon_async_rustls v0.6.1
    Checking karyon_net v0.6.1
    Checking karyon_jsonrpc v0.6.1
    Checking rocksdb v0.24.0
    Checking chronik-db v0.1.0 (/work/chronik/chronik-db)
    Checking chronik-indexer v0.1.0 (/work/chronik/chronik-indexer)
    Checking chronik-http v0.1.0 (/work/chronik/chronik-http)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 5m 54s
ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik-plugins failed with exit code 1

Tail of the build log:

                can_find_inv_in_poll(
                    quorum,
                    int(txid, 16),
                    response=AvalancheVoteError.ACCEPTED,
                    other_response=AvalancheVoteError.UNKNOWN,
                )
                return node.isfinaltransaction(txid)
''' not true after 60.0 seconds
2025-10-16T08:09:53.844000Z TestFramework (INFO): Stopping nodes
2025-10-16T08:09:53.998000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/chronik-client-integration-tests/test/tmp/test_runner_₿₵_🏃_20251016_080837_25338/setup_scripts/chronik-client_websocket_0
2025-10-16T08:09:53.998000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/chronik-client-integration-tests/test/tmp/test_runner_₿₵_🏃_20251016_080837_25338/setup_scripts/chronik-client_websocket_0/test_framework.log
2025-10-16T08:09:53.998000Z TestFramework (ERROR): 
2025-10-16T08:09:53.999000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/chronik-client-integration-tests/test/tmp/test_runner_₿₵_🏃_20251016_080837_25338/setup_scripts/chronik-client_websocket_0' to consolidate all logs
2025-10-16T08:09:53.999000Z TestFramework (ERROR): 
2025-10-16T08:09:53.999000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2025-10-16T08:09:53.999000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues
2025-10-16T08:09:53.999000Z TestFramework (ERROR): 
Running Unit Tests for Test Framework Modules
setup_scripts/chronik-client_websocket.py started
setup_scripts/chronik-client_websocket.py failed, Duration: 76 s

stdout:

stderr:


TEST                                      | STATUS    | DURATION

setup_scripts/chronik-client_websocket.py | ✖ Failed  | 76 s

ALL                                       | ✖ Failed  | 76 s (accumulated) 
Runtime: 76 s

Test runner for chronik-client_websocket completed with code 1
----------------------|---------|----------|---------|---------|------------------------------------
File                  | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                  
----------------------|---------|----------|---------|---------|------------------------------------
All files             |   41.52 |    17.92 |   37.62 |   41.62 |                                    
 chronik-client       |     100 |      100 |     100 |     100 |                                    
  index.ts            |     100 |      100 |     100 |     100 |                                    
 chronik-client/proto |   31.53 |    12.97 |   21.95 |    31.8 |                                    
  chronik.ts          |   31.53 |    12.97 |   21.95 |    31.8 | ...3,6779-6782,6788-6830,6866-6875 
 chronik-client/src   |   84.66 |    74.01 |   83.22 |   84.75 |                                    
  ChronikClient.ts    |   84.45 |    75.78 |   86.55 |   85.04 | ...4,1504,1529,1541,1556,1568,1574 
  failoverProxy.ts    |   79.46 |    61.29 |   66.66 |   78.89 | ...282-285,288,301,308,312,316,325 
  hex.ts              |   89.47 |       50 |      75 |   87.87 | 58,66-68                           
  validation.ts       |   95.55 |     87.5 |     100 |      95 | 33,39                              
----------------------|---------|----------|---------|---------|------------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='1385']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='3335']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='391']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='2181']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='228']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='606']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='1372']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='3296']
##teamcity[blockClosed name='Code Coverage Summary']
Build chronik-client-integration-tests failed with exit code 1

Tail of the build log:

note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
    Finished `release` profile [optimized] target(s) in 0.14s
[2/18] Building native src/secp256k1/gen_context
ninja: no work to do.
[4/18] Generating ../cargo/build/x86_64-pc-windows-gnu/cxxbridge/chronik-bridge/src/ffi.rs.cc, ../cargo/build/x86_64-pc-windows-gnu/cxxbridge/chronik_lib/src/ffi.rs.cc
Generating cxx bridge files
[6/11] Running security-check.py on iguana...
[7/11] Running security-check.py on bitcoin-cli...
[8/11] Running security-check.py on bitcoin-tx...
[9/11] Running security-check.py on bitcoin-wallet...
[10/11] Running security-check.py on bitcoind...
[11/11] Running security-check.py on bitcoin-qt...
[0/18] Preparing native build...
-- Looking for __builtin_clz
-- Looking for __builtin_clz - found
-- Looking for __builtin_clzl
-- Looking for __builtin_clzl - found
-- Looking for __builtin_clzll
-- Looking for __builtin_clzll - found
-- Looking for __builtin_ctz
-- Looking for __builtin_ctz - found
-- Looking for __builtin_ctzl
-- Looking for __builtin_ctzl - found
-- Looking for __builtin_ctzll
-- Looking for __builtin_ctzll - found
-- Looking for __builtin_popcount
-- Looking for __builtin_popcount - found
-- Looking for __builtin_saddll_overflow
-- Looking for __builtin_saddll_overflow - found
-- Looking for __builtin_ssubll_overflow
-- Looking for __builtin_ssubll_overflow - found
-- Configuring done
-- Generating done
-- Build files have been written to: /bitcoin/distsrc-bc4b62752090-x86_64-w64-mingw32/native
[1/18] cd /bitcoin/chronik/chronik-lib && /gnu/store/w6xrmrn9ndl0v22vmi8wivrjh6h6mqmc-cmake-minimal-3.24.2/bin/cmake -E env CC_x86_64_pc_windows_gnu=/home/bitcoinabc/.guix-profile/bin/x86_64-w64-mingw32-gcc CXX_x86_64_pc_windows_gnu=/home/bitcoinabc/.guix-profile/bin/x86_64-w64-mingw32-g++ AR_x86_64_pc_windows_gnu=/home/bitcoinabc/.guix-profile/bin/x86_64-w64-mingw32-ar CORROSION_BUILD_DIR=/bitcoin/distsrc-bc4b62752090-x86_64-w64-mingw32/chronik CARGO_BUILD_RUSTC=/home/bitcoinabc/.rustup/toolchains/1.87.0-x86_64-unknown-linux-gnu/bin/rustc /home/bitcoinabc/.rustup/toolchains/1.87.0-x86_64-unknown-linux-gnu/bin/cargo rustc --lib --target=x86_64-pc-windows-gnu --package chronik_lib --manifest-path /bitcoin/chronik/chronik-lib/Cargo.toml --target-dir /bitcoin/distsrc-bc4b62752090-x86_64-w64-mingw32/./cargo/build --release --locked -- -Cdefault-linker-libraries=yes -Clink-args=--target=x86_64-w64-mingw32
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /bitcoin/modules/avalanche-lib-wasm/Cargo.toml
workspace: /bitcoin/Cargo.toml
warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
    Finished `release` profile [optimized] target(s) in 0.14s
[2/18] Building native src/secp256k1/gen_context
ninja: no work to do.
[3/18] Running utility command for _cargo-build_chronik_lib
[5/10] Running symbol-check.py on bitcoin-cli...
[6/10] Running symbol-check.py on iguana...
[7/10] Running symbol-check.py on bitcoin-tx...
[8/10] Running symbol-check.py on bitcoin-wallet...
[9/10] Running symbol-check.py on bitcoind...
FAILED: src/CMakeFiles/symbol-check-bitcoind /bitcoin/distsrc-bc4b62752090-x86_64-w64-mingw32/src/CMakeFiles/symbol-check-bitcoind 
cd /bitcoin/distsrc-bc4b62752090-x86_64-w64-mingw32/src && /home/bitcoinabc/.guix-profile/bin/python3.10 /bitcoin/contrib/devtools/symbol-check.py /bitcoin/distsrc-bc4b62752090-x86_64-w64-mingw32/src/bitcoind.exe
combase.dll is not in ALLOWED_LIBRARIES!
/bitcoin/distsrc-bc4b62752090-x86_64-w64-mingw32/src/bitcoind.exe: failed DYNAMIC_LIBRARIES
[10/10] Running symbol-check.py on bitcoin-qt...
ninja: build stopped: subcommand failed.
Build guix-win failed with exit code 1
Fabien planned changes to this revision.Thu, Oct 16, 08:20