-
Notifications
You must be signed in to change notification settings - Fork 1.2k
test: intermittent error due to missing _other_ quorums #6671
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
base: develop
Are you sure you want to change the base?
Conversation
… IS quorum 2025-05-15T19:50:51.884000Z TestFramework (INFO): Test no IS for asset unlock... 2025-05-15T19:50:52.892000Z TestFramework (INFO): Send tx with expected_error:'None'... 2025-05-15T19:51:54.214000Z TestFramework.utils (ERROR): wait_until() failed. Predicate: '''' def check_instantlock(): self.bump_mocktime(1) try: return node.getrawtransaction(txid, True)["instantlock"] except: return False ''' 2025-05-15T19:51:54.214000Z TestFramework (ERROR): Assertion failed Traceback (most recent call last): File "/home/knst/projects/dash-v21/test/functional/test_framework/test_framework.py", line 162, in main self.run_test() File "/home/knst/projects/dash-v21/test/functional/feature_asset_locks.py", line 266, in run_test self.test_asset_unlocks(node_wallet, node, pubkey) File "/home/knst/projects/dash-v21/test/functional/feature_asset_locks.py", line 373, in test_asset_unlocks self.wait_for_instantlock(is_id, node) File "/home/knst/projects/dash-v21/test/functional/test_framework/test_framework.py", line 1655, in wait_for_instantlock if self.wait_until(check_instantlock, timeout=timeout, sleep=1, do_assert=expected) and not expected: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/knst/projects/dash-v21/test/functional/test_framework/test_framework.py", line 902, in wait_until return wait_until_helper(test_function, timeout=timeout, lock=lock, timeout_factor=self.options.timeout_factor, sleep=sleep, do_assert=do_assert) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/knst/projects/dash-v21/test/functional/test_framework/util.py", line 287, in wait_until_helper raise AssertionError("Predicate {} not true after {} seconds".format(predicate_source, timeout)) AssertionError: Predicate '''' def check_instantlock(): self.bump_mocktime(1) try: return node.getrawtransaction(txid, True)["instantlock"] except: return False ''' not true after 60.0 seconds 2025-05-15T19:51:54.265000Z TestFramework (INFO): Stopping nodes node3 2025-05-15T19:50:54.054321Z (mocktime: 2014-12-04T18:19:47Z) [ scheduler] [llmq/signing.cpp:712] [AsyncSignIfMember] [llmq] CSigningManager::AsyncSignIfMember -- failed to select quorum. id=ce79d1f19020ec65caa8a81306362ddad6ffd0e6fc45e18c83630f401b38d54c, msgHash=83b6e8b1549ad9f2750e13e61aabdf08fd31eb1e80cbbd3729920c4c840318ae node2 2025-05-15T19:50:54.054326Z (mocktime: 2014-12-04T18:19:47Z) [ scheduler] [llmq/signing.cpp:712] [AsyncSignIfMember] [llmq] CSigningManager::AsyncSignIfMember -- failed to select quorum. id=ce79d1f19020ec65caa8a81306362ddad6ffd0e6fc45e18c83630f401b38d54c, msgHash=83b6e8b1549ad9f2750e13e61aabdf08fd31eb1e80cbbd3729920c4c840318ae
WalkthroughThe changes introduce conditional quorum mining and enhanced logging across several functional test files. Instead of unconditionally mining quorums, the tests now check if the required quorum types already exist on node 0 before proceeding to mine new ones, logging the outcome in each case. This logic is applied for InstantSend and ChainLocks quorums in 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Graph Analysis (2)test/functional/p2p_instantsend.py (1)
test/functional/feature_asset_locks.py (1)
⏰ Context from checks skipped due to timeout of 90000ms (10)
🔇 Additional comments (8)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
utACK b0dea8c
Issue being fixed or feature implemented
In functional test
feature_asset_locks.py
a quorum for InstantSend is not generated intentionally but usually it is enough time to be formed while other quorums are generated.Similar situation for
p2p_instantsend.py
andfeature_notifications.py
.This fix is one of the blockers for #6631 because with smaller delays extra quorums (beyond expected) almost never formed.
Example of logs:
Meanwhile, there's just no quorum for signing InstantSend, logs from nodes:
What was done?
How Has This Been Tested?
Run functional tests
Breaking Changes
N/A
Checklist: