Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Avoid intermittent issues due to async events in validationinterface_tests #28150

Merged
merged 1 commit into from Jul 26, 2023

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Jul 25, 2023

Currently the tests have many issues:

Fix all issues by trimming down the setup to just ChainTestingSetup.

@DrahtBot
Copy link
Contributor

DrahtBot commented Jul 25, 2023

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

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK Crypt-iQ

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@maflcko
Copy link
Member Author

maflcko commented Jul 25, 2023

An alternative might be to call SyncWithValidationInterfaceQueue at the start of the test.

@Crypt-iQ
Copy link
Contributor

An alternative might be to call SyncWithValidationInterfaceQueue at the start of the test.

Tested it and both approaches work, not sure which is better. Using ChainTestingSetup should be faster?

@maflcko
Copy link
Member Author

maflcko commented Jul 25, 2023

Using ChainTestingSetup should be faster?

It is doing less setup, so it may also be faster.

Copy link
Contributor

@Crypt-iQ Crypt-iQ left a comment

Choose a reason for hiding this comment

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

tACK faca9a3

@maflcko maflcko added this to the 26.0 milestone Jul 26, 2023
@fanquake fanquake merged commit c2ff87e into bitcoin:master Jul 26, 2023
15 checks passed
@maflcko maflcko deleted the 2307-test-no-async- branch July 26, 2023 09:06
@maflcko
Copy link
Member Author

maflcko commented Jul 26, 2023

Interestingly, I can not reproduce this easily with rr. I tried:

while rr record  --chaos ./src/test/test_bitcoin -t validationinterface_tests/unregister_all_during_call  ; do true ; done

@Crypt-iQ
Copy link
Contributor

Interestingly, I can not reproduce this easily with rr. I tried:

while rr record  --chaos ./src/test/test_bitcoin -t validationinterface_tests/unregister_all_during_call  ; do true ; done

I was able to reproduce by adding -printtoconsole=1

sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Aug 9, 2023
…nts in validationinterface_tests

faca9a3 test: Avoid intermittent issues due to async events in validationinterface_tests (MarcoFalke)

Pull request description:

  Currently the tests have many issues:

  * They setup the genesis block, even though it is not needed
  * They queue an async `UpdatedBlockTip` even, which causes intermittent issues: bitcoin#28146 (comment)

  Fix all issues by trimming down the setup to just `ChainTestingSetup`.

ACKs for top commit:
  Crypt-iQ:
    tACK faca9a3

Tree-SHA512: 4449040330f89bbaf5ce5b2052417c160b451c373987fdf1069596c07834ed81f0aea1506d53c7d2cd21062b27332d30679285dae194b272fd0cb9ce5ded32cf
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Nov 21, 2023
…nts in validationinterface_tests

faca9a3 test: Avoid intermittent issues due to async events in validationinterface_tests (MarcoFalke)

Pull request description:

  Currently the tests have many issues:

  * They setup the genesis block, even though it is not needed
  * They queue an async `UpdatedBlockTip` even, which causes intermittent issues: bitcoin#28146 (comment)

  Fix all issues by trimming down the setup to just `ChainTestingSetup`.

ACKs for top commit:
  Crypt-iQ:
    tACK faca9a3

Tree-SHA512: 4449040330f89bbaf5ce5b2052417c160b451c373987fdf1069596c07834ed81f0aea1506d53c7d2cd21062b27332d30679285dae194b272fd0cb9ce5ded32cf
PastaPastaPasta pushed a commit to UdjinM6/dash that referenced this pull request Nov 26, 2023
…nts in validationinterface_tests

faca9a3 test: Avoid intermittent issues due to async events in validationinterface_tests (MarcoFalke)

Pull request description:

  Currently the tests have many issues:

  * They setup the genesis block, even though it is not needed
  * They queue an async `UpdatedBlockTip` even, which causes intermittent issues: bitcoin#28146 (comment)

  Fix all issues by trimming down the setup to just `ChainTestingSetup`.

ACKs for top commit:
  Crypt-iQ:
    tACK faca9a3

Tree-SHA512: 4449040330f89bbaf5ce5b2052417c160b451c373987fdf1069596c07834ed81f0aea1506d53c7d2cd21062b27332d30679285dae194b272fd0cb9ce5ded32cf
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Nov 26, 2023
ogabrielides pushed a commit to ogabrielides/dash that referenced this pull request Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants