-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: avoid short-circuit when evaluating platform identifier for <v0.12.3.x and bail out on macOS, make feature_unsupported_utxo_db Linux-only
#6764
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
v0.12.2.3 is the last version to use the old platform identification scheme but the less than check inadvertently excludes it. Let's correct that and set it to less than the v0.12.3.x series instead as that marks the start the newer identification scheme
feature_unsupported_utxo_db Linux-only feature_unsupported_utxo_db Linux-only
WalkthroughThe changes introduce a new platform check in the functional test 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)test/functional/**/*.pyInstructions used from: Sources:
🧠 Learnings (2)📓 Common learningstest/functional/feature_unsupported_utxo_db.py (1)🧬 Code Graph Analysis (1)test/functional/feature_unsupported_utxo_db.py (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (2)
✨ 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 (
|
UdjinM6
left a comment
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 7ace512
PastaPastaPasta
left a comment
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 7ace512
Motivation
feature_unsupported_utxo_db.py(introduced with bitcoin#24236 as 79fcd30 in dash#6733) creates problems on macOS for the following reasons:The platform identifier detection code was placed after v20 when it should've been positioned before, as the prior condition was met, platform identifier was taken to be
osx64, which is incorrect (release).Error log:
Dash Core v0.12.2.x and earlier did not include daemon or utility binaries for macOS (i.e.
dashd, as needed by the functional test suite), shipping only Dash-Qt using a disk image, in comparison to v0.12.3.x which do offer them in a tarbundle (release).Dash Core v0.12.2.3 was incorrectly excluded from the old platform determination logic due to the less than comparison.
In light of this,
get_previous_releases.pywill now error out if attempting to download versions <v0.12.3.x as we cannot obtain the binaries needed to run functional tests. Additionally,feature_unsupported_utxo_db.pywill bail out on non-Linux platforms as previous release tests assume all the versions are populated and will otherwise cause general failure.Error log:
Special thanks to PastaPastaPasta for flagging this issue!
Breaking Changes
None expected.
Checklist