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

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

    x86_64 Alpine Linux master @ c779ee3a4044df3a263394bbb8b104aeeaa7c727

    /bitcoin # build/test/functional/test_runner.py mining_basic.py --valgrind --timeout-factor=0
    Temporary test directory at /tmp/test_runner_₿_🏃_20250515_142647
    Remaining jobs: [mining_basic.py]
    1/1 - mining_basic.py failed, Duration: 58 s                                                                        
    
    stdout:
    2025-05-15T14:26:48.007000Z TestFramework (INFO): PRNG seed is: 1679234749093477821
    2025-05-15T14:26:48.008000Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20250515_142647/mining_basic_0
    2025-05-15T14:26:57.860000Z TestFramework (INFO): Create some old blocks
    2025-05-15T14:27:19.347000Z TestFramework (INFO): test blockversion
    2025-05-15T14:27:45.954000Z TestFramework (INFO): getmininginfo
    2025-05-15T14:27:46.014000Z TestFramework (ERROR): Assertion failed
    Traceback (most recent call last):
      File "/bitcoin/test/functional/test_framework/test_framework.py", line 183, in main
        self.run_test()
      File "/bitcoin/build/test/functional/mining_basic.py", line 392, in run_test
        assert_equal(mining_info['difficulty'], Decimal('4.656542373906925E-10'))
      File "/bitcoin/test/functional/test_framework/util.py", line 77, in assert_equal
        raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
    AssertionError: not(4.656542373906924E-10 == 4.656542373906925E-10)
    2025-05-15T14:27:46.067000Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.
    2025-05-15T14:27:46.067000Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_₿_🏃_20250515_142647/mining_basic_0
    2025-05-15T14:27:46.067000Z TestFramework (ERROR): Test failed. Test logging available at /tmp/test_runner_₿_🏃_20250515_142647/mining_basic_0/test_framework.log
    2025-05-15T14:27:46.067000Z TestFramework (ERROR): 
    2025-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
    2025-05-15T14:27:46.067000Z TestFramework (ERROR): 
    2025-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.
    2025-05-15T14:27:46.068000Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
    2025-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.

  6. Sjors referenced this in commit 578ea3eedb on Jun 11, 2025
  7. Sjors commented at 9:41 AM on June 11, 2025: member

    #32725 should fix this

  8. achow101 closed this on Jun 20, 2025

  9. achow101 referenced this in commit ed060e01e7 on Jun 20, 2025
  10. HowHsu referenced this in commit eca69a1b21 on Jun 21, 2025
  11. HowHsu referenced this in commit 2d9b4fcbd8 on Jun 23, 2025
  12. saikiran57 referenced this in commit 921b08faff on Jul 28, 2025
  13. bitcoin locked this on Jul 30, 2026

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-08-05 07:51 UTC

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