Skip to content
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

qa: Add multiwallet prefix test #11743

Merged
merged 1 commit into from Nov 22, 2017
Merged

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Nov 21, 2017

@maflcko maflcko added the Tests label Nov 21, 2017
@jnewbery
Copy link
Contributor

Tested ACK fa61c6f

@promag
Copy link
Member

promag commented Nov 21, 2017

Could rename w3 to w? Why make the test slower?

@sipa
Copy link
Member

sipa commented Nov 22, 2017

Why make the test slower?

?

@maflcko maflcko merged commit fa61c6f into bitcoin:master Nov 22, 2017
maflcko pushed a commit that referenced this pull request Nov 22, 2017
fa61c6f qa: Add multiwallet prefix test (MarcoFalke)

Pull request description:

  Fixes #10849 (comment)

Tree-SHA512: 7967be04e76d935398b3bea60c864ffc9e38dbb4cfb55890bb146a6f16c28d81ca5d89736275e2d0b03642806f6f7093beeea979f5257c464f437c4e5a9684f1
@maflcko maflcko deleted the Mf1711-qaMultiwallet branch November 22, 2017 16:55
@promag
Copy link
Member

promag commented Nov 22, 2017

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.

@maflcko
Copy link
Member Author

maflcko commented Nov 22, 2017

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 getwalletinfo or getnewaddress are 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
Copy link
Member

promag commented Nov 22, 2017

@MarcoFalke really appreciate the reply.

Copy link
Contributor

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Member

promag commented Nov 22, 2017

It tests that a RPC to wallet w doesn't hit wallet w1 for instance.

@maflcko
Copy link
Member Author

maflcko commented Nov 22, 2017

@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.

@ryanofsky
Copy link
Contributor

Oops, didn't realize this was already merged. Guess I will add the comment myself in #11687.

@maflcko
Copy link
Member Author

maflcko commented Nov 22, 2017

@ryanofsky Jup, thanks for doing that. I should have done it in this pull.

PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jan 17, 2020
fa61c6f qa: Add multiwallet prefix test (MarcoFalke)

Pull request description:

  Fixes bitcoin#10849 (comment)

Tree-SHA512: 7967be04e76d935398b3bea60c864ffc9e38dbb4cfb55890bb146a6f16c28d81ca5d89736275e2d0b03642806f6f7093beeea979f5257c464f437c4e5a9684f1
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jan 22, 2020
fa61c6f qa: Add multiwallet prefix test (MarcoFalke)

Pull request description:

  Fixes bitcoin#10849 (comment)

Tree-SHA512: 7967be04e76d935398b3bea60c864ffc9e38dbb4cfb55890bb146a6f16c28d81ca5d89736275e2d0b03642806f6f7093beeea979f5257c464f437c4e5a9684f1
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jan 22, 2020
fa61c6f qa: Add multiwallet prefix test (MarcoFalke)

Pull request description:

  Fixes bitcoin#10849 (comment)

Tree-SHA512: 7967be04e76d935398b3bea60c864ffc9e38dbb4cfb55890bb146a6f16c28d81ca5d89736275e2d0b03642806f6f7093beeea979f5257c464f437c4e5a9684f1
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jan 29, 2020
fa61c6f qa: Add multiwallet prefix test (MarcoFalke)

Pull request description:

  Fixes bitcoin#10849 (comment)

Tree-SHA512: 7967be04e76d935398b3bea60c864ffc9e38dbb4cfb55890bb146a6f16c28d81ca5d89736275e2d0b03642806f6f7093beeea979f5257c464f437c4e5a9684f1
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jan 29, 2020
fa61c6f qa: Add multiwallet prefix test (MarcoFalke)

Pull request description:

  Fixes bitcoin#10849 (comment)

Tree-SHA512: 7967be04e76d935398b3bea60c864ffc9e38dbb4cfb55890bb146a6f16c28d81ca5d89736275e2d0b03642806f6f7093beeea979f5257c464f437c4e5a9684f1
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jan 29, 2020
fa61c6f qa: Add multiwallet prefix test (MarcoFalke)

Pull request description:

  Fixes bitcoin#10849 (comment)

Tree-SHA512: 7967be04e76d935398b3bea60c864ffc9e38dbb4cfb55890bb146a6f16c28d81ca5d89736275e2d0b03642806f6f7093beeea979f5257c464f437c4e5a9684f1
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Jun 30, 2021
fa61c6f qa: Add multiwallet prefix test (MarcoFalke)

Pull request description:

  Fixes bitcoin#10849 (comment)

Tree-SHA512: 7967be04e76d935398b3bea60c864ffc9e38dbb4cfb55890bb146a6f16c28d81ca5d89736275e2d0b03642806f6f7093beeea979f5257c464f437c4e5a9684f1
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants