Page MenuHomePhabricator

[Chronik] Add PluginsWrite::{insert, delete}
ClosedPublic

Authored by tobias_ruck on Jul 24 2024, 01:09.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC23ebe92a9b71: [Chronik] Add PluginsWrite::{insert, delete}
Summary

This actually runs the plugins and returns the results in the protobuf.

Depends on D16527 and D16528.

Test Plan

ninja check-functional

Event Timeline

Tail of the build log:

[239/581] Building CXX object src/CMakeFiles/common.dir/cashaddr.cpp.o
[240/581] Building CXX object src/CMakeFiles/common.dir/common/system.cpp.o
[241/581] Building CXX object src/CMakeFiles/script.dir/script/sign.cpp.o
[242/581] Building CXX object src/CMakeFiles/script.dir/script/standard.cpp.o
[243/581] Building CXX object src/CMakeFiles/script.dir/script/descriptor.cpp.o
[244/581] Building CXX object src/CMakeFiles/script.dir/script/signingprovider.cpp.o
[245/581] Building CXX object src/CMakeFiles/common.dir/common/bloom.cpp.o
[246/581] Building CXX object src/CMakeFiles/common.dir/common/configfile.cpp.o
[247/581] Building CXX object src/CMakeFiles/common.dir/common/args.cpp.o
[248/581] Building CXX object src/CMakeFiles/common.dir/chainparams.cpp.o
[249/581] Building CXX object src/CMakeFiles/common.dir/config.cpp.o
[250/581] Building CXX object src/CMakeFiles/common.dir/cashaddrenc.cpp.o
[251/581] Building CXX object src/CMakeFiles/common.dir/eventloop.cpp.o
[252/581] Building CXX object src/CMakeFiles/common.dir/consensus/merkle.cpp.o
[253/581] Building CXX object src/CMakeFiles/common.dir/feerate.cpp.o
[254/581] Building CXX object src/CMakeFiles/common.dir/compressor.cpp.o
[255/581] Building CXX object src/CMakeFiles/common.dir/coins.cpp.o
[256/581] Building CXX object src/CMakeFiles/common.dir/kernel/chainparams.cpp.o
[257/581] Building CXX object src/CMakeFiles/common.dir/merkleblock.cpp.o
[258/581] Building CXX object src/CMakeFiles/common.dir/key.cpp.o
[259/581] Building CXX object src/CMakeFiles/common.dir/net_permissions.cpp.o
[260/581] Building CXX object src/CMakeFiles/common.dir/netaddress.cpp.o
[261/581] Building CXX object src/CMakeFiles/common.dir/core_read.cpp.o
[262/581] Building CXX object src/CMakeFiles/common.dir/key_io.cpp.o
[263/581] Building CXX object src/CMakeFiles/common.dir/netbase.cpp.o
[264/581] Building CXX object src/CMakeFiles/common.dir/primitives/block.cpp.o
[265/581] Building CXX object src/CMakeFiles/common.dir/core_write.cpp.o
[266/581] Building CXX object src/CMakeFiles/common.dir/outputtype.cpp.o
[267/581] Building CXX object src/CMakeFiles/common.dir/protocol.cpp.o
[268/581] Building C object src/secp256k1/CMakeFiles/recover-bench.dir/src/bench_recover.c.o
[269/581] Building CXX object src/CMakeFiles/common.dir/scheduler.cpp.o
[270/581] Building CXX object src/CMakeFiles/common.dir/networks/abc/chainparamsconstants.cpp.o
[271/581] Building CXX object src/CMakeFiles/common.dir/policy/policy.cpp.o
[272/581] Building CXX object src/CMakeFiles/common.dir/warnings.cpp.o
[273/581] Building C object src/secp256k1/CMakeFiles/verify-bench.dir/src/bench_verify.c.o
[274/581] Building C object src/secp256k1/CMakeFiles/secp256k1.dir/src/secp256k1.c.o
[275/581] Building C object src/secp256k1/CMakeFiles/sign-bench.dir/src/bench_sign.c.o
[276/581] Building CXX object src/CMakeFiles/common.dir/networks/abc/checkpoints.cpp.o
[277/581] Building C object src/secp256k1/CMakeFiles/ecmult-bench.dir/src/bench_ecmult.c.o
[278/581] Building C object src/secp256k1/CMakeFiles/internal-bench.dir/src/bench_internal.c.o
[279/581] Building CXX object src/CMakeFiles/common.dir/psbt.cpp.o
[280/581] Building CXX object src/CMakeFiles/common.dir/rpc/rawtransaction_util.cpp.o
[281/581] Linking C static library src/secp256k1/libsecp256k1.a
[282/581] Building CXX object src/CMakeFiles/common.dir/rpc/util.cpp.o
[283/581] Building CXX object src/CMakeFiles/bitcoin-cli.dir/bitcoin-cli.cpp.o
[284/581] Building CXX object src/CMakeFiles/bitcoin-tx.dir/bitcoin-tx.cpp.o
[285/581] Linking C executable src/secp256k1/ecmult-bench
[286/581] Linking C executable src/secp256k1/verify-bench
[287/581] Linking C executable src/secp256k1/recover-bench
[288/581] Linking C executable src/secp256k1/internal-bench
[289/581] Linking C executable src/secp256k1/sign-bench
[290/581] Linking CXX static library src/libcommon.a
[291/581] Linking CXX static library src/libscript.a
[292/581] Linking CXX static library src/libbitcoinconsensus.a
[293/581] Linking CXX shared library src/libbitcoinconsensus.so.0.29.9
[294/581] Creating library symlink src/libbitcoinconsensus.so.0 src/libbitcoinconsensus.so
[295/581] Linking CXX executable src/bitcoin-cli
[296/581] Linking CXX executable src/bitcoin-tx
ninja: build stopped: cannot make progress due to previous errors.
Build chronik-client-integration-tests failed with exit code 1

Tail of the build log:

[239/581] Building CXX object src/CMakeFiles/script.dir/script/sign.cpp.o
[240/581] Building CXX object src/CMakeFiles/script.dir/script/descriptor.cpp.o
[241/581] Building CXX object src/CMakeFiles/script.dir/script/standard.cpp.o
[242/581] Building CXX object src/CMakeFiles/common.dir/common/bloom.cpp.o
[243/581] Building CXX object src/CMakeFiles/common.dir/common/system.cpp.o
[244/581] Building CXX object src/CMakeFiles/script.dir/script/signingprovider.cpp.o
[245/581] Building CXX object src/CMakeFiles/common.dir/consensus/merkle.cpp.o
[246/581] Building CXX object src/CMakeFiles/common.dir/common/args.cpp.o
[247/581] Building CXX object src/CMakeFiles/common.dir/common/configfile.cpp.o
[248/581] Building CXX object src/CMakeFiles/common.dir/config.cpp.o
[249/581] Building CXX object src/CMakeFiles/common.dir/cashaddr.cpp.o
[250/581] Building CXX object src/CMakeFiles/common.dir/chainparams.cpp.o
[251/581] Building CXX object src/CMakeFiles/common.dir/cashaddrenc.cpp.o
[252/581] Building CXX object src/CMakeFiles/common.dir/eventloop.cpp.o
[253/581] Building CXX object src/CMakeFiles/common.dir/feerate.cpp.o
[254/581] Building CXX object src/CMakeFiles/common.dir/compressor.cpp.o
[255/581] Building CXX object src/CMakeFiles/common.dir/merkleblock.cpp.o
[256/581] Building CXX object src/CMakeFiles/common.dir/coins.cpp.o
[257/581] Building CXX object src/CMakeFiles/common.dir/net_permissions.cpp.o
[258/581] Building CXX object src/CMakeFiles/common.dir/kernel/chainparams.cpp.o
[259/581] Building CXX object src/CMakeFiles/common.dir/key.cpp.o
[260/581] Building CXX object src/CMakeFiles/common.dir/key_io.cpp.o
[261/581] Building CXX object src/CMakeFiles/common.dir/policy/policy.cpp.o
[262/581] Building CXX object src/CMakeFiles/common.dir/netaddress.cpp.o
[263/581] Building CXX object src/CMakeFiles/common.dir/netbase.cpp.o
[264/581] Building CXX object src/CMakeFiles/common.dir/core_read.cpp.o
[265/581] Building CXX object src/CMakeFiles/common.dir/core_write.cpp.o
[266/581] Building CXX object src/CMakeFiles/common.dir/protocol.cpp.o
[267/581] Building C object src/secp256k1/CMakeFiles/recover-bench.dir/src/bench_recover.c.o
[268/581] Building CXX object src/CMakeFiles/common.dir/primitives/block.cpp.o
[269/581] Building CXX object src/CMakeFiles/common.dir/warnings.cpp.o
[270/581] Building CXX object src/CMakeFiles/common.dir/outputtype.cpp.o
[271/581] Building CXX object src/CMakeFiles/common.dir/scheduler.cpp.o
[272/581] Building CXX object src/CMakeFiles/common.dir/networks/abc/chainparamsconstants.cpp.o
[273/581] Building C object src/secp256k1/CMakeFiles/verify-bench.dir/src/bench_verify.c.o
[274/581] Building C object src/secp256k1/CMakeFiles/sign-bench.dir/src/bench_sign.c.o
[275/581] Building CXX object src/CMakeFiles/common.dir/networks/abc/checkpoints.cpp.o
[276/581] Building C object src/secp256k1/CMakeFiles/secp256k1.dir/src/secp256k1.c.o
[277/581] Building C object src/secp256k1/CMakeFiles/ecmult-bench.dir/src/bench_ecmult.c.o
[278/581] Building C object src/secp256k1/CMakeFiles/internal-bench.dir/src/bench_internal.c.o
[279/581] Building CXX object src/CMakeFiles/common.dir/psbt.cpp.o
[280/581] Building CXX object src/CMakeFiles/common.dir/rpc/rawtransaction_util.cpp.o
[281/581] Building CXX object src/CMakeFiles/common.dir/rpc/util.cpp.o
[282/581] Building CXX object src/CMakeFiles/bitcoin-cli.dir/bitcoin-cli.cpp.o
[283/581] Linking C static library src/secp256k1/libsecp256k1.a
[284/581] Building CXX object src/CMakeFiles/bitcoin-tx.dir/bitcoin-tx.cpp.o
[285/581] Linking C executable src/secp256k1/recover-bench
[286/581] Linking C executable src/secp256k1/verify-bench
[287/581] Linking C executable src/secp256k1/internal-bench
[288/581] Linking C executable src/secp256k1/ecmult-bench
[289/581] Linking C executable src/secp256k1/sign-bench
[290/581] Linking CXX static library src/libcommon.a
[291/581] Linking CXX static library src/libscript.a
[292/581] Linking CXX static library src/libbitcoinconsensus.a
[293/581] Linking CXX shared library src/libbitcoinconsensus.so.0.29.9
[294/581] Creating library symlink src/libbitcoinconsensus.so.0 src/libbitcoinconsensus.so
[295/581] Linking CXX executable src/bitcoin-cli
[296/581] Linking CXX executable src/bitcoin-tx
ninja: build stopped: cannot make progress due to previous errors.
Build ecash-agora-integration-tests failed with exit code 1

Tail of the build log:

[239/581] Building CXX object src/CMakeFiles/common.dir/common/system.cpp.o
[240/581] Building CXX object src/CMakeFiles/common.dir/cashaddr.cpp.o
[241/581] Building CXX object src/CMakeFiles/script.dir/script/descriptor.cpp.o
[242/581] Building CXX object src/CMakeFiles/script.dir/script/interpreter.cpp.o
[243/581] Building CXX object src/CMakeFiles/script.dir/script/signingprovider.cpp.o
[244/581] Building CXX object src/CMakeFiles/script.dir/script/standard.cpp.o
[245/581] Building CXX object src/CMakeFiles/common.dir/common/bloom.cpp.o
[246/581] Building CXX object src/CMakeFiles/common.dir/common/configfile.cpp.o
[247/581] Building CXX object src/CMakeFiles/common.dir/cashaddrenc.cpp.o
[248/581] Building CXX object src/CMakeFiles/common.dir/common/args.cpp.o
[249/581] Building CXX object src/CMakeFiles/common.dir/eventloop.cpp.o
[250/581] Building CXX object src/CMakeFiles/common.dir/consensus/merkle.cpp.o
[251/581] Building CXX object src/CMakeFiles/common.dir/chainparams.cpp.o
[252/581] Building CXX object src/CMakeFiles/common.dir/config.cpp.o
[253/581] Building CXX object src/CMakeFiles/common.dir/feerate.cpp.o
[254/581] Building CXX object src/CMakeFiles/common.dir/coins.cpp.o
[255/581] Building CXX object src/CMakeFiles/common.dir/compressor.cpp.o
[256/581] Building CXX object src/CMakeFiles/common.dir/kernel/chainparams.cpp.o
[257/581] Building CXX object src/CMakeFiles/common.dir/merkleblock.cpp.o
[258/581] Building CXX object src/CMakeFiles/common.dir/net_permissions.cpp.o
[259/581] Building CXX object src/CMakeFiles/common.dir/key_io.cpp.o
[260/581] Building CXX object src/CMakeFiles/common.dir/netaddress.cpp.o
[261/581] Building CXX object src/CMakeFiles/common.dir/key.cpp.o
[262/581] Building CXX object src/CMakeFiles/common.dir/outputtype.cpp.o
[263/581] Building CXX object src/CMakeFiles/common.dir/netbase.cpp.o
[264/581] Building CXX object src/CMakeFiles/common.dir/core_read.cpp.o
[265/581] Building CXX object src/CMakeFiles/common.dir/core_write.cpp.o
[266/581] Building CXX object src/CMakeFiles/common.dir/policy/policy.cpp.o
[267/581] Building CXX object src/CMakeFiles/common.dir/primitives/block.cpp.o
[268/581] Building CXX object src/CMakeFiles/common.dir/protocol.cpp.o
[269/581] Building CXX object src/CMakeFiles/common.dir/scheduler.cpp.o
[270/581] Building CXX object src/CMakeFiles/common.dir/networks/abc/chainparamsconstants.cpp.o
[271/581] Building C object src/secp256k1/CMakeFiles/recover-bench.dir/src/bench_recover.c.o
[272/581] Building CXX object src/CMakeFiles/common.dir/warnings.cpp.o
[273/581] Building C object src/secp256k1/CMakeFiles/verify-bench.dir/src/bench_verify.c.o
[274/581] Building C object src/secp256k1/CMakeFiles/sign-bench.dir/src/bench_sign.c.o
[275/581] Building C object src/secp256k1/CMakeFiles/secp256k1.dir/src/secp256k1.c.o
[276/581] Building CXX object src/CMakeFiles/common.dir/networks/abc/checkpoints.cpp.o
[277/581] Building C object src/secp256k1/CMakeFiles/ecmult-bench.dir/src/bench_ecmult.c.o
[278/581] Building C object src/secp256k1/CMakeFiles/internal-bench.dir/src/bench_internal.c.o
[279/581] Building CXX object src/CMakeFiles/common.dir/psbt.cpp.o
[280/581] Building CXX object src/CMakeFiles/common.dir/rpc/rawtransaction_util.cpp.o
[281/581] Building CXX object src/CMakeFiles/common.dir/rpc/util.cpp.o
[282/581] Building CXX object src/CMakeFiles/bitcoin-cli.dir/bitcoin-cli.cpp.o
[283/581] Building CXX object src/CMakeFiles/bitcoin-tx.dir/bitcoin-tx.cpp.o
[284/581] Linking C static library src/secp256k1/libsecp256k1.a
[285/581] Linking C executable src/secp256k1/internal-bench
[286/581] Linking C executable src/secp256k1/ecmult-bench
[287/581] Linking C executable src/secp256k1/recover-bench
[288/581] Linking C executable src/secp256k1/verify-bench
[289/581] Linking C executable src/secp256k1/sign-bench
[290/581] Linking CXX static library src/libcommon.a
[291/581] Linking CXX static library src/libscript.a
[292/581] Linking CXX static library src/libbitcoinconsensus.a
[293/581] Linking CXX shared library src/libbitcoinconsensus.so.0.29.9
[294/581] Creating library symlink src/libbitcoinconsensus.so.0 src/libbitcoinconsensus.so
[295/581] Linking CXX executable src/bitcoin-cli
[296/581] Linking CXX executable src/bitcoin-tx
ninja: build stopped: cannot make progress due to previous errors.
Build ecash-lib-integration-tests failed with exit code 1

Tail of the build log:

    Checking seahash v4.1.0
    Checking sync_wrapper v0.1.2
    Checking unicode-segmentation v1.11.0
   Compiling indoc v2.0.5
    Checking matchit v0.7.3
    Checking base64 v0.21.7
    Checking sync_wrapper v1.0.1
    Checking unindent v0.2.3
   Compiling prost-derive v0.11.9
    Checking convert_case v0.6.0
   Compiling serde_derive v1.0.197
   Compiling thiserror-impl v1.0.58
   Compiling futures-macro v0.3.30
   Compiling tokio-macros v2.2.0
   Compiling cxxbridge-macro v1.0.121
   Compiling pin-project-internal v1.1.5
   Compiling chronik-bridge v0.1.0 (/work/chronik/chronik-bridge)
    Checking futures-util v0.3.30
    Checking thiserror v1.0.58
    Checking pin-project v1.1.5
   Compiling librocksdb-sys v0.11.0+8.1.1
   Compiling pyo3-macros v0.22.2
    Checking serde v1.0.197
    Checking futures-executor v0.3.30
    Checking futures v0.3.30
    Checking bytes v1.6.0
    Checking serde_spanned v0.6.6
    Checking toml_datetime v0.6.6
    Checking serde_urlencoded v0.7.1
    Checking serde_path_to_error v0.1.16
    Checking toml_edit v0.22.14
    Checking http v1.1.0
    Checking bitcoinsuite-core v0.1.0 (/work/chronik/bitcoinsuite-core)
    Checking tokio v1.37.0
   Compiling prost v0.11.9
    Checking http-body v1.0.0
    Checking abc-rust-error v0.1.0 (/work/chronik/abc-rust-error)
    Checking http-body-util v0.1.1
    Checking tungstenite v0.21.0
    Checking postcard v1.0.8
   Compiling prost-types v0.11.9
    Checking bitcoinsuite-slp v0.1.0 (/work/chronik/bitcoinsuite-slp)
    Checking toml v0.8.14
    Checking tower-http v0.5.2
   Compiling prost-build v0.11.9
    Checking chronik-plugin-common v0.1.0 (/work/chronik/chronik-plugin-common)
    Checking chronik-plugin v0.1.0 (/work/chronik/chronik-plugin)
    Checking chronik-plugin-impl v0.1.0 (/work/chronik/chronik-plugin-impl)
   Compiling chronik-proto v0.1.0 (/work/chronik/chronik-proto)
    Checking hyper v1.2.0
    Checking tower v0.4.13
    Checking hyper-util v0.1.3
    Checking tokio-tungstenite v0.21.0
    Checking rocksdb v0.21.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 [unoptimized + debuginfo] target(s) in 2m 09s
ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik-plugins failed with exit code 1

Tail of the build log:

    Checking topo_sort v0.4.0
    Checking mime v0.3.17
    Checking unicode-segmentation v1.11.0
    Checking sync_wrapper v1.0.1
    Checking matchit v0.7.3
   Compiling indoc v2.0.5
    Checking unindent v0.2.3
    Checking base64 v0.21.7
   Compiling prost-derive v0.11.9
    Checking convert_case v0.6.0
   Compiling serde_derive v1.0.197
   Compiling thiserror-impl v1.0.58
   Compiling futures-macro v0.3.30
   Compiling tokio-macros v2.2.0
   Compiling cxxbridge-macro v1.0.121
   Compiling pin-project-internal v1.1.5
   Compiling chronik-bridge v0.1.0 (/work/chronik/chronik-bridge)
    Checking futures-util v0.3.30
    Checking thiserror v1.0.58
    Checking pin-project v1.1.5
   Compiling librocksdb-sys v0.11.0+8.1.1
   Compiling pyo3-macros v0.22.2
    Checking serde v1.0.197
    Checking futures-executor v0.3.30
    Checking futures v0.3.30
    Checking bytes v1.6.0
    Checking serde_spanned v0.6.6
    Checking toml_datetime v0.6.6
    Checking serde_path_to_error v0.1.16
    Checking serde_urlencoded v0.7.1
    Checking toml_edit v0.22.14
    Checking http v1.1.0
    Checking bitcoinsuite-core v0.1.0 (/work/chronik/bitcoinsuite-core)
    Checking tokio v1.37.0
    Checking postcard v1.0.8
    Checking prost v0.11.9
    Checking http-body v1.0.0
    Checking abc-rust-error v0.1.0 (/work/chronik/abc-rust-error)
    Checking http-body-util v0.1.1
    Checking tungstenite v0.21.0
    Checking bitcoinsuite-slp v0.1.0 (/work/chronik/bitcoinsuite-slp)
   Compiling prost-types v0.11.9
    Checking toml v0.8.14
    Checking tower-http v0.5.2
   Compiling prost-build v0.11.9
    Checking chronik-plugin-common v0.1.0 (/work/chronik/chronik-plugin-common)
    Checking chronik-plugin v0.1.0 (/work/chronik/chronik-plugin)
    Checking chronik-plugin-impl v0.1.0 (/work/chronik/chronik-plugin-impl)
    Checking hyper v1.2.0
    Checking hyper-util v0.1.3
    Checking tower v0.4.13
   Compiling chronik-proto v0.1.0 (/work/chronik/chronik-proto)
    Checking tokio-tungstenite v0.21.0
    Checking rocksdb v0.21.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 [unoptimized + debuginfo] target(s) in 2m 11s
ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik failed with exit code 1

Tail of the build log:

    assert self.rpc is not None, self._node_msg("Error: RPC not initialized")
AssertionError: [node 0] Error: RPC not initialized
2024-07-24T01:22:22.236000Z TestFramework (INFO): Stopping nodes
[node 0] Cleaning up leftover process
Running Unit Tests for Test Framework Modules
setup_scripts/ecash-lib_base.py started
setup_scripts/ecash-lib_base.py failed, Duration: 32 s

stdout:

stderr:
Traceback (most recent call last):
  File "/work/test/functional/setup_scripts/ecash-lib_base.py", line 35, in <module>
    EcashLibSetup().main()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 170, in main
    exit_code = self.shutdown()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 396, in shutdown
    self.stop_nodes()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 645, in stop_nodes
    node.stop_node(wait=wait, wait_until_stopped=False)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 512, in stop_node
    self.stop(wait=wait)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 280, in __getattr__
    assert self.rpc is not None, self._node_msg("Error: RPC not initialized")
AssertionError: [node 0] Error: RPC not initialized


TEST                            | STATUS    | DURATION

setup_scripts/ecash-lib_base.py | ✖ Failed  | 32 s

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

Test runner completed with code 1
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |       0 |        0 |       0 |       0 |                   
 ecash-agora       |       0 |        0 |       0 |       0 |                   
  eslint.config.js |       0 |        0 |       0 |       0 |                   
 ecash-agora/src   |       0 |        0 |       0 |       0 |                   
  ad.ts            |       0 |        0 |       0 |       0 | 33-146            
  consts.ts        |       0 |      100 |     100 |       0 | 8-11              
  index.ts         |       0 |        0 |       0 |       0 |                   
  oneshot.ts       |       0 |        0 |       0 |       0 | 65-279            
-------------------|---------|----------|---------|---------|-------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='123']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='38']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='15']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='123']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/ecash-agora-integration-tests-junit.xml': No such file or directory
Build ecash-agora-integration-tests failed with exit code 1

Tail of the build log:

     Running unittests src/lib.rs (abc-ci-builds/build-chronik/cargo/build/debug/deps/chronik_bridge-3c5f24b40a7a0ec3)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (abc-ci-builds/build-chronik/cargo/build/debug/deps/chronik_db-6d4111776cff85d7)

running 36 tests
test groups::script::tests::test_script_group ... ok
test index_tx::tests::test_tx_num_cache ... ok
test io::group_utxos::tests::test_value_group_utxos ... ok
test io::block_stats::tests::test_block_stats ... ok
test io::group_history::tests::test_value_group_history ... ok
test io::token::tests::test_batch_common::test_batch_topological_sort ... ok
test io::token::tests::test_batch_common::test_batch_cycle ... ok
test io::token::tests::test_batch_alp::test_batch_alp ... ok
test io::merge::tests::test_catch_merge ... ok
test io::token::tests::test_batch_burn::test_batch_burn ... ok
test mem::group_history::tests::test_mempool_group_history ... ok
test mem::group_utxos::tests::test_mempool_group_utxos ... ok
test mem::spent_by::tests::test_mempool_spent_by ... ok
test io::token::tests::test_batch_common::test_batch_skip_validation ... ok
test plugins::io::tests::test_plugin_metas ... FAILED
test io::token::tests::test_batch_disconnect_block::test_batch_disconnect ... ok
test reverse_lookup::tests::test_reverse_lookup ... ok
test ser::tests::test_deserialize_err ... ok
test ser::tests::test_deserialize_leftover_err ... ok
test ser::tests::test_err_display_deserialize ... ok
test ser::tests::test_err_display_deserialize_leftover ... ok
test ser::tests::test_err_display_serialize ... ok
test ser::tests::test_roundtrip ... ok
test ser::tests::test_roundtrip_vec ... ok
test ser::tests::test_serialize_err ... ok
test io::token::tests::test_batch_genesis::test_batch_genesis_alp ... ok
test io::token::tests::test_batch_genesis::test_batch_genesis_slp_fungible ... ok
test io::spent_by::tests::test_spent_by ... ok
test io::token::tests::test_batch_vault::test_batch_vault ... ok
test io::token::tests::test_batch_nft::test_batch_slp_nft1 ... ok
test io::token::tests::test_batch_unknown::test_batch_unknown ... ok
test mem::tokens::tests::test_mempool_tokens ... ok
test io::blocks::tests::test_blocks ... ok
test index_tx::tests::test_prepare_indexed_txs ... ok
test io::txs::tests::test_insert_txs ... ok
test reverse_lookup::tests::test_reverse_lookup_rng ... ok

failures:

---- plugins::io::tests::test_plugin_metas stdout ----
Error: Column family plugin_outputs doesn't exist


failures:
    plugins::io::tests::test_plugin_metas

test result: FAILED. 35 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.09s

error: test failed, to rerun pass `-p chronik-db --lib`
ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik failed with exit code 1

Tail of the build log:

test io::token::tests::test_batch_common::test_batch_topological_sort ... ok
test mem::group_history::tests::test_mempool_group_history ... ok
test mem::group_utxos::tests::test_mempool_group_utxos ... ok
test mem::spent_by::tests::test_mempool_spent_by ... ok
test io::spent_by::tests::test_spent_by ... ok
test io::token::tests::test_batch_disconnect_block::test_batch_disconnect ... ok
test io::token::tests::test_batch_genesis::test_batch_genesis_alp ... ok
test io::token::tests::test_batch_genesis::test_batch_genesis_slp_fungible ... ok
test ser::tests::test_deserialize_err ... ok
test ser::tests::test_deserialize_leftover_err ... ok
test ser::tests::test_err_display_deserialize ... ok
test ser::tests::test_err_display_deserialize_leftover ... ok
test ser::tests::test_err_display_serialize ... ok
test ser::tests::test_roundtrip ... ok
test ser::tests::test_roundtrip_vec ... ok
test ser::tests::test_serialize_err ... ok
test io::token::tests::test_batch_nft::test_batch_slp_nft1 ... ok
test io::token::tests::test_batch_unknown::test_batch_unknown ... ok
test io::token::tests::test_batch_vault::test_batch_vault ... ok
test plugins::io::tests::test_plugin_metas ... FAILED
test io::merge::tests::test_catch_merge ... ok
test mem::tokens::tests::test_mempool_tokens ... ok
test reverse_lookup::tests::test_reverse_lookup ... ok
test io::blocks::tests::test_blocks ... ok
test index_tx::tests::test_prepare_indexed_txs ... ok
test io::txs::tests::test_insert_txs ... ok
test reverse_lookup::tests::test_reverse_lookup_rng ... ok

failures:

---- plugins::io::tests::test_plugin_metas stdout ----
Error: Column family plugin_outputs doesn't exist


failures:
    plugins::io::tests::test_plugin_metas

test result: FAILED. 35 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.55s

error: test failed, to rerun pass `-p chronik-db --lib`
[6/6] cd /work && /usr/bin/cmake -E env CARGO_TARGET_DIR="/work/abc-ci-builds/build-chronik-plugins/cargo/build" CARGO_BUILD_RUSTC="/root/.rustup/toolchains/1.76.0-x86_64-unknown-linux-gnu/bin/rustc" CARGO_BUILD_RUSTDOC="/root/.rustup/toolchains/1.76.0-x86_64-unknown-linux-gnu/bin/rustdoc" /root/.rustup/toolchains/1.76.0-x86_64-unknown-linux-gnu/bin/cargo --locked clippy --package 'bitcoinsuite-*' -- -D warnings
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
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on build directory
    Checking either v1.10.0
    Checking serde v1.0.197
    Checking thiserror v1.0.58
    Checking itertools v0.10.5
    Checking bytes v1.6.0
    Checking bitcoinsuite-core v0.1.0 (/work/chronik/bitcoinsuite-core)
    Checking bitcoinsuite-slp v0.1.0 (/work/chronik/bitcoinsuite-slp)
    Finished dev [unoptimized + debuginfo] target(s) in 4m 24s
ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik-plugins failed with exit code 1

Tail of the build log:

setup_scripts/ecash-lib_base.py | ✖ Failed  | 31 s

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

Test runner completed with code 1
----------------------------|---------|----------|---------|---------|------------------------------
File                        | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s            
----------------------------|---------|----------|---------|---------|------------------------------
All files                   |   33.95 |    33.04 |   23.22 |   34.16 |                              
 ecash-lib                  |       0 |        0 |       0 |       0 |                              
  eslint.config.js          |       0 |        0 |       0 |       0 |                              
 ecash-lib/src              |   49.13 |       40 |    28.2 |    49.7 |                              
  ecc.ts                    |   57.14 |    83.33 |      40 |   57.14 | 23-31                        
  hash.ts                   |   66.66 |    83.33 |      40 |   66.66 | 14,17,20                     
  index.ts                  |       0 |        0 |       0 |       0 |                              
  indexBrowser.ts           |       0 |        0 |       0 |       0 |                              
  indexNodeJs.ts            |       0 |        0 |       0 |       0 |                              
  initBrowser.ts            |       0 |      100 |       0 |       0 | 11-13                        
  initNodeJs.ts             |     100 |      100 |     100 |     100 |                              
  op.ts                     |   49.15 |     50.9 |      80 |   49.15 | ...89,92,104,107,109,117-122 
  opcode.ts                 |     100 |    83.33 |     100 |     100 | 1                            
  script.ts                 |   35.08 |    33.33 |      20 |   32.72 | 35-42,63-179,188-199         
  sigHashType.ts            |      75 |       44 |   71.42 |      75 | 26-58                        
  tx.ts                     |    32.6 |    20.83 |    9.09 |   34.09 | ...8,143-145,150-151,156,176 
  txBuilder.ts              |   14.28 |    17.85 |    8.33 |   14.94 | ...4,222-225,234-238,244-248 
  unsignedTx.ts             |   15.47 |    17.85 |    7.14 |   16.04 | ...1,208-212,216,222-223,228 
 ecash-lib/src/ffi          |    8.38 |     1.44 |    1.88 |    8.59 |                              
  ecash_lib_wasm_browser.js |       0 |        0 |       0 |       0 | 3-336                        
  ecash_lib_wasm_nodejs.js  |   18.36 |        5 |    4.34 |   18.62 | ...0-155,171-243,250-251,255 
 ecash-lib/src/io           |   38.23 |    47.05 |   44.11 |   38.16 |                              
  bytes.ts                  |     7.4 |    71.42 |    12.5 |     7.4 | 13-64                        
  hex.ts                    |   58.97 |     62.5 |      40 |   61.76 | 33-37,41-45,50,58,66-68      
  int.ts                    |       0 |        0 |       0 |       0 |                              
  str.ts                    |   85.71 |    83.33 |   66.66 |   85.71 | 15                           
  varsize.ts                |      12 |    22.72 |   33.33 |      12 | 14-24,35-47                  
  writer.ts                 |       0 |        0 |       0 |       0 |                              
  writerbytes.ts            |   43.33 |    36.84 |    62.5 |   43.33 | 33,42-67,79                  
  writerlength.ts           |    62.5 |    83.33 |   57.14 |    62.5 | 26-36                        
 ecash-lib/src/test         |   46.57 |    35.55 |   43.75 |   45.58 |                              
  testRunner.ts             |   46.57 |    35.55 |   43.75 |   45.58 | ...9-71,83-85,98-108,118-189 
 ecash-lib/src/token        |   27.37 |    28.57 |   13.33 |   27.52 |                              
  alp.ts                    |   18.29 |    26.31 |    8.33 |   18.29 | ...3,127-131,135-137,141-145 
  common.ts                 |     100 |    83.33 |     100 |     100 | 1                            
  empp.ts                   |   46.15 |     62.5 |      25 |      50 | 11-14,22-28                  
  slp.ts                    |    28.2 |    13.51 |    7.69 |    28.2 | ...7,174-178,185-197,201-211 
----------------------------|---------|----------|---------|---------|------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='418']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='1231']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='151']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='457']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='49']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='211']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='410']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='1200']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/ecash-lib-integration-tests-junit.xml': No such file or directory
Build ecash-lib-integration-tests failed with exit code 1

Tail of the build log:

Running Unit Tests for Test Framework Modules
setup_scripts/chronik-client_block_and_blocks.py started
setup_scripts/chronik-client_block_and_blocks.py failed, Duration: 35 s

stdout:

stderr:
Traceback (most recent call last):
  File "/work/test/functional/setup_scripts/chronik-client_block_and_blocks.py", line 58, in <module>
    ChronikClient_Block_Setup().main()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 170, in main
    exit_code = self.shutdown()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 396, in shutdown
    self.stop_nodes()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 645, in stop_nodes
    node.stop_node(wait=wait, wait_until_stopped=False)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 512, in stop_node
    self.stop(wait=wait)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 280, in __getattr__
    assert self.rpc is not None, self._node_msg("Error: RPC not initialized")
AssertionError: [node 0] Error: RPC not initialized


TEST                                             | STATUS    | DURATION

setup_scripts/chronik-client_block_and_blocks.py | ✖ Failed  | 35 s

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

Test runner for chronik-client_block_and_blocks completed with code 1
-----------------------|---------|----------|---------|---------|-----------------------------------
File                   | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                 
-----------------------|---------|----------|---------|---------|-----------------------------------
All files              |    5.32 |     0.59 |    1.44 |    5.25 |                                   
 chronik-client        |     100 |      100 |     100 |     100 |                                   
  index.ts             |     100 |      100 |     100 |     100 |                                   
 chronik-client/proto  |    4.78 |     0.63 |    1.84 |    4.79 |                                   
  chronik.ts           |    5.44 |     0.65 |    1.81 |    5.42 | ...,3978-3985,3990-4027,4031-4036 
  chronikNode.ts       |     4.3 |     0.61 |    1.86 |    4.33 | ...,4991-5030,5038-5142,5146-5151 
 chronik-client/src    |       8 |        0 |       0 |    7.53 |                                   
  ChronikClient.ts     |    4.24 |        0 |       0 |    4.29 | 33-163,178-222,290-692            
  ChronikClientNode.ts |    5.76 |        0 |       0 |    5.76 | ...7-285,298-370,383-440,508-1184 
  failoverProxy.ts     |     5.5 |        0 |       0 |    5.66 | 34-324                            
  hex.ts               |   31.57 |        0 |       0 |   33.33 | 33-37,41-45,49-62,66-68           
  validation.ts        |      30 |        0 |       0 |   22.22 | 14-49,54-55,62-63                 
-----------------------|---------|----------|---------|---------|-----------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='223']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='4189']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='23']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='3897']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='11']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='761']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='218']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='4148']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/chronik-client-integration-tests-junit.xml': No such file or directory
Build chronik-client-integration-tests failed with exit code 1

fix delete function; add tests

Tail of the build log:

Running Unit Tests for Test Framework Modules
setup_scripts/chronik-client_block_and_blocks.py started
setup_scripts/chronik-client_block_and_blocks.py failed, Duration: 32 s

stdout:

stderr:
Traceback (most recent call last):
  File "/work/test/functional/setup_scripts/chronik-client_block_and_blocks.py", line 58, in <module>
    ChronikClient_Block_Setup().main()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 170, in main
    exit_code = self.shutdown()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 396, in shutdown
    self.stop_nodes()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 645, in stop_nodes
    node.stop_node(wait=wait, wait_until_stopped=False)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 512, in stop_node
    self.stop(wait=wait)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 280, in __getattr__
    assert self.rpc is not None, self._node_msg("Error: RPC not initialized")
AssertionError: [node 0] Error: RPC not initialized


TEST                                             | STATUS    | DURATION

setup_scripts/chronik-client_block_and_blocks.py | ✖ Failed  | 32 s

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

Test runner for chronik-client_block_and_blocks completed with code 1
-----------------------|---------|----------|---------|---------|-----------------------------------
File                   | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                 
-----------------------|---------|----------|---------|---------|-----------------------------------
All files              |    5.32 |     0.59 |    1.44 |    5.25 |                                   
 chronik-client        |     100 |      100 |     100 |     100 |                                   
  index.ts             |     100 |      100 |     100 |     100 |                                   
 chronik-client/proto  |    4.78 |     0.63 |    1.84 |    4.79 |                                   
  chronik.ts           |    5.44 |     0.65 |    1.81 |    5.42 | ...,3978-3985,3990-4027,4031-4036 
  chronikNode.ts       |     4.3 |     0.61 |    1.86 |    4.33 | ...,4991-5030,5038-5142,5146-5151 
 chronik-client/src    |       8 |        0 |       0 |    7.53 |                                   
  ChronikClient.ts     |    4.24 |        0 |       0 |    4.29 | 33-163,178-222,290-692            
  ChronikClientNode.ts |    5.76 |        0 |       0 |    5.76 | ...7-285,298-370,383-440,508-1184 
  failoverProxy.ts     |     5.5 |        0 |       0 |    5.66 | 34-324                            
  hex.ts               |   31.57 |        0 |       0 |   33.33 | 33-37,41-45,49-62,66-68           
  validation.ts        |      30 |        0 |       0 |   22.22 | 14-49,54-55,62-63                 
-----------------------|---------|----------|---------|---------|-----------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='223']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='4189']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='23']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='3897']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='11']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='761']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='218']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='4148']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/chronik-client-integration-tests-junit.xml': No such file or directory
Build chronik-client-integration-tests failed with exit code 1

Tail of the build log:

    assert self.rpc is not None, self._node_msg("Error: RPC not initialized")
AssertionError: [node 0] Error: RPC not initialized
2024-07-24T19:23:25.638000Z TestFramework (INFO): Stopping nodes
[node 0] Cleaning up leftover process
Running Unit Tests for Test Framework Modules
setup_scripts/ecash-lib_base.py started
setup_scripts/ecash-lib_base.py failed, Duration: 31 s

stdout:

stderr:
Traceback (most recent call last):
  File "/work/test/functional/setup_scripts/ecash-lib_base.py", line 35, in <module>
    EcashLibSetup().main()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 170, in main
    exit_code = self.shutdown()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 396, in shutdown
    self.stop_nodes()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 645, in stop_nodes
    node.stop_node(wait=wait, wait_until_stopped=False)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 512, in stop_node
    self.stop(wait=wait)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 280, in __getattr__
    assert self.rpc is not None, self._node_msg("Error: RPC not initialized")
AssertionError: [node 0] Error: RPC not initialized


TEST                            | STATUS    | DURATION

setup_scripts/ecash-lib_base.py | ✖ Failed  | 31 s

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

Test runner completed with code 1
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |       0 |        0 |       0 |       0 |                   
 ecash-agora       |       0 |        0 |       0 |       0 |                   
  eslint.config.js |       0 |        0 |       0 |       0 |                   
 ecash-agora/src   |       0 |        0 |       0 |       0 |                   
  ad.ts            |       0 |        0 |       0 |       0 | 33-146            
  consts.ts        |       0 |      100 |     100 |       0 | 8-11              
  index.ts         |       0 |        0 |       0 |       0 |                   
  oneshot.ts       |       0 |        0 |       0 |       0 | 65-279            
-------------------|---------|----------|---------|---------|-------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='123']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='38']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='15']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='123']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/ecash-agora-integration-tests-junit.xml': No such file or directory
Build ecash-agora-integration-tests failed with exit code 1

Tail of the build log:

    Checking ryu v1.0.17
    Checking data-encoding v2.5.0
    Checking embedded-io v0.4.0
    Checking chronik-plugin-common v0.1.0 (/work/chronik/chronik-plugin-common)
    Checking pin-project v1.1.5
    Checking postcard v1.0.8
    Checking tungstenite v0.21.0
    Checking chronik-plugin v0.1.0 (/work/chronik/chronik-plugin)
   Compiling prost-build v0.11.9
    Checking toml_datetime v0.6.6
    Checking serde_spanned v0.6.6
   Compiling pyo3 v0.22.2
    Checking topo_sort v0.4.0
    Checking seahash v4.1.0
    Checking hyper v1.2.0
    Checking winnow v0.6.13
    Checking sync_wrapper v0.1.2
    Checking mime v0.3.17
    Checking tokio-tungstenite v0.21.0
    Checking axum-core v0.4.3
    Checking tower v0.4.13
    Checking memoffset v0.9.1
    Checking serde_json v1.0.115
    Checking serde_urlencoded v0.7.1
    Checking hyper-util v0.1.3
    Checking futures-executor v0.3.30
    Checking serde_path_to_error v0.1.16
    Checking unicode-segmentation v1.11.0
    Checking matchit v0.7.3
    Checking unindent v0.2.3
    Checking base64 v0.21.7
    Checking sync_wrapper v1.0.1
    Checking futures v0.3.30
    Checking convert_case v0.6.0
    Checking tower-http v0.5.2
   Compiling chronik-proto v0.1.0 (/work/chronik/chronik-proto)
    Checking toml_edit v0.22.14
   Compiling chronik-bridge v0.1.0 (/work/chronik/chronik-bridge)
   Compiling librocksdb-sys v0.11.0+8.1.1
   Compiling pyo3-macros v0.22.2
    Checking axum v0.7.5
    Checking toml v0.8.14
    Checking chronik-plugin-impl v0.1.0 (/work/chronik/chronik-plugin-impl)
    Checking rocksdb v0.21.0
    Checking chronik-db v0.1.0 (/work/chronik/chronik-db)
error: associated function `add_cfs` is never used
   --> chronik/chronik-db/src/plugins/io.rs:259:19
    |
115 | impl<'a> PluginsWriter<'a> {
    | -------------------------- associated function in this implementation
...
259 |     pub(crate) fn add_cfs(columns: &mut Vec<ColumnFamilyDescriptor>) {
    |                   ^^^^^^^
    |
    = note: `-D dead-code` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(dead_code)]`

error: could not compile `chronik-db` (lib) due to 1 previous error
ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik-plugins failed with exit code 1

Tail of the build log:

running 2 tests
test error::tests::test_report_error ... ok
test protobuf::tests::test_protobuf ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (abc-ci-builds/build-chronik/cargo/build/debug/deps/chronik_indexer-9f80b17beeb795c1)

running 3 tests
test indexer::tests::test_indexer ... FAILED
test indexer::tests::test_plugin_versions ... FAILED
test indexer::tests::test_schema_version ... FAILED

failures:

---- indexer::tests::test_indexer stdout ----
Opening Chronik at /tmp/chronik-indexer--indexer.No97UCp7CFej/regtest/indexes/chronik

Chronik has version 11, initialized DB with that version

Warning: Wiping existing token index, since -chroniktokenindex=0

You will need to -reindex/-chronikreindex to restore

Error: Column family plugin_meta doesn't exist

Location:
    chronik/chronik-db/src/db.rs:152:12

---- indexer::tests::test_plugin_versions stdout ----
Error: Column family plugin_meta doesn't exist

Location:
    chronik/chronik-db/src/db.rs:152:12

---- indexer::tests::test_schema_version stdout ----
Opening Chronik at /tmp/chronik-indexer--schema_version.FIhevyJ2Tqcl/indexes/chronik

Chronik has version 11, initialized DB with that version

Warning: Wiping existing token index, since -chroniktokenindex=0

You will need to -reindex/-chronikreindex to restore

Error: Column family plugin_meta doesn't exist

Location:
    chronik/chronik-db/src/db.rs:152:12


failures:
    indexer::tests::test_indexer
    indexer::tests::test_plugin_versions
    indexer::tests::test_schema_version

test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.44s

error: test failed, to rerun pass `-p chronik-indexer --lib`
ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik failed with exit code 1

Tail of the build log:

setup_scripts/ecash-lib_base.py | ✖ Failed  | 31 s

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

Test runner completed with code 1
----------------------------|---------|----------|---------|---------|------------------------------
File                        | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s            
----------------------------|---------|----------|---------|---------|------------------------------
All files                   |   33.95 |    33.04 |   23.22 |   34.16 |                              
 ecash-lib                  |       0 |        0 |       0 |       0 |                              
  eslint.config.js          |       0 |        0 |       0 |       0 |                              
 ecash-lib/src              |   49.13 |       40 |    28.2 |    49.7 |                              
  ecc.ts                    |   57.14 |    83.33 |      40 |   57.14 | 23-31                        
  hash.ts                   |   66.66 |    83.33 |      40 |   66.66 | 14,17,20                     
  index.ts                  |       0 |        0 |       0 |       0 |                              
  indexBrowser.ts           |       0 |        0 |       0 |       0 |                              
  indexNodeJs.ts            |       0 |        0 |       0 |       0 |                              
  initBrowser.ts            |       0 |      100 |       0 |       0 | 11-13                        
  initNodeJs.ts             |     100 |      100 |     100 |     100 |                              
  op.ts                     |   49.15 |     50.9 |      80 |   49.15 | ...89,92,104,107,109,117-122 
  opcode.ts                 |     100 |    83.33 |     100 |     100 | 1                            
  script.ts                 |   35.08 |    33.33 |      20 |   32.72 | 35-42,63-179,188-199         
  sigHashType.ts            |      75 |       44 |   71.42 |      75 | 26-58                        
  tx.ts                     |    32.6 |    20.83 |    9.09 |   34.09 | ...8,143-145,150-151,156,176 
  txBuilder.ts              |   14.28 |    17.85 |    8.33 |   14.94 | ...4,222-225,234-238,244-248 
  unsignedTx.ts             |   15.47 |    17.85 |    7.14 |   16.04 | ...1,208-212,216,222-223,228 
 ecash-lib/src/ffi          |    8.38 |     1.44 |    1.88 |    8.59 |                              
  ecash_lib_wasm_browser.js |       0 |        0 |       0 |       0 | 3-336                        
  ecash_lib_wasm_nodejs.js  |   18.36 |        5 |    4.34 |   18.62 | ...0-155,171-243,250-251,255 
 ecash-lib/src/io           |   38.23 |    47.05 |   44.11 |   38.16 |                              
  bytes.ts                  |     7.4 |    71.42 |    12.5 |     7.4 | 13-64                        
  hex.ts                    |   58.97 |     62.5 |      40 |   61.76 | 33-37,41-45,50,58,66-68      
  int.ts                    |       0 |        0 |       0 |       0 |                              
  str.ts                    |   85.71 |    83.33 |   66.66 |   85.71 | 15                           
  varsize.ts                |      12 |    22.72 |   33.33 |      12 | 14-24,35-47                  
  writer.ts                 |       0 |        0 |       0 |       0 |                              
  writerbytes.ts            |   43.33 |    36.84 |    62.5 |   43.33 | 33,42-67,79                  
  writerlength.ts           |    62.5 |    83.33 |   57.14 |    62.5 | 26-36                        
 ecash-lib/src/test         |   46.57 |    35.55 |   43.75 |   45.58 |                              
  testRunner.ts             |   46.57 |    35.55 |   43.75 |   45.58 | ...9-71,83-85,98-108,118-189 
 ecash-lib/src/token        |   27.37 |    28.57 |   13.33 |   27.52 |                              
  alp.ts                    |   18.29 |    26.31 |    8.33 |   18.29 | ...3,127-131,135-137,141-145 
  common.ts                 |     100 |    83.33 |     100 |     100 | 1                            
  empp.ts                   |   46.15 |     62.5 |      25 |      50 | 11-14,22-28                  
  slp.ts                    |    28.2 |    13.51 |    7.69 |    28.2 | ...7,174-178,185-197,201-211 
----------------------------|---------|----------|---------|---------|------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='418']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='1231']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='151']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='457']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='49']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='211']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='410']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='1200']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/ecash-lib-integration-tests-junit.xml': No such file or directory
Build ecash-lib-integration-tests failed with exit code 1

Tail of the build log:

running 2 tests
test error::tests::test_report_error ... ok
test protobuf::tests::test_protobuf ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (abc-ci-builds/build-chronik/cargo/build/debug/deps/chronik_indexer-9f80b17beeb795c1)

running 3 tests
test indexer::tests::test_schema_version ... FAILED
test indexer::tests::test_plugin_versions ... FAILED
test indexer::tests::test_indexer ... FAILED

failures:

---- indexer::tests::test_schema_version stdout ----
Opening Chronik at /tmp/chronik-indexer--schema_version.5KtBwSdfz8RO/indexes/chronik

Chronik has version 11, initialized DB with that version

Warning: Wiping existing token index, since -chroniktokenindex=0

You will need to -reindex/-chronikreindex to restore

Error: Column family plugin_meta doesn't exist

Location:
    chronik/chronik-db/src/db.rs:152:12

---- indexer::tests::test_plugin_versions stdout ----
Error: Column family plugin_meta doesn't exist

Location:
    chronik/chronik-db/src/db.rs:152:12

---- indexer::tests::test_indexer stdout ----
Opening Chronik at /tmp/chronik-indexer--indexer.M9s0RRAuxotn/regtest/indexes/chronik

Chronik has version 11, initialized DB with that version

Warning: Wiping existing token index, since -chroniktokenindex=0

You will need to -reindex/-chronikreindex to restore

Error: Column family plugin_meta doesn't exist

Location:
    chronik/chronik-db/src/db.rs:152:12


failures:
    indexer::tests::test_indexer
    indexer::tests::test_plugin_versions
    indexer::tests::test_schema_version

test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.42s

error: test failed, to rerun pass `-p chronik-indexer --lib`
ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik failed with exit code 1

Tail of the build log:

    assert self.rpc is not None, self._node_msg("Error: RPC not initialized")
AssertionError: [node 0] Error: RPC not initialized
2024-07-24T21:03:12.745000Z TestFramework (INFO): Stopping nodes
[node 0] Cleaning up leftover process
Running Unit Tests for Test Framework Modules
setup_scripts/ecash-lib_base.py started
setup_scripts/ecash-lib_base.py failed, Duration: 32 s

stdout:

stderr:
Traceback (most recent call last):
  File "/work/test/functional/setup_scripts/ecash-lib_base.py", line 35, in <module>
    EcashLibSetup().main()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 170, in main
    exit_code = self.shutdown()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 396, in shutdown
    self.stop_nodes()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 645, in stop_nodes
    node.stop_node(wait=wait, wait_until_stopped=False)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 512, in stop_node
    self.stop(wait=wait)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 280, in __getattr__
    assert self.rpc is not None, self._node_msg("Error: RPC not initialized")
AssertionError: [node 0] Error: RPC not initialized


TEST                            | STATUS    | DURATION

setup_scripts/ecash-lib_base.py | ✖ Failed  | 32 s

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

Test runner completed with code 1
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |       0 |        0 |       0 |       0 |                   
 ecash-agora       |       0 |        0 |       0 |       0 |                   
  eslint.config.js |       0 |        0 |       0 |       0 |                   
 ecash-agora/src   |       0 |        0 |       0 |       0 |                   
  ad.ts            |       0 |        0 |       0 |       0 | 33-146            
  consts.ts        |       0 |      100 |     100 |       0 | 8-11              
  index.ts         |       0 |        0 |       0 |       0 |                   
  oneshot.ts       |       0 |        0 |       0 |       0 | 65-279            
-------------------|---------|----------|---------|---------|-------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='123']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='38']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='15']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='0']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='123']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/ecash-agora-integration-tests-junit.xml': No such file or directory
Build ecash-agora-integration-tests failed with exit code 1

Tail of the build log:

setup_scripts/ecash-lib_base.py | ✖ Failed  | 31 s

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

Test runner completed with code 1
----------------------------|---------|----------|---------|---------|------------------------------
File                        | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s            
----------------------------|---------|----------|---------|---------|------------------------------
All files                   |   33.95 |    33.04 |   23.22 |   34.16 |                              
 ecash-lib                  |       0 |        0 |       0 |       0 |                              
  eslint.config.js          |       0 |        0 |       0 |       0 |                              
 ecash-lib/src              |   49.13 |       40 |    28.2 |    49.7 |                              
  ecc.ts                    |   57.14 |    83.33 |      40 |   57.14 | 23-31                        
  hash.ts                   |   66.66 |    83.33 |      40 |   66.66 | 14,17,20                     
  index.ts                  |       0 |        0 |       0 |       0 |                              
  indexBrowser.ts           |       0 |        0 |       0 |       0 |                              
  indexNodeJs.ts            |       0 |        0 |       0 |       0 |                              
  initBrowser.ts            |       0 |      100 |       0 |       0 | 11-13                        
  initNodeJs.ts             |     100 |      100 |     100 |     100 |                              
  op.ts                     |   49.15 |     50.9 |      80 |   49.15 | ...89,92,104,107,109,117-122 
  opcode.ts                 |     100 |    83.33 |     100 |     100 | 1                            
  script.ts                 |   35.08 |    33.33 |      20 |   32.72 | 35-42,63-179,188-199         
  sigHashType.ts            |      75 |       44 |   71.42 |      75 | 26-58                        
  tx.ts                     |    32.6 |    20.83 |    9.09 |   34.09 | ...8,143-145,150-151,156,176 
  txBuilder.ts              |   14.28 |    17.85 |    8.33 |   14.94 | ...4,222-225,234-238,244-248 
  unsignedTx.ts             |   15.47 |    17.85 |    7.14 |   16.04 | ...1,208-212,216,222-223,228 
 ecash-lib/src/ffi          |    8.38 |     1.44 |    1.88 |    8.59 |                              
  ecash_lib_wasm_browser.js |       0 |        0 |       0 |       0 | 3-336                        
  ecash_lib_wasm_nodejs.js  |   18.36 |        5 |    4.34 |   18.62 | ...0-155,171-243,250-251,255 
 ecash-lib/src/io           |   38.23 |    47.05 |   44.11 |   38.16 |                              
  bytes.ts                  |     7.4 |    71.42 |    12.5 |     7.4 | 13-64                        
  hex.ts                    |   58.97 |     62.5 |      40 |   61.76 | 33-37,41-45,50,58,66-68      
  int.ts                    |       0 |        0 |       0 |       0 |                              
  str.ts                    |   85.71 |    83.33 |   66.66 |   85.71 | 15                           
  varsize.ts                |      12 |    22.72 |   33.33 |      12 | 14-24,35-47                  
  writer.ts                 |       0 |        0 |       0 |       0 |                              
  writerbytes.ts            |   43.33 |    36.84 |    62.5 |   43.33 | 33,42-67,79                  
  writerlength.ts           |    62.5 |    83.33 |   57.14 |    62.5 | 26-36                        
 ecash-lib/src/test         |   46.57 |    35.55 |   43.75 |   45.58 |                              
  testRunner.ts             |   46.57 |    35.55 |   43.75 |   45.58 | ...9-71,83-85,98-108,118-189 
 ecash-lib/src/token        |   27.37 |    28.57 |   13.33 |   27.52 |                              
  alp.ts                    |   18.29 |    26.31 |    8.33 |   18.29 | ...3,127-131,135-137,141-145 
  common.ts                 |     100 |    83.33 |     100 |     100 | 1                            
  empp.ts                   |   46.15 |     62.5 |      25 |      50 | 11-14,22-28                  
  slp.ts                    |    28.2 |    13.51 |    7.69 |    28.2 | ...7,174-178,185-197,201-211 
----------------------------|---------|----------|---------|---------|------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='418']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='1231']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='151']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='457']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='49']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='211']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='410']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='1200']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/ecash-lib-integration-tests-junit.xml': No such file or directory
Build ecash-lib-integration-tests failed with exit code 1

Tail of the build log:

Running Unit Tests for Test Framework Modules
setup_scripts/chronik-client_block_and_blocks.py started
setup_scripts/chronik-client_block_and_blocks.py failed, Duration: 32 s

stdout:

stderr:
Traceback (most recent call last):
  File "/work/test/functional/setup_scripts/chronik-client_block_and_blocks.py", line 58, in <module>
    ChronikClient_Block_Setup().main()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 170, in main
    exit_code = self.shutdown()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 396, in shutdown
    self.stop_nodes()
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 645, in stop_nodes
    node.stop_node(wait=wait, wait_until_stopped=False)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 512, in stop_node
    self.stop(wait=wait)
  File "/work/test/functional/setup_scripts/../test_framework/test_node.py", line 280, in __getattr__
    assert self.rpc is not None, self._node_msg("Error: RPC not initialized")
AssertionError: [node 0] Error: RPC not initialized


TEST                                             | STATUS    | DURATION

setup_scripts/chronik-client_block_and_blocks.py | ✖ Failed  | 32 s

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

Test runner for chronik-client_block_and_blocks completed with code 1
-----------------------|---------|----------|---------|---------|-----------------------------------
File                   | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                 
-----------------------|---------|----------|---------|---------|-----------------------------------
All files              |    5.32 |     0.59 |    1.44 |    5.25 |                                   
 chronik-client        |     100 |      100 |     100 |     100 |                                   
  index.ts             |     100 |      100 |     100 |     100 |                                   
 chronik-client/proto  |    4.78 |     0.63 |    1.84 |    4.79 |                                   
  chronik.ts           |    5.44 |     0.65 |    1.81 |    5.42 | ...,3978-3985,3990-4027,4031-4036 
  chronikNode.ts       |     4.3 |     0.61 |    1.86 |    4.33 | ...,4991-5030,5038-5142,5146-5151 
 chronik-client/src    |       8 |        0 |       0 |    7.53 |                                   
  ChronikClient.ts     |    4.24 |        0 |       0 |    4.29 | 33-163,178-222,290-692            
  ChronikClientNode.ts |    5.76 |        0 |       0 |    5.76 | ...7-285,298-370,383-440,508-1184 
  failoverProxy.ts     |     5.5 |        0 |       0 |    5.66 | 34-324                            
  hex.ts               |   31.57 |        0 |       0 |   33.33 | 33-37,41-45,49-62,66-68           
  validation.ts        |      30 |        0 |       0 |   22.22 | 14-49,54-55,62-63                 
-----------------------|---------|----------|---------|---------|-----------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='223']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='4189']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='23']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='3897']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='11']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='761']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='218']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='4148']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/chronik-client-integration-tests-junit.xml': No such file or directory
Build chronik-client-integration-tests failed with exit code 1

Tail of the build log:

running 2 tests
test error::tests::test_report_error ... ok
test protobuf::tests::test_protobuf ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (abc-ci-builds/build-chronik-plugins/cargo/build/debug/deps/chronik_indexer-9f80b17beeb795c1)

running 3 tests
test indexer::tests::test_plugin_versions ... FAILED
test indexer::tests::test_indexer ... FAILED
test indexer::tests::test_schema_version ... FAILED

failures:

---- indexer::tests::test_plugin_versions stdout ----
Error: Column family plugin_meta doesn't exist

Location:
    chronik/chronik-db/src/db.rs:152:12

---- indexer::tests::test_indexer stdout ----
Opening Chronik at /tmp/chronik-indexer--indexer.vv26dBNdiPkm/regtest/indexes/chronik

Chronik has version 11, initialized DB with that version

Warning: Wiping existing token index, since -chroniktokenindex=0

You will need to -reindex/-chronikreindex to restore

Error: Column family plugin_meta doesn't exist

Location:
    chronik/chronik-db/src/db.rs:152:12

---- indexer::tests::test_schema_version stdout ----
Opening Chronik at /tmp/chronik-indexer--schema_version.gIPLIyFGyhqd/indexes/chronik

Chronik has version 11, initialized DB with that version

Warning: Wiping existing token index, since -chroniktokenindex=0

You will need to -reindex/-chronikreindex to restore

Error: Column family plugin_meta doesn't exist

Location:
    chronik/chronik-db/src/db.rs:152:12


failures:
    indexer::tests::test_indexer
    indexer::tests::test_plugin_versions
    indexer::tests::test_schema_version

test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.51s

error: test failed, to rerun pass `-p chronik-indexer --lib`
ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik-plugins failed with exit code 1

enable --features plugins on tests if BITCOIN_BUILD_CHRONIK_PLUGINS is on

otherwise our beautiful PluginsWriter test is not run

Tail of the build log:

    Checking toml_edit v0.22.14
    Checking spin v0.9.8
    Checking idna v0.5.0
    Checking abc-rust-error v0.1.0 (/work/chronik/abc-rust-error)
    Checking hash32 v0.2.1
    Checking tracing-core v0.1.32
    Checking chronik-util v0.1.0 (/work/chronik/chronik-util)
    Checking stable_deref_trait v1.2.0
    Checking tower-layer v0.3.2
    Checking tower-service v0.3.2
    Checking heapless v0.7.17
    Checking url v2.5.0
    Checking rand v0.8.5
    Checking tracing v0.1.40
    Checking http-body-util v0.1.1
    Checking sha1 v0.10.6
    Checking chronik-plugin-common v0.1.0 (/work/chronik/chronik-plugin-common)
    Checking httpdate v1.0.3
    Checking cobs v0.2.3
    Checking embedded-io v0.4.0
    Checking smallvec v1.13.2
    Checking ryu v1.0.17
    Checking utf-8 v0.7.6
    Checking data-encoding v2.5.0
    Checking postcard v1.0.8
    Checking pin-project v1.1.5
    Checking topo_sort v0.4.0
    Checking hyper v1.2.0
    Checking toml v0.8.14
    Checking seahash v4.1.0
    Checking tungstenite v0.21.0
    Checking sync_wrapper v0.1.2
    Checking mime v0.3.17
    Checking tower v0.4.13
   Compiling chronik-proto v0.1.0 (/work/chronik/chronik-proto)
    Checking serde_urlencoded v0.7.1
    Checking axum-core v0.4.3
    Checking serde_json v1.0.115
    Checking futures-executor v0.3.30
    Checking serde_path_to_error v0.1.16
    Checking matchit v0.7.3
    Checking tokio-tungstenite v0.21.0
    Checking hyper-util v0.1.3
    Checking base64 v0.21.7
    Checking sync_wrapper v1.0.1
    Checking futures v0.3.30
    Checking tower-http v0.5.2
   Compiling pyo3-macros v0.22.2
   Compiling chronik-bridge v0.1.0 (/work/chronik/chronik-bridge)
   Compiling librocksdb-sys v0.11.0+8.1.1
    Checking axum v0.7.5
    Checking chronik-plugin-impl v0.1.0 (/work/chronik/chronik-plugin-impl)
    Checking chronik-plugin v0.1.0 (/work/chronik/chronik-plugin)
    Checking rocksdb v0.21.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 [unoptimized + debuginfo] target(s) in 4m 19s
ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik-plugins failed with exit code 1
Fabien requested changes to this revision.Jul 25 2024, 14:39

The build is failing, back to your queue

This revision now requires changes to proceed.Jul 25 2024, 14:39

fix build, add chronik-db with plugins feature test manually

better store by (plugin_idx, db_outpoint) to make reindexing easier

Tail of the build log:

  Downloaded stable-eyre v0.2.2
  Downloaded rustc-demangle v0.1.23
  Downloaded miniz_oxide v0.7.2
  Downloaded libc v0.2.153
  Downloaded http v1.1.0
  Downloaded gimli v0.28.1
  Downloaded fnv v1.0.7
  Downloaded cc v1.0.92
  Downloaded object v0.32.2
  Downloaded memchr v2.7.2
  Downloaded indenter v0.3.3
  Downloaded backtrace v0.3.71
  Downloaded addr2line v0.21.0
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on build directory
   Compiling memchr v2.7.2
   Compiling libc v0.2.153
   Compiling bytes v1.6.0
   Compiling abc-rust-lint v0.1.0 (/work/chronik/abc-rust-lint)
   Compiling http v1.1.0
   Compiling object v0.32.2
   Compiling backtrace v0.3.71
   Compiling stable-eyre v0.2.2
   Compiling abc-rust-error v0.1.0 (/work/chronik/abc-rust-error)
    Finished test [unoptimized + debuginfo] target(s) in 4m 37s
     Running unittests src/lib.rs (abc-ci-builds/build-chronik/cargo/build/debug/deps/abc_rust_error-4c238c19c021ccae)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/test_error.rs (abc-ci-builds/build-chronik/cargo/build/debug/deps/test_error-98d140e82fe05245)

running 1 test
test test_error ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/lib.rs (abc-ci-builds/build-chronik/cargo/build/debug/deps/abc_rust_lint-95bfaf7c76bca9d6)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests abc-rust-error

running 1 test
test chronik/abc-rust-error/src/http_status.rs - http_status::parse_error_status (line 10) ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s

   Doc-tests abc-rust-lint

running 1 test
test chronik/abc-rust-lint/src/lib.rs - lint (line 13) ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s

ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik failed with exit code 1

Tail of the build log:

   Compiling bitcoinsuite-slp v0.1.0 (/work/chronik/bitcoinsuite-slp)
   Compiling abc-rust-error v0.1.0 (/work/chronik/abc-rust-error)
   Compiling toml v0.8.14
   Compiling chronik-plugin-common v0.1.0 (/work/chronik/chronik-plugin-common)
   Compiling chronik-plugin-impl v0.1.0 (/work/chronik/chronik-plugin-impl)
   Compiling chronik-plugin v0.1.0 (/work/chronik/chronik-plugin)
   Compiling rocksdb v0.21.0
   Compiling chronik-db v0.1.0 (/work/chronik/chronik-db)
    Finished test [unoptimized + debuginfo] target(s) in 6m 39s
     Running unittests src/lib.rs (abc-ci-builds/build-chronik-plugins/cargo/build/debug/deps/chronik_db-a3c26c153718321c)

running 37 tests
test groups::script::tests::test_script_group ... ok
test index_tx::tests::test_tx_num_cache ... ok
test io::block_stats::tests::test_block_stats ... ok
test io::group_utxos::tests::test_value_group_utxos ... ok
test io::group_history::tests::test_value_group_history ... ok
test io::token::tests::test_batch_common::test_batch_cycle ... ok
test io::token::tests::test_batch_common::test_batch_skip_validation ... ok
test io::token::tests::test_batch_common::test_batch_topological_sort ... ok
test io::token::tests::test_batch_alp::test_batch_alp ... ok
test io::token::tests::test_batch_burn::test_batch_burn ... ok
test mem::group_history::tests::test_mempool_group_history ... ok
test mem::group_utxos::tests::test_mempool_group_utxos ... ok
test mem::spent_by::tests::test_mempool_spent_by ... ok
test io::merge::tests::test_catch_merge ... ok
test io::token::tests::test_batch_disconnect_block::test_batch_disconnect ... ok
test io::token::tests::test_batch_genesis::test_batch_genesis_alp ... ok
test plugins::io::tests::test_plugin_metas ... ok
test io::token::tests::test_batch_genesis::test_batch_genesis_slp_fungible ... ok
test ser::tests::test_deserialize_err ... ok
test ser::tests::test_deserialize_leftover_err ... ok
test ser::tests::test_err_display_deserialize ... ok
test ser::tests::test_err_display_deserialize_leftover ... ok
test ser::tests::test_err_display_serialize ... ok
test ser::tests::test_roundtrip ... ok
test ser::tests::test_roundtrip_vec ... ok
test ser::tests::test_serialize_err ... ok
test io::token::tests::test_batch_nft::test_batch_slp_nft1 ... ok
test io::token::tests::test_batch_unknown::test_batch_unknown ... ok
test io::token::tests::test_batch_vault::test_batch_vault ... ok
test mem::tokens::tests::test_mempool_tokens ... ok
test io::spent_by::tests::test_spent_by ... ok
test reverse_lookup::tests::test_reverse_lookup ... ok
test index_tx::tests::test_prepare_indexed_txs ... ok
test plugins::io::tests::test_plugin_writer ... ok
test io::blocks::tests::test_blocks ... ok
test io::txs::tests::test_insert_txs ... ok
test reverse_lookup::tests::test_reverse_lookup_rng ... ok

test result: ok. 37 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.12s

   Doc-tests chronik-db

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

ninja: build stopped: cannot make progress due to previous errors.
Build build-chronik-plugins failed with exit code 1
Fabien added inline comments.
chronik/chronik-db/src/plugins/io.rs
733

fail failed ?

This revision is now accepted and ready to land.Jul 29 2024, 08:05
chronik/chronik-db/src/plugins/io.rs
733

the plugin is called "fail"; probably better to put quotation marks though

improve plugin failure message

Tail of the build log:

  File "/work/abc-ci-builds/ecash-lib-integration-tests/test/functional/test_runner.py", line 361, in main
    os.makedirs(tmpdir)
  File "/usr/lib/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/work/abc-ci-builds/ecash-lib-integration-tests/test/tmp/test_runner_₿₵_🏃_20240729_092046'
Test runner completed with code 1
----------------------------|---------|----------|---------|---------|------------------------------
File                        | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s            
----------------------------|---------|----------|---------|---------|------------------------------
All files                   |   58.05 |    48.17 |   56.13 |   57.97 |                              
 ecash-lib                  |       0 |        0 |       0 |       0 |                              
  eslint.config.js          |       0 |        0 |       0 |       0 |                              
 ecash-lib/src              |   71.13 |    54.46 |   72.15 |   70.85 |                              
  ecc.ts                    |   57.14 |    83.33 |      40 |   57.14 | 23-31                        
  hash.ts                   |   88.88 |    83.33 |      80 |   88.88 | 14                           
  index.ts                  |       0 |        0 |       0 |       0 |                              
  indexBrowser.ts           |       0 |        0 |       0 |       0 |                              
  indexNodeJs.ts            |       0 |        0 |       0 |       0 |                              
  initBrowser.ts            |       0 |      100 |       0 |       0 | 11-13                        
  initNodeJs.ts             |     100 |      100 |     100 |     100 |                              
  op.ts                     |      40 |    44.44 |   66.66 |      40 | ...4,107,109,117-122,133-161 
  opcode.ts                 |     100 |    83.33 |     100 |     100 | 1                            
  script.ts                 |   52.63 |    38.09 |      60 |    50.9 | ...4-135,146,156,166,188-199 
  sigHashType.ts            |   77.77 |       44 |   85.71 |   77.77 | 26-38                        
  tx.ts                     |   93.47 |    79.16 |    90.9 |   93.18 | 123-125                      
  txBuilder.ts              |   52.74 |    46.42 |   66.66 |   51.72 | ...3-107,124-179,214,244-248 
  unsignedTx.ts             |    73.8 |    57.14 |   78.57 |   74.07 | ...3,151,159,184,192,198-201 
 ecash-lib/src/ffi          |   28.26 |    15.94 |   16.98 |   28.98 |                              
  ecash_lib_wasm_browser.js |       0 |        0 |       0 |       0 | 3-336                        
  ecash_lib_wasm_nodejs.js  |    61.9 |       55 |   39.13 |   62.75 | ...1,197-215,237,250-251,255 
 ecash-lib/src/io           |   59.55 |    60.29 |   70.58 |   58.77 |                              
  bytes.ts                  |     7.4 |    71.42 |    12.5 |     7.4 | 13-64                        
  hex.ts                    |   82.05 |     62.5 |      80 |   82.35 | 41-45,50,58                  
  int.ts                    |       0 |        0 |       0 |       0 |                              
  str.ts                    |   85.71 |    83.33 |   66.66 |   85.71 | 15                           
  varsize.ts                |      32 |    36.36 |   66.66 |      32 | 14-24,40-47                  
  writer.ts                 |       0 |        0 |       0 |       0 |                              
  writerbytes.ts            |   83.33 |    68.42 |     100 |   83.33 | 33,43,53,63,79               
  writerlength.ts           |     100 |    83.33 |     100 |     100 | 1                            
 ecash-lib/src/test         |   84.93 |    51.11 |   81.25 |   85.29 |                              
  testRunner.ts             |   84.93 |    51.11 |   81.25 |   85.29 | 69-71,83-85,108,119,162,185  
 ecash-lib/src/token        |   60.33 |    47.14 |   53.33 |   60.11 |                              
  alp.ts                    |   82.92 |    89.47 |   83.33 |   82.92 | 110-123,142                  
  common.ts                 |     100 |    83.33 |     100 |     100 | 1                            
  empp.ts                   |    92.3 |       75 |     100 |   91.66 | 12                           
  slp.ts                    |    28.2 |    13.51 |    7.69 |    28.2 | ...7,174-178,185-197,201-211 
----------------------------|---------|----------|---------|---------|------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='724']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='1247']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='224']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='465']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='119']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='212']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='705']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='1216']
##teamcity[blockClosed name='Code Coverage Summary']
mv: cannot stat 'test_results/ecash-lib-integration-tests-junit.xml': No such file or directory
Build ecash-lib-integration-tests failed with exit code 1