Skip to content

coverage does not run on some pulls, sometimes? #143

Closed

Description

@maflcko

https://corecheck.dev/bitcoin/bitcoin/pulls/30214 says "PENDING" for 9 hours. This seems a bit long, so I guess something has gone wrong.

I wonder if there are any logs, or if they could be made public, or would they contains private tokens?

cc @l0rinc

Activity

  1. brunoerg commented on Dec 10, 2025

    @brunoerg
    Collaborator

    I've access to some logs because of the mutation worker. I'm not super familiar to AWS, but I spent some minutes trying to find some logs about the PR 30214 and I found the following error:

    [ 94%] Built target bitcoind
    --
    [ 94%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/peer_eviction.cpp.o
    [ 94%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/poly1305.cpp.o
    [ 94%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/pool.cpp.o
    [ 94%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/prevector.cpp.o
    [ 95%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/random.cpp.o
    [ 95%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/readwriteblock.cpp.o
    [ 95%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/rollingbloom.cpp.o
    [ 95%] Built target bitcoin-node
    [ 95%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/rpc_blockchain.cpp.o
    [ 95%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/rpc_mempool.cpp.o
    [ 96%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/sign_transaction.cpp.o
    [ 96%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/streams_findbyte.cpp.o
    [ 96%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/strencodings.cpp.o
    [ 96%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/txgraph.cpp.o
    [ 96%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/txorphanage.cpp.o
    [ 97%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/util_time.cpp.o
    [ 97%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/verify_script.cpp.o
    [ 97%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/coin_selection.cpp.o
    [ 97%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/wallet_balance.cpp.o
    [ 97%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/wallet_create.cpp.o
    [ 98%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/wallet_create_tx.cpp.o
    [ 98%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/wallet_encrypt.cpp.o
    [ 98%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/wallet_loading.cpp.o
    [ 98%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/wallet_ismine.cpp.o
    [ 98%] Building CXX object src/bench/CMakeFiles/bench_bitcoin.dir/wallet_migration.cpp.o
    In file included from /usr/include/c++/13/cassert:44,
    from /tmp/bitcoin/src/bench/wallet_encrypt.cpp:17:
    /tmp/bitcoin/src/bench/wallet_encrypt.cpp: In function 'void wallet::WalletEncrypt(ankerl::nanobench::Bench&, unsigned int, bool)':
    /tmp/bitcoin/src/bench/wallet_encrypt.cpp:46:13: error: invalid 'static_cast' from type 'std::reference_wrapper<wallet::DescriptorScriptPubKeyMan>' to type 'bool'
    46 \|             assert(spk_manager);
    \|             ^~~~~~
    gmake[2]: *** [src/bench/CMakeFiles/bench_bitcoin.dir/build.make:837: src/bench/CMakeFiles/bench_bitcoin.dir/wallet_encrypt.cpp.o] Error 1
    gmake[1]: *** [CMakeFiles/Makefile2:1416: src/bench/CMakeFiles/bench_bitcoin.dir/all] Error 2
    gmake: *** [Makefile:136: all] Error 2
    real	0m51.731s
    user	0m10.613s
    sys	0m3.928s
    
    
  2. brunoerg commented on Dec 10, 2025

    @brunoerg
    Collaborator

    What we could improve is this "PENDING" stats because it looks like there is something still running when in fact there was an error and the run was interrupted.

  3. maflcko commented on Dec 10, 2025

    @maflcko
    ContributorAuthor

    /tmp/bitcoin/src/bench/wallet_encrypt.cpp:46:13: error: invalid 'static_cast' from type 'std::reference_wrapperwallet::DescriptorScriptPubKeyMan' to type 'bool'

    Thats interesting, because the pull does not modify it: https://github.com/bitcoin/bitcoin/pull/30214/files

    Currently I see:

    Unable to load page.
    
    The page is unavailable due to a system error.
    
    Try reloading the page, or if the problem persists, contact support.
    
    

    So I guess this could be GH issue and the worker was compiling an ancient commit?

    Is the commit listed in the logs?

  4. brunoerg commented on Dec 10, 2025

    @brunoerg
    Collaborator
    From https://github.com/bitcoin/bitcoin
    --
    * branch                  master     -> FETCH_HEAD
    6356041e58..cca113f5b0  master     -> origin/master
    Updating 6356041e58..cca113f5b0
    Fast-forward
    .github/workflows/ci.yml                           \|   4 +-
    ci/test/00_setup_env_win64.sh                      \|   1 -
    ci/test/02_run_container.py                        \|   3 +-
    contrib/asmap/asmap-tool.py                        \|  13 ++-
    contrib/devtools/circular-dependencies.py          \|   4 +-
    contrib/devtools/clang-format-diff.py              \|   2 +-
    contrib/devtools/copyright_header.py               \|  18 +--
    contrib/devtools/gen-manpages.py                   \|  10 +-
    contrib/filter-lcov.py                             \|   6 +-
    contrib/guix/manifest.scm                          \|   2 -
    contrib/guix/symbol-check.py                       \|  10 +-
    contrib/linearize/linearize-data.py                \|   6 +-
    contrib/linearize/linearize-hashes.py              \|   6 +-
    contrib/message-capture/message-capture-parser.py  \|   4 +-
    contrib/seeds/README.md                            \|   3 +-
    contrib/seeds/generate-seeds.py                    \|  10 +-
    contrib/seeds/makeseeds.py                         \|   4 +-
    contrib/verify-binaries/verify.py                  \|   8 +-
    contrib/verify-commits/verify-commits.py           \|  30 ++---
    depends/README.md                                  \|   9 +-
    depends/packages/freetype.mk                       \|   6 +-
    depends/packages/sqlite.mk                         \|   6 +
    depends/patches/freetype/cmake_minimum.patch       \|   2 +-
    depends/patches/sqlite/autosetup-fixup.patch       \|  20 ++++
    doc/developer-notes.md                             \|   3 +-
    doc/policy/README.md                               \|   2 +-
    doc/policy/mempool-design.md                       \| 104 +++++++++++++++++
    doc/policy/mempool-limits.md                       \|  65 -----------
    doc/policy/mempool-terminology.md                  \|  19 ++++
    doc/release-notes-33629.md                         \|  43 +++++++
    src/.clang-tidy                                    \|   3 +
    src/CMakeLists.txt                                 \|  16 ---
    src/addrman.cpp                                    \|   2 +-
    src/bench/blockencodings.cpp                       \|   2 +-
    src/bench/coin_selection.cpp                       \|   2 +-
    src/bench/mempool_ephemeral_spends.cpp             \|   2 +-
    src/bench/mempool_eviction.cpp                     \|   2 +-
    src/bench/mempool_stress.cpp                       \|   2 +-
    src/bench/rpc_mempool.cpp                          \|   2 +-
    src/bitcoin-cli.cpp                                \|   3 +-
    src/common/args.cpp                                \|  10 +-
    src/common/config.cpp                              \|   6 +-
    src/common/system.cpp                              \|   5 +-
    src/dbwrapper.cpp                                  \|   8 +-
    src/flatfile.cpp                                   \|   4 +-
    src/flatfile.h                                     \|   4 -
    src/httprpc.cpp                                    \|  10 +-
    src/httpserver.cpp                                 \|  18 +--
    src/index/base.cpp                                 \|  12 +-
    src/index/base.h                                   \|   3 +-
    src/init.cpp                                       \|  35 +++---
    src/interfaces/chain.h                             \|   4 +-
    src/ipc/CMakeLists.txt                             \|  25 +++-
    src/ipc/process.cpp                                \|   4 +-
    src/ipc/test/CMakeLists.txt                        \|  12 ++
    src/{ => ipc}/test/ipc_test.capnp                  \|   6 +-
    src/{ => ipc}/test/ipc_test.cpp                    \|  10 +-
    src/{ => ipc}/test/ipc_test.h                      \|   6 +-
    src/{ => ipc}/test/ipc_test_types.h                \|   8 +-
    src/{ => ipc}/test/ipc_tests.cpp                   \|   2 +-
    src/kernel/CMakeLists.txt                          \|   1 +
    src/kernel/chainparams.cpp                         \|   1 -
    src/kernel/mempool_entry.h                         \|   4 +-
    src/kernel/mempool_limits.h                        \|   6 +-
    src/logging.cpp                                    \|   4 +-
    src/logging.h                                      \|   3 -
    src/logging/timer.h                                \|   2 +-
    src/net.cpp                                        \|  59 +++++-----
    src/net.h                                          \|   5 +-
    src/net_processing.cpp                             \|  57 ++++++----
    src/net_processing.h                               \|   4 +-
    src/net_types.cpp                                  \|   4 +-
    src/netaddress.h                                   \|   3 -
    src/netbase.cpp                                    \|  18 +--
    src/netgroup.cpp                                   \|   2 +-
    src/node/blockstorage.cpp                          \|   2 +-
    src/node/chainstate.cpp                            \|   2 +-
    src/node/mempool_args.cpp                          \|   4 -
    src/node/miner.cpp                                 \|  20 ++--
    src/node/miner.h                                   \|  13 +--
    src/node/utxo_snapshot.cpp                         \|  16 +--
    src/policy/feerate.h                               \|   2 +
    src/policy/fees/block_policy_estimator.cpp         \|   8 +-
    src/policy/packages.h                              \|  13 +--
    src/policy/policy.h                                \|   4 -
    src/policy/truc_policy.cpp                         \|   3 +-
    src/policy/truc_policy.h                           \|   9 +-
    src/prevector.h                                    \|  16 +--
    src/primitives/transaction.h                       \|  20 ----
    src/primitives/transaction_identifier.h            \|   2 -
    src/pubkey.h                                       \|  15 ---
    src/rpc/blockchain.cpp                             \|   4 +-
    src/rpc/mempool.cpp                                \|  67 ++++++++---
    src/script/interpreter.cpp                         \|   2 +-
    src/script/script.h                                \|  12 +-
    src/script/script_error.cpp                        \|   2 +
    src/script/script_error.h                          \|   1 +
    src/support/allocators/pool.h                      \|   7 --
    src/support/allocators/secure.h                    \|   5 -
    src/support/allocators/zeroafterfree.h             \|   5 -
    src/sync.cpp                                       \|  22 ++--
    src/test/.clang-tidy.in                            \|   3 -
    src/test/CMakeLists.txt                            \|  16 +--
    src/test/blockencodings_tests.cpp                  \|   8 +-
    src/test/data/script_tests.json                    \|  13 +++
    src/test/fuzz/mini_miner.cpp                       \|   2 +-
    src/test/fuzz/package_eval.cpp                     \|   2 -
    src/test/fuzz/partially_downloaded_block.cpp       \|   2 +-
    src/test/fuzz/rbf.cpp                              \|  13 ++-
    src/test/fuzz/string.cpp                           \|  15 +++
    src/test/logging_tests.cpp                         \|   4 +-
    src/test/mempool_tests.cpp                         \|  60 +++++-----
    src/test/merkle_tests.cpp                          \|   5 +
    src/test/miner_tests.cpp                           \|  62 +++++-----
    src/test/miniminer_tests.cpp                       \|  42 +++----
    src/test/policyestimator_tests.cpp                 \|  12 +-
    src/test/rbf_tests.cpp                             \|  52 ++++-----
    src/test/script_tests.cpp                          \|   1 +
    src/test/scriptnum10.h                             \|  12 +-
    src/test/txpackage_tests.cpp                       \|   2 +-
    src/test/txvalidation_tests.cpp                    \|  24 ++--
    src/test/util/txmempool.cpp                        \|   2 +-
    src/test/util/txmempool.h                          \|   2 +-
    src/test/util_expected_tests.cpp                   \|  68 +++++++++++
    src/torcontrol.cpp                                 \|  60 +++++-----
    src/txdb.cpp                                       \|   2 +-
    src/txmempool.cpp                                  \| 126 +++++++++++++--------
    src/txmempool.h                                    \|  15 ++-
    src/uint256.h                                      \|   1 -
    src/util/batchpriority.cpp                         \|   2 +-
    src/util/bitdeque.h                                \|   6 +-
    src/util/exception.cpp                             \|   2 +-
    src/util/expected.cpp                              \|   5 +
    src/util/expected.h                                \|  92 +++++++++++++++
    src/util/fs_helpers.cpp                            \|  12 +-
    src/util/hash_type.h                               \|   5 -
    src/util/result.h                                  \|   4 +-
    src/util/sock.cpp                                  \|   2 +-
    src/validation.cpp                                 \|  80 ++++++-------
    src/wallet/migrate.cpp                             \|   4 +-
    src/wallet/scriptpubkeyman.cpp                     \|  10 +-
    src/wallet/spend.cpp                               \|   5 +
    src/wallet/sqlite.cpp                              \|  38 +++----
    src/wallet/test/fuzz/spend.cpp                     \|   2 +-
    test/README.md                                     \|   2 +
    test/functional/combine_logs.py                    \|   2 +-
    test/functional/data/invalid_txs.py                \|  16 +++
    test/functional/feature_asmap.py                   \|   4 +-
    test/functional/feature_block.py                   \|   4 +
    test/functional/feature_config_args.py             \|  46 ++++----
    .../feature_framework_startup_failures.py          \|   6 +-
    test/functional/feature_includeconf.py             \|  16 +--
    test/functional/feature_loadblock.py               \|   6 +-
    test/functional/feature_notifications.py           \|   9 +-
    test/functional/feature_startupnotify.py           \|   4 +-
    test/functional/feature_taproot.py                 \|  26 ++---
    test/functional/feature_versionbits_warning.py     \|   6 +-
    test/functional/mempool_cluster.py                 \|  77 ++++++++++++-
    test/functional/mempool_reorg.py                   \|  22 +++-
    test/functional/mining_mainnet.py                  \|   4 +-
    test/functional/mocks/invalid_signer.py            \|   4 +-
    test/functional/mocks/signer.py                    \|   6 +-
    test/functional/rpc_createmultisig.py              \|   4 +-
    test/functional/rpc_decodescript.py                \|   4 +-
    test/functional/rpc_getblockstats.py               \|   6 +-
    test/functional/rpc_help.py                        \|   6 +-
    test/functional/rpc_psbt.py                        \|   4 +-
    test/functional/rpc_signer.py                      \|   4 +-
    test/functional/rpc_users.py                       \|   6 +-
    test/functional/rpc_whitelist.py                   \|   6 +-
    test/functional/test_framework/coverage.py         \|   6 +-
    test/functional/test_framework/crypto/ellswift.py  \|   6 +-
    test/functional/test_framework/key.py              \|   2 +-
    test/functional/test_framework/netutil.py          \|   4 +-
    test/functional/test_framework/test_framework.py   \|   3 +-
    test/functional/test_framework/test_node.py        \|   4 +-
    test/functional/test_framework/util.py             \|  10 +-
    test/functional/test_runner.py                     \|   8 +-
    test/functional/tool_signet_miner.py               \|  10 +-
    test/functional/tool_utils.py                      \|   6 +-
    test/functional/tool_wallet.py                     \|   6 +-
    test/functional/wallet_assumeutxo.py               \| 110 ++++++++++++------
    test/functional/wallet_backup.py                   \|   4 +-
    test/functional/wallet_backwards_compatibility.py  \|   4 +-
    test/functional/wallet_encryption.py               \|   8 +-
    test/functional/wallet_multiwallet.py              \|   4 +-
    test/functional/wallet_signer.py                   \|   8 +-
    test/functional/wallet_v3_txs.py                   \|  45 ++++++++
    test/fuzz/test_runner.py                           \|   2 +-
    test/lint/check-doc.py                             \|  12 +-
    test/lint/lint-files.py                            \|  10 +-
    test/lint/lint-include-guards.py                   \|   6 +-
    test/lint/lint-includes.py                         \|  18 +--
    test/lint/lint-locale-dependence.py                \|   2 +-
    test/lint/lint-python-dead-code.py                 \|   8 +-
    test/lint/lint-python-utf8-encoding.py             \|  73 ------------
    test/lint/lint-python.py                           \|   4 +-
    test/lint/lint-shell-locale.py                     \|  20 ++--
    test/lint/lint-spelling.py                         \|   8 +-
    test/lint/lint-submodule.py                        \|   4 +-
    test/lint/lint-tests.py                            \|   4 +-
    201 files changed, 1578 insertions(+), 1136 deletions(-)
    create mode 100644 depends/patches/sqlite/autosetup-fixup.patch
    create mode 100644 doc/policy/mempool-design.md
    delete mode 100644 doc/policy/mempool-limits.md
    create mode 100644 doc/policy/mempool-terminology.md
    create mode 100644 doc/release-notes-33629.md
    create mode 100644 src/ipc/test/CMakeLists.txt
    rename src/{ => ipc}/test/ipc_test.capnp (83%)
    rename src/{ => ipc}/test/ipc_test.cpp (97%)
    rename src/{ => ipc}/test/ipc_test.h (88%)
    rename src/{ => ipc}/test/ipc_test_types.h (61%)
    rename src/{ => ipc}/test/ipc_tests.cpp (98%)
    delete mode 100644 src/test/.clang-tidy.in
    create mode 100644 src/test/util_expected_tests.cpp
    create mode 100644 src/util/expected.cpp
    create mode 100644 src/util/expected.h
    delete mode 100755 test/lint/lint-python-utf8-encoding.py
    From https://github.com/bitcoin/bitcoin
    * branch                  refs/pull/31774/head -> FETCH_HEAD
    Note: switching to 'FETCH_HEAD'.
    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by switching back to a branch.
    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -c with the switch command. Example:
    git switch -c <new-branch-name>
    Or undo this operation with:
    git switch -
    Turn off this advice by setting config variable advice.detachedHead to false
    HEAD is now at 07497f06c7 crypto: Use `secure_allocator` for `AES256CBC*::iv`
    Rebasing (1/6)Rebasing (2/6)Rebasing (3/6)Rebasing (4/6)Rebasing (5/6)Rebasing (6/6)                                                                                Successfully rebased and updated detached HEAD.
  5. maflcko commented on Dec 10, 2025

    @maflcko
    ContributorAuthor

    HEAD is now at 07497f06c7 crypto: Use secure_allocator for AES256CBC*::iv

    Hmm, that looks like a different pull request (https://github.com/bitcoin/bitcoin/pull/31774/commits), not 30214

  6. l0rinc commented on Dec 10, 2025

    @l0rinc
    Contributor

    /tmp/bitcoin/src/bench/wallet_encrypt.cpp:46:13:

    that looks like a different pull request

    Yeah, it introduced wallet_encrypt.cpp: https://github.com/bitcoin/bitcoin/pull/31774/files#diff-f6b2fe53fa73ed8c916afd69f0fdc5b3be12e9ded7d54dbf677db7389649aee9
    which has a corecheck page https://corecheck.dev/bitcoin/bitcoin/pulls/31774 (though all current lost coverage pages seem off)

  7. brunoerg commented on Dec 10, 2025

    @brunoerg
    Collaborator

    HEAD is now at 07497f06c7 crypto: Use secure_allocator for AES256CBC*::iv

    Hmm, that looks like a different pull request (https://github.com/bitcoin/bitcoin/pull/31774/commits), not 30214

    My bad, copied the wrong log. Let me see again.

  8. m3dwards commented on Dec 16, 2025

    @m3dwards
    Member

    The handle coverage lambda has been timing out so yesterday I upped the timeout. It's still failing but now not with a timeout (possibly out of memory?). Still investigating.

  9. m3dwards commented on Dec 16, 2025

    @m3dwards
    Member

    Coverage json files are sometimes a lot larger than they used to be 28MB -> 62MB

  10. m3dwards commented on Dec 16, 2025

    @m3dwards
    Member

    Bumped resources up on the lambda.

    I'm currently working on switching the coverage to LLVM so it's a bit of a shame to put a lot of work into getting to the bottom of the large coverage files as they aren't very accurate anyway.

  11. m3dwards commented on Dec 17, 2025

    @m3dwards
    Member

    Increased resources seems to have done the trick for now.

    Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions