mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 15:11:38 +00:00
doc: Improve test suite dependencies documentation #35395
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!35395
Loading…
Reference in a new issue
No description provided.
Delete branch "260527-ft-needed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current documentation has multiple issues:
pycapnpmodule.python3-zmqis a package name in some Linux distros, rather than a Unix-wide convention.pyzmqfrom PyPI works in general, not only on macOS.This PR resolves these issues. Additionally, two minor improvements have been added (see commit messages).
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, 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.
Looks like you've just removed immediately usable OS specific instructions, and replaced them with general ones, just forcing devs to go and find the same info? i.e currently a FreeBSD dev could just copy
pkg install python3 databases/py-sqlite3 net/py-pyzmq, now they'd have to go and find the package names themselves?That's correct, it is a trade-off. While it does require a quick search from the developer, the alternative is duplicating every dependency instruction across all OS-specific notes, e.g.,
pkg install lsoforpip3 install pycapnp. As we saw with recent updates (#33201 and #34256), trying to maintain exact, OS-specific package names quickly becomes a fragile approach.Not sure I agree. That's what we do in the rest of the build documentation, and it seems to work fine.
I haven't looked, but are the bsd docs largely different? if not, maybe they can be merged into a single
build-bsd.mdin the style ofbuild-unix.mdfrom https://github.com/bitcoin/bitcoin/pull/35402?Going further, maybe we can just merge build-bsd.md and build-unix.md into a single
build.md(and only keep build-osx and build-windows), or possibly merge even them into a separate section in a general build.md file?Thanks for documenting these, concept ACK
lgtm, just some nits
review ACK 61226c09c137cc552976cbc86fb69da3c12fc295 🐡
Show signature
Signature:
nit in 807b77cc978d44a4b22267473283b4de6c43b62f: When adding those to *bsd.md, why not add them to *unix.md as well?
Maybe add a sentence that the docs here only mention the pip package names, which can be installed via the system package manager (if they are offered), or via pip in a venv, or uv, or any other choice the user prefers?
If FreeBSD is the only one sticking out here, it would be fine to briefly mention
databases/py-sqlite3for FreeBSD, but not strong opinion.Do we recall why this was needed and if it is still needed? If not, it can be removed?
Can be removed after
8bfb422de8?🐙 This pull request conflicts with the target branch and needs rebase.
(Happy to address the nits here in a separate pull, as they are somewhat unrelated)
Go for it :)
Actually, I think this refers to running tests individually, not to running the tests with the test_runner, so the docs here still apply and can be kept for now.
Feel free to resolve this thread and push your rebase, with or without the other nits. Happy to re-ack either way.
rebase ping 🙏
@hebasto rebase ping 🙏
Rebased and addressed some of the feedback.
Done.
Would you mind suggesting the exact wording?
I'm going to test a few platforms.
Thanks! Done.
only change is rebase.
re-ACK 0e1e0d1d8573a581b7d0a61a5d9fef1525723425 🗨
Show signature
Signature:
Maybe this?
nit in 4f6aa41e4b4219b56842cad7120f5289dbbede40: Bad rebase?
Thanks @maflcko for the review.
Your recent feedback has been addressed.
Thanks! Fixed.
Thanks! Reworked.
Thx. Still curious about the pip error (https://github.com/bitcoin/bitcoin/pull/35395/changes/e25d9c8addd5ff489a7dac8b767e7901a5359f49#r3389204933), but this seems pre-existing and orthogonal.
review ACK c14f888996d45bc60af4a9e7023d836dff66bcb9 🏣
Show signature
Signature:
The package installation via
pipworks flawlessly: https://github.com/hebasto/github-actions/actions/runs/28876798270.Should we remove the instructions then?
Yeah, should be fine to remove in a new commit. If it is ever needed in the future, it will be trivial to revert that commit.
On my local NetBSD 10.1,
pip3 install pycapnpworks just fine. However, on the same OS in the CI, a quirk is necessary:I'm fine with that for the following reasons:
capnppackage.Interesting. Though, I presume a NetBSD 10.1 error wasn't the reason why the section was originally added?
Also, I wonder if installing from source also requires enabling exceptions, or if this is just a pip package and NetBSD-package thing on NetBSD 10.1?
Also, I wonder what the error message is in case exceptions are disabled. If the error message literally says to set
CXXFLAGS="-DKJ_NO_EXCEPTIONS=0", then it seems fine to just let the error message do the heavy lifting here instead of adding it to the docs?What's the point of this sentence?
It isn't. I still don't quite understand how removing working instructions is an "improvement", especially given the rationale is that it's impossible to maintain individual package names (even though we do it everywhere else just fine).
It's not available on OpenBSD.
Now users building from source, who copy-paste the required deps from here, will get spurious warnings about a missing Python. That seems a bit worse than no warnings in the average case?
I'm open to alternative suggestions on how to fix the issues mentioned in the PR description in way that prevents documentation from rotting in the future.
Fair point.
Here are more details: https://github.com/bitcoin-core/libmultiprocess/pull/196#issuecomment-3684300640.
I don't mind either way. Just listing the Pip names is fine, or listing all.
If all should be listed, it can be done with a compact markdown table, like:
Rendered:
pyzmqpycapnppython3python3-zmqpython3net/py-pyzmqdatabases/py-sqlite3python313py313-zmqpythonpy3-zmqOn OpenBSD, the situation is even uglier than on NetBSD:
However, our current docs don't seem helpful for either NetBSD or OpenBSD users.
🐙 This pull request conflicts with the target branch and needs rebase.
@hebasto rebase ping.
Thanks! Reworked.
Rebased and reworked to address the reviewers' feedback. Please let me know if I've left any comments unaddressed.
Base:
f655a8df755330911c6c109c8b1d04ef5dd4ea09Head:
22230f49f02b99be7077d6c52a775c322049903cFindings
Suggestions
Preserve the NetBSD
lsofOSABI caveat (test/README.md:46, head)Could this entry retain the NetBSD
lsofinstallation caveat or link to a NetBSD-specific note? The removed guide warned that a package built for a different point release may be refused and gave a conditionalCHECK_OSABIworkaround. NetBSD’s currentpkg_install.conf(5)still describessysutils/lsofas OSABI-sensitive, so contributors encountering that mismatch lose the project’s troubleshooting guidance here. (man.netbsd.org)Full review report
ACK
22230f49f0review ACK
22230f49f0🎙Show signature
Signature:
unrelated nit, because they were missing before as well: