ci: failure in `wallet_importdescriptors.py ` #35544

issue fanquake opened this issue on June 16, 2026
  1. fanquake commented at 3:34 PM on June 16, 2026: member

    https://github.com/bitcoin/bitcoin/actions/runs/27626623050/job/81689877009?pr=35537:

    2026-06-16T15:17:31.3998250Z  node0 2026-06-16T15:17:21.699894Z [http.00] [wallet/sqlite.cpp:55] [TraceSqlCallback] [walletdb:trace] [/Users/runner/work/bitcoin/bitcoin/repo_archive/ci/scratch_ ₿🧪_/test_runner/test_runner_₿_🏃_20260616_150224/wallet_importdescriptors_103/node0/regtest/wallets/abort_import_wallet/wallet.dat] SQLite Statement: INSERT or REPLACE into main values(?, ?) 
    2026-06-16T15:17:31.3999070Z  node0 2026-06-16T15:17:21.699970Z [http.00] [wallet/wallet.h:939] [WalletLogPrintf] [abort_import_wallet] RescanFromTime: Rescanning last 329 blocks 
    2026-06-16T15:17:31.3999900Z  node0 2026-06-16T15:17:21.699981Z [http.00] [wallet/wallet.h:939] [WalletLogPrintf] [abort_import_wallet] Rescan started from block 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206... (slow variant inspecting all blocks) 
    2026-06-16T15:17:31.4000360Z  node0 2026-06-16T15:17:21.705100Z [http.00] [wallet/wallet.h:939] [WalletLogPrintf] [abort_import_wallet] Scanning current mempool transactions. 
    2026-06-16T15:17:31.4000970Z  node0 2026-06-16T15:17:21.705121Z [http.00] [wallet/wallet.h:939] [WalletLogPrintf] [abort_import_wallet] Rescan completed in               5ms 
    2026-06-16T15:17:31.4001230Z  test  2026-06-16T15:17:21.705640Z TestFramework (ERROR): Unexpected exception: 
    2026-06-16T15:17:31.4001400Z                                    Traceback (most recent call last):
    2026-06-16T15:17:31.4001830Z                                      File "/Users/runner/work/bitcoin/bitcoin/repo_archive/test/functional/test_framework/test_framework.py", line 144, in main
    2026-06-16T15:17:31.4001970Z                                        self.run_test()
    2026-06-16T15:17:31.4002090Z                                        ~~~~~~~~~~~~~^^
    2026-06-16T15:17:31.4002700Z                                      File "/Users/runner/work/bitcoin/bitcoin/repo_archive/ci/scratch_ ₿🧪_/build-aarch64-apple-darwin24.6.0/test/functional/wallet_importdescriptors.py", line 962, in run_test
    2026-06-16T15:17:31.4002880Z                                        self.test_rescan_fails_import()
    2026-06-16T15:17:31.4003060Z                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
    2026-06-16T15:17:31.4003710Z                                      File "/Users/runner/work/bitcoin/bitcoin/repo_archive/ci/scratch_ ₿🧪_/build-aarch64-apple-darwin24.6.0/test/functional/wallet_importdescriptors.py", line 193, in test_rescan_fails_import
    2026-06-16T15:17:31.4003990Z                                        raise AssertionError("importdescriptors unexpectedly succeeded")
    2026-06-16T15:17:31.4004520Z                                    AssertionError: importdescriptors unexpectedly succeeded
    2026-06-16T15:17:31.4004800Z  test  2026-06-16T15:17:21.709227Z TestFramework (DEBUG): Closing down network thread 
    
  2. fanquake added the label CI failed on Jun 16, 2026
  3. fanquake commented at 3:36 PM on June 16, 2026: member
  4. polespinasa commented at 3:43 PM on June 16, 2026: member
    2026-06-16T15:17:22.3162210Z 2026-06-16T15:17:21.137717Z TestFramework (INFO): Aborting an importdescriptors rescan should fail the RPC call
    2026-06-16T15:17:22.3162690Z 2026-06-16T15:17:21.705640Z TestFramework (ERROR): Unexpected exception:
    2026-06-16T15:17:22.3163000Z Traceback (most recent call last):
    2026-06-16T15:17:22.3163450Z   File "/Users/runner/work/bitcoin/bitcoin/repo_archive/test/functional/test_framework/test_framework.py", line 144, in main
    2026-06-16T15:17:22.3163980Z     self.run_test()
    2026-06-16T15:17:22.3164120Z     ~~~~~~~~~~~~~^^
    2026-06-16T15:17:22.3164940Z   File "/Users/runner/work/bitcoin/bitcoin/repo_archive/ci/scratch_ ₿🧪_/build-aarch64-apple-darwin24.6.0/test/functional/wallet_importdescriptors.py", line 962, in run_test
    2026-06-16T15:17:22.3165530Z     self.test_rescan_fails_import()
    2026-06-16T15:17:22.3165780Z     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
    2026-06-16T15:17:22.3171280Z   File "/Users/runner/work/bitcoin/bitcoin/repo_archive/ci/scratch_ ₿🧪_/build-aarch64-apple-darwin24.6.0/test/functional/wallet_importdescriptors.py", line 193, in test_rescan_fails_import
    2026-06-16T15:17:22.3173720Z     raise AssertionError("importdescriptors unexpectedly succeeded")
    2026-06-16T15:17:22.3175000Z AssertionError: importdescriptors unexpectedly succeeded
    

    The test failing is the "abort rescan" case. The test fails due to a race condition in the c++ code. It can happen that an abortrescan call is ignored by the actual rescan code.

    #35512 should fix it by moving the code that makes the rescan ignore the abortrescan call

  5. Sjors commented at 3:02 PM on June 19, 2026: member

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-06-20 23:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me