Skip to content

Conversation

@jonatack
Copy link
Member

@jonatack jonatack commented Jul 19, 2020

To fix these intermittent failures in Travis CI.

162/163 - p2p_ibd_txrelay.py failed, Duration: 2 s

stdout:
2020-07-19T05:44:17.213000Z TestFramework (INFO):
    Check that nodes set minfilter to MAX_MONEY while still in IBD
2020-07-19T05:44:17.216000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/Users/travis/build/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-apple-darwin16/test/functional/test_framework/test_framework.py", line 117, in main
    self.run_test()
  File "/Users/travis/build/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-apple-darwin16/test/functional/p2p_ibd_txrelay.py", line 30, in run_test
    assert_equal(conn_info['minfeefilter'], MAX_FEE_FILTER)
  File "/Users/travis/build/bitcoin/bitcoin/ci/scratch/build/bitcoin-x86_64-apple-darwin16/test/functional/test_framework/util.py", line 49, in assert_equal
    raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))

AssertionError: not(0E-8 == 0.09170997)
2020-07-19T05:44:17.293000Z TestFramework (INFO): Stopping nodes

At Marco's suggestion, cherry-picked part of #19134 to nicely simplify using wait_until.

@fanquake fanquake added the Tests label Jul 19, 2020
@jonatack jonatack force-pushed the fix-intermittent-p2p_ibd_txrelay-failure branch 2 times, most recently from c19310c to 14bb388 Compare July 19, 2020 09:16
@jonatack jonatack force-pushed the fix-intermittent-p2p_ibd_txrelay-failure branch from 14bb388 to c4fa20a Compare July 19, 2020 11:25
@jonatack jonatack force-pushed the fix-intermittent-p2p_ibd_txrelay-failure branch from c4fa20a to 12410b1 Compare July 19, 2020 11:38
Copy link
Contributor

@vasild vasild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 12410b1

Sporadic test failures are one of the worst things that can happen to a software project.

I tried to reproduce the failure locally, but without success (there you go!). The following passes with and without the patch for me:

./test/functional/test_runner.py $(for i in {1..100} ; do echo p2p_ibd_txrelay.py ; done)

Anyway - the patch looks good.

@maflcko maflcko merged commit edfeaf6 into bitcoin:master Jul 21, 2020
@jonatack jonatack deleted the fix-intermittent-p2p_ibd_txrelay-failure branch July 21, 2020 14:08
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 2, 2021
…it_until

Summary: This is a backport of [[bitcoin/bitcoin#19552 | core#19552]]

Test Plan: `ninja check-functional`

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D10018
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants