Intermittent CI failure: “AssertionError: Fee of 0.00011000 BTC too low!” when running wallet_basic.py #19418

issue practicalswift openend this issue on June 30, 2020
  1. practicalswift commented at 6:40 am on June 30, 2020: contributor

    Intermittent CI failure: “AssertionError: Fee of 0.00011000 BTC too low!” when running wallet_basic.py.

    See Travis log for details.

     0 12020-06-29T22:58:08.433000Z TestFramework (INFO): Initializing test directory /home/travis/build/bitcoin/bitcoin/ci/scratch/test_runner/test_runner_₿_🏃_20200629_225700/wallet_basic_150
     22020-06-29T22:58:10.175000Z TestFramework (INFO): Mining blocks...
     32020-06-29T22:58:11.456000Z TestFramework (INFO): test gettxout
     42020-06-29T22:58:11.751000Z TestFramework (INFO): test gettxout (second part)
     52020-06-29T22:58:13.291000Z TestFramework (ERROR): Assertion failed
     6Traceback (most recent call last):
     7  File "/home/travis/build/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 117, in main
     8    self.run_test()
     9  File "/home/travis/build/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/wallet_basic.py", line 204, in run_test
    10    node_0_bal = self.check_fee_amount(self.nodes[0].getbalance(), Decimal('20'), fee_per_byte, self.get_vsize(self.nodes[2].gettransaction(txid)['hex']))
    11  File "/home/travis/build/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/wallet_basic.py", line 44, in check_fee_amount
    12    assert_fee_amount(fee, tx_size, fee_per_byte * 1000)
    13  File "/home/travis/build/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/util.py", line 41, in assert_fee_amount
    14    raise AssertionError("Fee of %s BTC too low! (Should be %s BTC)" % (str(fee), str(target_fee)))
    15AssertionError: Fee of 0.00011000 BTC too low! (Should be 0.00019100 BTC)
    
  2. practicalswift added the label Bug on Jun 30, 2020
  3. fanquake deleted a comment on Aug 13, 2020
  4. fanquake deleted a comment on Aug 13, 2020
  5. laanwj added the label Tests on Sep 3, 2020
  6. laanwj removed the label Bug on Sep 3, 2020
  7. decryp2kanon commented at 12:44 pm on October 3, 2020: contributor
    i saw same before. but now its gone with no reason? :sweat_smile:
  8. practicalswift closed this on Jun 30, 2021

  9. hebasto commented at 3:59 pm on September 28, 2021: member

    https://api.cirrus-ci.com/v1/task/4686259315539968/logs/ci.log

     011/220 - wallet_basic.py --legacy-wallet failed, Duration: 36 s
     1stdout:
     22021-09-28T15:37:33.475000Z TestFramework (INFO): Initializing test directory /tmp/cirrus-build/ci/scratch/test_runner/test_runner_₿_🏃_20210928_153456/wallet_basic_207
     32021-09-28T15:37:34.708000Z TestFramework (INFO): Mining blocks...
     42021-09-28T15:37:36.232000Z TestFramework (INFO): Test gettxout
     52021-09-28T15:37:36.275000Z TestFramework (INFO): Test gettxout (second part)
     62021-09-28T15:37:42.855000Z TestFramework (INFO): Test sendmany
     72021-09-28T15:37:44.992000Z TestFramework (INFO): Test sendmany with fee_rate param (explicit fee rate in sat/vB)
     82021-09-28T15:37:45.108000Z TestFramework (INFO): Test sendmany raises 'fee rate too low' if fee_rate of 0.99999999 is passed
     92021-09-28T15:37:45.115000Z TestFramework (INFO): Test sendmany raises if an invalid fee_rate is passed
    102021-09-28T15:37:45.158000Z TestFramework (INFO): Test sendmany raises if an invalid conf_target or estimate_mode is passed
    112021-09-28T15:37:51.913000Z TestFramework (INFO): Test -walletbroadcast
    122021-09-28T15:38:02.692000Z TestFramework (INFO): Test sendtoaddress with fee_rate param (explicit fee rate in sat/vB)
    132021-09-28T15:38:08.916000Z TestFramework (ERROR): Assertion failed
    14Traceback (most recent call last):
    15  File "/tmp/cirrus-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 131, in main
    16    self.run_test()
    17  File "/tmp/cirrus-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/wallet_basic.py", line 500, in run_test
    18    assert_fee_amount(fee, tx_size, Decimal(fee_rate_btc_kvb))
    19  File "/tmp/cirrus-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/util.py", line 41, in assert_fee_amount
    20    raise AssertionError("Fee of %s BTC too low! (Should be %s BTC)" % (str(fee), str(target_fee)))
    21AssertionError: Fee of 0.00000255 BTC too low! (Should be 0.00000256 BTC)
    
  10. hebasto reopened this on Sep 28, 2021

  11. MarcoFalke commented at 4:08 pm on September 28, 2021: member
    I was wondering if #17526 (comment) caused this, but if this has been happening for at least a year, then I am unsure.
  12. jonatack commented at 4:13 pm on September 28, 2021: member

    This test looks familiar, may have a look.

    Edit, yes it’s code from 6fa72ceb802.

  13. jonatack commented at 7:43 am on September 30, 2021: member

    api.cirrus-ci.com/v1/task/4686259315539968/logs/ci.log

    I was able to reproduce https://api.cirrus-ci.com/v1/task/4686259315539968/logs/ci.log locally yesterday after ~200 runs. I then ran wallet_basic.py overnight with #23136 and no further failures.

  14. MarcoFalke referenced this in commit 35a31d5f7e on Oct 1, 2021
  15. MarcoFalke closed this on Oct 1, 2021

  16. DrahtBot locked this on Oct 30, 2022

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: 2024-07-03 13:13 UTC

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