test: Fix intermittent failure in feature_segwit #24578

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2203-testInt-💮 changing 1 files +7 −11
  1. MarcoFalke commented at 7:46 AM on March 16, 2022: member

    There are intermittent failures on current master (https://github.com/bitcoin/bitcoin/pull/24421#issuecomment-1067451667) as the witness txs occasionally make it into other node's mempools when they shouldn't.

    Fix this by removing the test as suggested earlier in #24421 (review).

    Fixes https://github.com/bitcoin/bitcoin/issues/24590

  2. DrahtBot added the label Tests on Mar 16, 2022
  3. test: Fix intermittent failure in feature_segwit d6b24e14d2
  4. MarcoFalke force-pushed on Mar 16, 2022
  5. DrahtBot commented at 11:04 PM on March 16, 2022: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #24535 (test: Fix generate calls and comments in feature_segwit by MarcoFalke)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  6. aureleoules commented at 4:52 AM on March 17, 2022: member

    tACK d6b24e14d2a828ba7328f0cae1d0d7c5f4f6b3bd. Tested on NixOS 22.05 64 bits.

    I was able to reproduce the bug (https://github.com/bitcoin/bitcoin/pull/24421#issuecomment-1067451667) prior to this fix using: seq 100 | xargs -i -P 20 python test/functional/feature_segwit.py (100 tests in batches of 20).
    Could not reproduce the bug after this PR using the same command with 1000 tests.

  7. jnewbery commented at 11:18 AM on March 18, 2022: member

    Code review ACK d6b24e14d2a828ba7328f0cae1d0d7c5f4f6b3bd

    Is there a way to introduce random sleeps into the test logic to flush out other racy test bugs?

  8. MarcoFalke commented at 1:13 PM on March 18, 2022: member

    Sure, it should be possible to inject a random sleep after sendrawtransaction. Though, I am not sure if this is going to give consistent results either. I think the only way would be to do the same for txs that was done for blocks. (Always sync unless opted out).

  9. MarcoFalke merged this on Mar 18, 2022
  10. MarcoFalke closed this on Mar 18, 2022

  11. MarcoFalke deleted the branch on Mar 18, 2022
  12. sidhujag referenced this in commit d6df2cc09e on Mar 18, 2022
  13. glozow commented at 12:57 PM on March 19, 2022: member

    post merge ACK

  14. DrahtBot locked this on Mar 19, 2023

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-17 06:14 UTC

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