-
Notifications
You must be signed in to change notification settings - Fork 37.7k
cmake, guix: Skip building tests in subtrees for releases #32054
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 `BUILD_TESTS` variable has a broad scope, controlling: - Building `test_bitcoin` - Building `test_bitcoin-qt` - Building tests in subtrees, such as `secp256k1` and `univalue` - Creating CTest's tests However, for release builds, only the first is necessary. To address this, the new `BUILD_TEST_BINARY` variable allows building only the `test_bitcoin` binary without enabling other tests.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32054. 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. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Concept NACK on introducing build options to control building single binaries. |
Every other |
Alternatively, an explicit list of targets could be specified here: bitcoin/contrib/guix/libexec/build.sh Lines 247 to 248 in c20a5ce
|
Sure, but I think that isn't a great pattern, and this makes it worse. Having a |
🐙 This pull request conflicts with the target branch and needs rebase. |
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
1 similar comment
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
@hebasto Could close? |
The
BUILD_TESTS
variable has a broad scope, controlling:test_bitcoin
test_bitcoin-qt
secp256k1
andunivalue
However, for release builds, only the first is necessary.
To address this, this PR introduces the new
BUILD_TEST_BINARY
variable, which allows building only thetest_bitcoin
binary without enabling other tests.As an alternative, an explicit list of build targets can be specified in the
contrib/guix/libexec/build.sh
.