-
Notifications
You must be signed in to change notification settings - Fork 37.7k
test: assumeutxo func test race fixes #28589
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
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
Code review ACK 5bd2010 I had just written the same fix essentially. The |
Concept ACK. |
lgtm ACK 5bd2010 |
eae98cc
to
1e4e324
Compare
Even with latest HEAD, still seeing an apparent race. Still investigating.
|
1e4e324
to
7e40032
Compare
lgtm ACK 7e40032 |
Alright, I'm guessing we're fixed for real this time; 7e40032 accounts for the late change that we made on @ryanofsky's recommendation to list what was the I'm going to keep running the test in a loop on my end and will post back in a bit to confirm that I think we're good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK 7e40032 |
ACK 7e40032 Gonna let this run in a loop for a bit before merging. |
Test has been running on my machine in a loop without failure for about an hour now. |
7e40032 tests: assumeutxo: accept final height from either chainstate (James O'Beirne) 5bd2010 test: assumeutxo: avoid race in functional test (James O'Beirne) 7005a01 test: add wait_for_connect to BitcoinTestFramework.connect_nodes (James O'Beirne) Pull request description: Fixes bitcoin#28585. Fixes a few races within the assumeutxo tests: - In general, `-stopatheight` can't be used with `connect_nodes` safely because the latter performs blocking assertions that are racy with the stopatheight triggering. - Now that the snapshot chainstate is listed as `normal` after background validation, accept the final height from either chainstate. ACKs for top commit: MarcoFalke: lgtm ACK 7e40032 fjahr: Code review ACK 7e40032 achow101: ACK 7e40032 ryanofsky: Code review ACK 7e40032 Tree-SHA512: 8cbd2a0ca8643f94baa0ae3561dcf68c3519d5ba851c6049e1768f28cae6434f47ffc28d404bf38ed11030ce3f00aae0a8be3f6d563e6ae6680d83c928a173d8
Fixes #28585.
Fixes a few races within the assumeutxo tests:
-stopatheight
can't be used withconnect_nodes
safely because the latter performs blocking assertions that are racy with the stopatheight triggering.normal
after background validation, accept the final height from either chainstate.