intermittent issue in feature_bip68_sequence.py: sequence_value = utxos[j]["confirmations"] IndexError: list index out of range #32334

issue maflcko opened this issue on April 24, 2025
  1. maflcko commented at 7:48 AM on April 24, 2025: member

    https://cirrus-ci.com/task/5337593233014784?logs=ci#L3671

     test  2025-04-23T20:13:04.883000Z TestFramework (ERROR): Unexpected exception caught during testing 
                                       Traceback (most recent call last):
                                         File "/ci_container_base/test/functional/test_framework/test_framework.py", line 182, in main
                                           self.run_test()
                                         File "/ci_container_base/ci/scratch/build-i686-pc-linux-gnu/test/functional/feature_bip68_sequence.py", line 70, in run_test
                                           self.test_sequence_lock_confirmed_inputs()
                                         File "/ci_container_base/ci/scratch/build-i686-pc-linux-gnu/test/functional/feature_bip68_sequence.py", line 173, in test_sequence_lock_confirmed_inputs
                                           sequence_value = utxos[j]["confirmations"]
                                                            ~~~~~^^^
                                       IndexError: list index out of range
    
  2. maflcko added the label CI failed on Apr 24, 2025
  3. theStack commented at 2:59 PM on April 24, 2025: contributor

    I can reproduce this issue locally by passing the randomseed as shown in the CI logs, i.e.

    $ ./build/test/functional/feature_bip68_sequence.py --randomseed 6169832640268785903
    

    Seems that the number of UTXOs generated in the test_sequence_lock_confirmed_inputs sub-test (currently 200) is not enough in some cases. A simple minimal-diff fix might be to simply increase that number in this line:

    https://github.com/bitcoin/bitcoin/blob/458720e5e98c6e9103aea1fdfcd39bafc26c27bb/test/functional/feature_bip68_sequence.py#L137

    IIUC, in the absolute worst-case 4000 UTXOs are consumed (400 txs with 10 inputs each).

  4. maflcko added the label Tests on May 6, 2025
  5. fanquake referenced this in commit fa183045a1 on Jun 19, 2025
  6. fanquake closed this on Jun 19, 2025

  7. tomt1664 referenced this in commit 1ac1f75ec0 on Nov 25, 2025
  8. knst referenced this in commit 78a145b697 on Nov 28, 2025
  9. knst referenced this in commit 0abe2523f0 on Nov 29, 2025
  10. knst referenced this in commit 4d3526d562 on Nov 30, 2025
  11. knst referenced this in commit 7fdb1c7164 on Nov 30, 2025
  12. knst referenced this in commit 54734e9c80 on Nov 30, 2025
  13. knst referenced this in commit 50786664dc on Nov 30, 2025
  14. Kino1994 referenced this in commit 021fd3ff37 on Jun 28, 2026
  15. BigcoinBGC referenced this in commit 54c5700bdb on Jun 30, 2026
  16. 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-04 00:51 UTC

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