Fixes #10849 (review)
qa: Add multiwallet prefix test #11743
pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1711-qaMultiwallet changing 1 files +8 −3-
MarcoFalke commented at 1:52 PM on November 21, 2017: member
-
qa: Add multiwallet prefix test fa61c6f6a6
- MarcoFalke added the label Tests on Nov 21, 2017
-
jnewbery commented at 3:24 PM on November 21, 2017: member
Tested ACK fa61c6f6a6fda3e68f3f84d27bcc996af861bcfd
-
promag commented at 3:41 PM on November 21, 2017: member
Could rename
w3tow? Why make the test slower? -
sipa commented at 2:47 AM on November 22, 2017: member
Why make the test slower?
?
- MarcoFalke merged this on Nov 22, 2017
- MarcoFalke closed this on Nov 22, 2017
- MarcoFalke referenced this in commit 3d6ad40777 on Nov 22, 2017
- MarcoFalke deleted the branch on Nov 22, 2017
-
promag commented at 5:28 PM on November 22, 2017: member
Come on, I think I made a valid point, and if it wasn't clear at least give a chance to explain. Beside it only had one ACK. Test code should follow the same review rules as the other right?
My point is that renaming w3 to w would be enough, or am I wrong? It is slower in the sense that at least more RPC calls are (unnecessarily) made.
-
MarcoFalke commented at 5:58 PM on November 22, 2017: member
Yes, you are right that renaming w3 to w achieves the goal in a different way. However, I don't think we should be counting the number of rpc calls, when optimizing the functional test suite for speed. Especially, since some calls like
getwalletinfoorgetnewaddressare trivial computationally wise.I'd understand your concern in case, let's say, we called
generate(100)or added a new node to the topology (thus having to wait for startup, chain sync and shutdown).Re: Review on test pulls. In the past there have been many test pulls sitting for months, not gaining any review (e.g. #11182, #10711, #10099). Instead, their author had to rebase every couple of weeks. To be fair those pulls were more involved than this one. And for rather simple pulls, such as this one, I try to merge quickly. Two utACK or one tested ACK should be sufficient. Again, your feedback was not ignored, but I didn't consider it critical to hold up the merge. If I changed the pull to address your feedback, review needed to be start all over again, equivalent to creating a new pull request. Personally, I don't think that would be worth it. Though, if you feel strongly about the feedback, you are very welcome to create a patch for it and submit it for review.
-
promag commented at 6:31 PM on November 22, 2017: member
@MarcoFalke really appreciate the reply.
-
ryanofsky commented at 6:37 PM on November 22, 2017: member
I don't understand what this is testing. What exactly is a "length extension bug" in this context? Either of the changes discussed seems fine but I think should definitely be accompanied by a comment explaining precisely what bug (or type of bug) the "w" test case is intended to catch so coverage is not lost in the future.
Note that #11687 also makes significant changes to this test and renames some of the wallets.
-
promag commented at 6:44 PM on November 22, 2017: member
It tests that a RPC to wallet w doesn't hit wallet w1 for instance.
-
MarcoFalke commented at 6:46 PM on November 22, 2017: member
@ryanofsky As I understand, the potential bug is that a call to "w" matches any of "w1", "w2", ... , because the one wallets' name is a prefix of another wallet. Alternatively, a call to wallet "w3" will instead call to "w", because or logic might only compare up to the length of the shortest wallet file name.
Overall this should be testing our "endpoint-to-wallet" method.
-
MarcoFalke commented at 7:07 PM on November 22, 2017: member
@ryanofsky Jup, thanks for doing that. I should have done it in this pull.
- attilaaf referenced this in commit 23870542d3 on May 25, 2019
- PastaPastaPasta referenced this in commit bbfba296d3 on Jan 17, 2020
- PastaPastaPasta referenced this in commit 2fb855a5fc on Jan 22, 2020
- PastaPastaPasta referenced this in commit 8226417806 on Jan 22, 2020
- PastaPastaPasta referenced this in commit 44e8cec7fd on Jan 29, 2020
- PastaPastaPasta referenced this in commit 6db8d3596a on Jan 29, 2020
- PastaPastaPasta referenced this in commit a97ac0f09a on Jan 29, 2020
- ckti referenced this in commit 05d8916d40 on Mar 28, 2021
- gades referenced this in commit 279f90738d on Jun 30, 2021
- MarcoFalke locked this on Sep 8, 2021