test: failure in mining_basic.py AssertionError: not(4.656542373906924E-10 == 4.656542373906925E-10) #32515

issue fanquake openend this issue on May 15, 2025
  1. fanquake commented at 2:33 pm on May 15, 2025: member

    x86_64 Alpine Linux master @ c779ee3a4044df3a263394bbb8b104aeeaa7c727

     0/bitcoin # build/test/functional/test_runner.py mining_basic.py --valgrind --timeout-factor=0
     1Temporary test directory at /tmp/test_runner_₿_🏃_20250515_142647
     2Remaining jobs: [mining_basic.py]
     31/1 - mining_basic.py failed, Duration: 58 s                                                                        
     4
     5stdout:
     62025-05-15T14:26:48.007000Z TestFramework (INFO): PRNG seed is: 1679234749093477821
     72025-05-15T14:26:48.008000Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20250515_142647/mining_basic_0
     82025-05-15T14:26:57.860000Z TestFramework (INFO): Create some old blocks
     92025-05-15T14:27:19.347000Z TestFramework (INFO): test blockversion
    102025-05-15T14:27:45.954000Z TestFramework (INFO): getmininginfo
    112025-05-15T14:27:46.014000Z TestFramework (ERROR): Assertion failed
    12Traceback (most recent call last):
    13  File "/bitcoin/test/functional/test_framework/test_framework.py", line 183, in main
    14    self.run_test()
    15  File "/bitcoin/build/test/functional/mining_basic.py", line 392, in run_test
    16    assert_equal(mining_info['difficulty'], Decimal('4.656542373906925E-10'))
    17  File "/bitcoin/test/functional/test_framework/util.py", line 77, in assert_equal
    18    raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
    19AssertionError: not(4.656542373906924E-10 == 4.656542373906925E-10)
    202025-05-15T14:27:46.067000Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.
    212025-05-15T14:27:46.067000Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_₿_🏃_20250515_142647/mining_basic_0
    222025-05-15T14:27:46.067000Z TestFramework (ERROR): Test failed. Test logging available at /tmp/test_runner_₿_🏃_20250515_142647/mining_basic_0/test_framework.log
    232025-05-15T14:27:46.067000Z TestFramework (ERROR): 
    242025-05-15T14:27:46.067000Z TestFramework (ERROR): Hint: Call /bitcoin/test/functional/combine_logs.py '/tmp/test_runner_₿_🏃_20250515_142647/mining_basic_0' to consolidate all logs
    252025-05-15T14:27:46.067000Z TestFramework (ERROR): 
    262025-05-15T14:27:46.067000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
    272025-05-15T14:27:46.068000Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
    282025-05-15T14:27:46.068000Z TestFramework (ERROR):
    

    Verbose logs are available here: https://gist.github.com/fanquake/e2f2e4eba103d883e23801b154af45f2

  2. fanquake added the label Tests on May 15, 2025
  3. maflcko commented at 5:23 pm on May 15, 2025: member
    What are the exact steps to reproduce? It passes for me: https://cirrus-ci.com/task/6221957416353792?logs=functional_test#L92
  4. maflcko commented at 5:24 pm on May 15, 2025: member
    Oh, you are saying this only happens under valgrind?
  5. fanquake commented at 8:04 am on May 16, 2025: member
    Yea. Have only seen it under Valgrind.


fanquake maflcko

Labels
Tests


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: 2025-05-25 18:12 UTC

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