mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
test: handle mainnet logs in combine_logs.py #36982
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!36982
Loading…
Reference in a new issue
No description provided.
Delete branch "l0rinc/combine-logs-mainnet"
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?
Problem: Running
combine_logs.pyon the logs from a mainnet functional test such asrpc_validateaddress.pyraisesAttributeError. The helper expects a path likenode0/regtest/debug.log, but mainnet writesnode0/debug.log.Before #16973, the helper silently skipped the mainnet log. That PR made the search recursive, so it finds the log and then fails when the regex tries to extract a subdirectory.
Fix: Get the log directory relative to
node0/from the path the script already found.Manual reproducer
From the repository root with a functional-test build:
The address-validation test passes. Before the fix, the last command fails in
read_logs():With the fix, the same command prints both the
testandnode0log entries in timestamp order.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.If this is broken, that seems like more reason to remove entirely, rather than fix: https://github.com/bitcoin/bitcoin/pull/36958#issuecomment-7138986376.
Was wondering about the same, closing and +1 for removal
lgtm ACK
4e1dc2e015This is used by the test runner, it can't be removed:
Yea, sorry. This can be fixed (and backported).
Code Review ACK
4e1dc2e015I use
combine_logs.pyoften, but apparently never with a mainnet test.Special constellations such as
feature_config_args.py(multiple chains for one node) andwallet_crosschain.py(mixed chains) will still not behave ideally, but I don't think this is worth fixing - it seems good enough for me.Backported to
32.xin #36984.No findings were published from this review.
Review coverage was incomplete.
Reviewed:
4e1dc2e01511· Review report · Previous reportspermalink
ralph referenced this pull request2026-11-27 15:36:31 +00:00