Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test failures when used by mina-block-explorer #1780

Open
jhult opened this issue Feb 27, 2025 · 0 comments
Open

Unit test failures when used by mina-block-explorer #1780

jhult opened this issue Feb 27, 2025 · 0 comments
Assignees
Labels
Bug Something isn't working properly
Milestone

Comments

@jhult
Copy link
Member

jhult commented Feb 27, 2025

We updated mina-block-explorer to use (as a submodule) the latest commit of the Indexer: Granola-Team/mina-block-explorer@b25d616.

However, when trying to run just t2 in mina-block-explorer, we got the following errors:

                      PASS [   0.028s] mina-indexer ledger::diff::account::tests::zkapp_account_diff_new_token
                      PASS [   0.024s] mina-indexer ledger::genesis::tests::parse_v1skipped
                      FAIL [   0.024s] mina-indexer ledger::genesis::tests::parse_v2skipped
mina-indexer>
mina-indexer> --- STDOUT:              mina-indexer ledger::genesis::tests::parse_v2 ---
mina-indexer>
mina-indexer> running 1 test
mina-indexer> test ledger::genesis::tests::parse_v2 ... FAILED
mina-indexer>      Summary [   0.271s] 100/292 tests run: 99 passed, 1 failed, 1 skippedskipped
mina-indexer>         FAIL [   0.024s] mina-indexer ledger::genesis::tests::parse_v2
mina-indexer> + exitHandlerun failed0/292: 0 running, 99 passed, 1 failed, 1 skipped     -fast to run all tests)
mina-indexer> + exitCode=100
mina-indexer> + set +e
mina-indexer> + '[' -n '' ']'
mina-indexer> + ((  100 != 0  ))
mina-indexer> + runHook failureHook
mina-indexer> + local hookName=failureHook
mina-indexer> + shift
mina-indexer> + local 'hooksSlice=failureHooks[@]'
mina-indexer> + local hook
mina-indexer> + for hook in "_callImplicitHook 0 $hookName" ${!hooksSlice+"${!hooksSlice}"}
mina-indexer> + _logHook failureHook '_callImplicitHook 0 failureHook'
mina-indexer> + [[ -z 2 ]]
mina-indexer> + local hookKind=failureHook
mina-indexer> + local 'hookExpr=_callImplicitHook 0 failureHook'
mina-indexer> + shift 2
mina-indexer> + declare -F '_callImplicitHook 0 failureHook'
mina-indexer> + type -p '_callImplicitHook 0 failureHook'
mina-indexer> + [[ _callImplicitHook 0 failureHook != \_\c\a\l\l\I\m\p\l\i\c\i\t\H\o\o\k* ]]
mina-indexer> + _eval '_callImplicitHook 0 failureHook'
mina-indexer> + declare -F '_callImplicitHook 0 failureHook'
mina-indexer> + eval '_callImplicitHook 0 failureHook'
mina-indexer> ++ _callImplicitHook 0 failureHook
mina-indexer> ++ local def=0
mina-indexer> ++ local hookName=failureHook
mina-indexer> ++ declare -F failureHook
mina-indexer> ++ type -p failureHook
mina-indexer> ++ '[' -n '' ']'
mina-indexer> ++ return 0
mina-indexer> + return 0
mina-indexer> + '[' -n '' ']'
mina-indexer> + return 100
error: builder for '/nix/store/qbsgjmwghbg47hy0cj4vz05bm4rknpqz-mina-indexer-0.2.0.drv' failed with exit code 100;
       last 25 log lines:
       > + shift
       > + local 'hooksSlice=failureHooks[@]'
       > + local hook
       > + for hook in "_callImplicitHook 0 $hookName" ${!hooksSlice+"${!hooksSlice}"}
       > + _logHook failureHook '_callImplicitHook 0 failureHook'
       > + [[ -z 2 ]]
       > + local hookKind=failureHook
       > + local 'hookExpr=_callImplicitHook 0 failureHook'
       > + shift 2
       > + declare -F '_callImplicitHook 0 failureHook'
       > + type -p '_callImplicitHook 0 failureHook'
       > + [[ _callImplicitHook 0 failureHook != \_\c\a\l\l\I\m\p\l\i\c\i\t\H\o\o\k* ]]
       > + _eval '_callImplicitHook 0 failureHook'
       > + declare -F '_callImplicitHook 0 failureHook'
       > + eval '_callImplicitHook 0 failureHook'
       > ++ _callImplicitHook 0 failureHook
       > ++ local def=0
       > ++ local hookName=failureHook
       > ++ declare -F failureHook
       > ++ type -p failureHook
       > ++ '[' -n '' ']'
       > ++ return 0
       > + return 0
       > + '[' -n '' ']'
       > + return 100
       For full logs, run 'nix-store -l /nix/store/qbsgjmwghbg47hy0cj4vz05bm4rknpqz-mina-indexer-0.2.0.drv'.
┏━ 1 Errors:
 ⋮
┃        > + shift 2
┃        > + declare -F '_callImplicitHook 0 failureHook'> + type -p '_callImplicitHook 0 failureHook'> + [[ _callImplicitHook 0 failureHook != \_\c\a\l\l\I\m\p\l\i\c\i\t\H\o\o\k* ]]
┃        > + _eval '_callImplicitHook 0 failureHook'> + declare -F '_callImplicitHook 0 failureHook'> + eval '_callImplicitHook 0 failureHook'> ++ _callImplicitHook 0 failureHook
┃        > ++ local def=0
┃        > ++ local hookName=failureHook
┃        > ++ declare -F failureHook
┃        > ++ type -p failureHook
┃        > ++ '[' -n '' ']'> ++ return 0
┃        > + return 0
┃        > + '[' -n '' ']'> + return 100
┃        For full logs, run 'nix-store -l /nix/store/qbsgjmwghbg47hy0cj4vz05bm4rknpqz-mina-indexer-0.2.0.drv'.
┣━ Dependency Graph:
┃ ┌─ ✔ auditable-rust-default-1.81.0
┃ │  ┌─ ✔ wasi-0.13.3+wasi-0.2.2
┃ │  ├─ ✔ tracing-0.1.41 ⏱ 1s
┃ │  ├─ ✔ wasm-bindgen-futures-0.4.50 ⏱ 1s
┃ │  ├─ ✔ wasm-bindgen-macro-0.2.100 ⏱ 1s
┃ │  ├─ ✔ wasm-bindgen-test-0.3.50 ⏱ 1s
┃ │  ├─ ✔ wasm-bindgen-shared-0.2.100 ⏱ 1s
┃ │  ├─ ✔ web-sys-0.3.77
┃ │  ├─ ✔ wit-bindgen-rt-0.33.0
┃ │  ├─ ✔ winnow-0.7.0
┃ │  ├─ ✔ wasm-bindgen-test-macro-0.3.50
┃ │  ├─ ✔ wasm-bindgen-macro-support-0.2.100 ⏱ 1s
┃ │  ├─ ✔ xattr-1.4.0
┃ ├─ ✔ cargo-vendor-dir ⏱ 2s
┃ ⚠ mina-indexer-0.2.0 failed with exit code 100 after ⏱ 11m38s in checkPhase
┣━━━ Builds            │ Downloads         │ Host
┃        │ ✔ 116 │     │     │       │     │ localhost
┃        │       │     │     │ ↓ 333 │     │ https://cache.nixos.org
┗━ ∑ ⏵ 0 │ ✔ 116 │ ⏸ 0 │ ↓ 0 │ ↓ 333 │ ⏸ 0 │ ⚠ Exited after 1 build failures at 09:29:58 after 12m5s
error: Recipe `nix-build` failed on line 125 with exit code 1

We tried to simply remove the parse_v2 function and ran again. This time we got this error:

                      FAIL [   8.134s] mina-indexer::mod block::store::genesis::genesis_v2_start
mina-indexer>
mina-indexer> --- STDOUT:              mina-indexer::mod block::store::genesis::genesis_v2_start ---
mina-indexer>
mina-indexer> running 1 test
mina-indexer> test block::store::genesis::genesis_v2_start ... FAILED
mina-indexer>
mina-indexer> failures:
mina-indexer>         FAIL [   4.688s] mina-indexer::mod command::zkapp::zkapp_command_iterator skipped
mina-indexer> --- STDOUT:              mina-indexer::mod command::zkapp::zkapp_command_iterator ---
mina-indexer>
mina-indexer> running 1 test
mina-indexer> test command::zkapp::zkapp_command_iterator ... FAILED
mina-indexer>
mina-indexer> failures:
mina-indexer>
mina-indexer> failures:
mina-indexer>     command::zkapp::zkapp_command_iterator
mina-indexer>
mina-indexer> test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 104 filtered out; finished in 4.56s
mina-indexer>
mina-indexer>
mina-indexer> --- STDERR:              mina-indexer::mod command::zkapp::zkapp_command_iterator ---
mina-indexer>      Summary [  18.203s] 208/291 tests run: 206 passed, 2 failed, 1 skipped, 1 skipped
mina-indexer>         FAIL [   8.134s] mina-indexer::mod block::store::genesis::genesis_v2_start
mina-indexer>         FAIL [   4.688s] mina-indexer::mod command::zkapp::zkapp_command_iterator
mina-indexer> + exitHandlerun failed8/291: 0 running, 206 passed, 2 failed, 1 skipped     ast to run all tests)
mina-indexer> + exitCode=100
mina-indexer> + set +e
mina-indexer> + '[' -n '' ']'
mina-indexer> + ((  100 != 0  ))
mina-indexer> + runHook failureHook
mina-indexer> + local hookName=failureHook
mina-indexer> + shift
mina-indexer> + local 'hooksSlice=failureHooks[@]'
mina-indexer> + local hook
mina-indexer> + for hook in "_callImplicitHook 0 $hookName" ${!hooksSlice+"${!hooksSlice}"}
mina-indexer> + _logHook failureHook '_callImplicitHook 0 failureHook'
mina-indexer> + [[ -z 2 ]]
mina-indexer> + local hookKind=failureHook
mina-indexer> + local 'hookExpr=_callImplicitHook 0 failureHook'
mina-indexer> + shift 2
mina-indexer> + declare -F '_callImplicitHook 0 failureHook'
mina-indexer> + type -p '_callImplicitHook 0 failureHook'
mina-indexer> + [[ _callImplicitHook 0 failureHook != \_\c\a\l\l\I\m\p\l\i\c\i\t\H\o\o\k* ]]
mina-indexer> + _eval '_callImplicitHook 0 failureHook'
mina-indexer> + declare -F '_callImplicitHook 0 failureHook'
mina-indexer> + eval '_callImplicitHook 0 failureHook'
mina-indexer> ++ _callImplicitHook 0 failureHook
mina-indexer> ++ local def=0
mina-indexer> ++ local hookName=failureHook
mina-indexer> ++ declare -F failureHook
mina-indexer> ++ type -p failureHook
mina-indexer> ++ '[' -n '' ']'
mina-indexer> ++ return 0
mina-indexer> + return 0
mina-indexer> + '[' -n '' ']'
mina-indexer> + return 100
error: builder for '/nix/store/r169a8ldvap5rjdv2nvqklfvxr4r65vr-mina-indexer-0.2.0.drv' failed with exit code 100;
       last 25 log lines:
       > + shift
       > + local 'hooksSlice=failureHooks[@]'
       > + local hook
       > + for hook in "_callImplicitHook 0 $hookName" ${!hooksSlice+"${!hooksSlice}"}
       > + _logHook failureHook '_callImplicitHook 0 failureHook'
       > + [[ -z 2 ]]
       > + local hookKind=failureHook
       > + local 'hookExpr=_callImplicitHook 0 failureHook'
       > + shift 2
       > + declare -F '_callImplicitHook 0 failureHook'
       > + type -p '_callImplicitHook 0 failureHook'
       > + [[ _callImplicitHook 0 failureHook != \_\c\a\l\l\I\m\p\l\i\c\i\t\H\o\o\k* ]]
       > + _eval '_callImplicitHook 0 failureHook'
       > + declare -F '_callImplicitHook 0 failureHook'
       > + eval '_callImplicitHook 0 failureHook'
       > ++ _callImplicitHook 0 failureHook
       > ++ local def=0
       > ++ local hookName=failureHook
       > ++ declare -F failureHook
       > ++ type -p failureHook
       > ++ '[' -n '' ']'
       > ++ return 0
       > + return 0
       > + '[' -n '' ']'
       > + return 100
       For full logs, run 'nix-store -l /nix/store/r169a8ldvap5rjdv2nvqklfvxr4r65vr-mina-indexer-0.2.0.drv'.
┏━ 1 Errors:
┃ error: builder for '/nix/store/r169a8ldvap5rjdv2nvqklfvxr4r65vr-mina-indexer-0.2.0.drv' failed with exit code 100;
┃        last 25 log lines:
┃        > + shift> + local 'hooksSlice=failureHooks[@]'> + local hook
┃        > + for hook in "_callImplicitHook 0 $hookName" ${!hooksSlice+"${!hooksSlice}"}> + _logHook failureHook '_callImplicitHook 0 failureHook'> + [[ -z 2 ]]
┃        > + local hookKind=failureHook
┃        > + local 'hookExpr=_callImplicitHook 0 failureHook'> + shift 2
┃        > + declare -F '_callImplicitHook 0 failureHook'> + type -p '_callImplicitHook 0 failureHook'> + [[ _callImplicitHook 0 failureHook != \_\c\a\l\l\I\m\p\l\i\c\i\t\H\o\o\k* ]]
┃        > + _eval '_callImplicitHook 0 failureHook'> + declare -F '_callImplicitHook 0 failureHook'> + eval '_callImplicitHook 0 failureHook'> ++ _callImplicitHook 0 failureHook
┃        > ++ local def=0
┃        > ++ local hookName=failureHook
┃        > ++ declare -F failureHook
┃        > ++ type -p failureHook
┃        > ++ '[' -n '' ']'> ++ return 0
┃        > + return 0
┃        > + '[' -n '' ']'> + return 100
┃        For full logs, run 'nix-store -l /nix/store/r169a8ldvap5rjdv2nvqklfvxr4r65vr-mina-indexer-0.2.0.drv'.
┣━ Dependency Graph:
┃ ⚠ mina-indexer-0.2.0 failed with exit code 100 after ⏱ 13m24s in checkPhase
┣━━━
┗━ ∑ ⚠ Exited after 1 build failures at 09:48:52 after 13m28s
@jhult jhult added the Bug Something isn't working properly label Feb 27, 2025
@jhult jhult added this to the Berkeley Support milestone Feb 27, 2025
@robinbb robinbb modified the milestones: Berkeley Support, Maintenance Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working properly
Projects
Status: Backlog
Development

No branches or pull requests

3 participants