-
Notifications
You must be signed in to change notification settings - Fork 38.7k
test: fix RPC coverage check #29387
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
test: fix RPC coverage check #29387
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. 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. |
|
Also, it doesn't seem to work, because the CI should fail, because the |
|
@maflcko this is because bitcoin/test/functional/test_framework/test_node.py Lines 111 to 112 in 4de8455
|
156c1a2 to
a4498d3
Compare
a4498d3 to
1806de0
Compare
6bd9b0d to
9e28a83
Compare
maflcko
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.
Thanks. lgtm
9e28a83 to
7dc0442
Compare
jo-elimu
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.
@BrandonOdiwuor There is a CI error:
Uncovered RPC commands:
- abortrescan
|
@jo-elimu that's the error the fix was to catch. Check the issue |
|
In any case, a pull request with a failing CI can not be merged. Someone will need to add coverage for the RPC, here, or in a different pull. |
|
Concept ACK 7dc0442ff5013827c051c8ff50c8fd8aa9440d7c. |
4b20939 to
7d98e07
Compare
|
@maflcko I have added a basic test for the I cannot add the second test since I'm unable to get |
|
@fanquake fixed by disabling |
|
Can you test what happens when the wallet is completely disabled in configure? |
|
@maflcko When wallet is disabled these RPS are reported as uncovered; |
|
Why would they? If the RPCs are not compiled into the binary, how would the test know they exist? |
|
@maflcko I was responding to this request
|
42e3f82 to
fa69ab2
Compare
hernanmarino
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.
Concept ACK , but still a little concerned about @maflcko last comment ( #29387 (comment) )
|
I just tried this myself with |
|
@maflcko @hernanmarino sorry I misunderstood #29387 (comment) earlier When the wallet is disabled in the configure, the wallet RPCs are not included in the (example below from my test) |
fa69ab2 to
dcd28c8
Compare
|
🐙 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?
|
|
Picked up in #33064. |


Fixes #27593
Currently, the RPC coverage check in functional tests doesn't include a list of all RPCs. This fix enables wallet RPCs to be included in the
rpc_interface.txtused in the coverage checkThis PR Reverses part of the changes on PR #16042 - Commit fa47330#diff-4a04bc0b355c780033960e8c261ee9b6d3c452897e1dcd88a15d272512266c76R486 to speed up cache_creation by disabling the wallet
Update:
abortrescanRPC test (commit - eb085603af2a5da954cf7f95c7f77e173585e878) to fix the failing CI due to no coverage