test: failure in interface_rest.py #26440

issue fanquake opened this issue on November 1, 2022
  1. fanquake commented at 4:51 PM on November 1, 2022: member

    https://cirrus-ci.com/task/4924805592907776?logs=functional_tests#L2972

     test  2022-11-01T13:38:30.771000Z TestFramework (ERROR): Assertion failed 
                                       Traceback (most recent call last):
                                         File "C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\test\functional\test_framework\test_framework.py", line 133, in main
                                           self.run_test()
                                         File "C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\test\functional\interface_rest.py", line 103, in run_test
                                           self.sync_all()
                                         File "C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\test\functional\test_framework\test_framework.py", line 715, in sync_all
                                           self.sync_mempools(nodes)
                                         File "C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\test\functional\test_framework\test_framework.py", line 708, in sync_mempools
                                           raise AssertionError("Mempool sync timed out after {}s:{}".format(
                                       AssertionError: Mempool sync timed out after 480s:
                                         {'cbd1d27c4d06b4dfd479c34aef4b57d3be14dfc20ccc74f2699fde370f17d1d3'}
                                         set()
     test  2022-11-01T13:38:30.771000Z TestFramework (DEBUG): Closing down network thread 
    
  2. fanquake added the label Bug on Nov 1, 2022
  3. brunoerg commented at 12:58 PM on November 3, 2022: contributor

    I think this issue is related to interface_rest.py, isn't it? https://cirrus-ci.com/task/4924805592907776?logs=functional_tests#L3372

  4. aureleoules commented at 1:22 PM on November 3, 2022: member

    I built an archive of the CI log failures in order to (try to) track these intermittent failures if you're interested: https://github.com/aureleoules/bitcoin-core-ci-logs Not sure how useful this is so far.

  5. fanquake renamed this:
    test: failure in wallet_upgradewallet.py --legacy-wallet
    test: failure in interface_rest.py
    on Nov 4, 2022
  6. mzumsande commented at 4:49 PM on November 7, 2022: contributor

    The issue in https://cirrus-ci.com/task/4924805592907776?logs=functional_tests#L2972 seems to be that the nodes aren't connected yet at the time the tx is added (and, therefore, the tx is not propagated and mempool sync fails):

     test  2022-11-01T13:30:30.622000Z TestFramework (INFO): Broadcast test transaction and sync nodes
    (...)
     node0 2022-11-01T13:30:30.648282Z [C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\src\validationinterface.cpp:211] [operator ()] [validation] TransactionAddedToMempool: txid=cbd1d27c4d06b4dfd479c34aef4b57d3be14dfc20ccc74f2699fde370f17d1d3 wtxid=a0693a39de8466f542ef40b30e3fe1a391b2863927c5a28838ed65a3f3e84177 
    (...)
     node0 2022-11-01T13:30:30.704227Z [C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\src\net_processing.cpp:3149] [ProcessMessage] [net] received: verack (0 bytes) peer=0 
    

    I don't understand how this is possible, setup() should wait for the verack, so that run_test() is not called before the two nodes are successfully connected.

  7. maflcko commented at 5:03 PM on January 11, 2023: member

    Closing as presumed duplicate of #26852 (same underlying cause)

  8. maflcko closed this on Jan 11, 2023

  9. bitcoin locked this on Jan 11, 2024

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-04-24 09:14 UTC

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