-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Properly support interactive Subversion client #6515
Conversation
@cjerdonek Do you know of any public Internet-facing SVN repos that contain Python packages we could use to test with? I have some private ones I can test against, but it would also be helpful if there were some that others (like you) could test as part of the review. Even if they aren't private (e.g. needing a password), I think it would be a helpful smoke test. |
I don't know offhand, but I agree it would be good to find some examples. On your PR, for caching reasons, the methods needing |
@cjerdonek Some initial good news! I tested the following configurations with this PR:
And So it would seem the logic is at least sound and actually solves the issue. (Very cool!) |
Great to hear! Great work! |
Yeah, I noticed that too. It seems like this will bubble up into most of the So, it looks pretty invasive (I'm also not very familiar with where this cacheing would happen. Does |
The macOS failures look spurious and unrelated to this PR? |
I was referring to the For the class methods, if that's something you'd feel more comfortable me doing, let me know and I could do it. It should be an easy, more or less mechanical change. Also, depending on the size of the change, it should maybe go in a separate refactoring PR, too. A lot of those methods were made class methods before this use case came up. |
Yes, those are flaky tests (I filed an issue about them not too long ago). And glad you like the "scone" idiom. :) I learned about that recently so want to use it more.. |
Ah cool, that makes sense.
Yeah, if you're willing I think it'd be more efficient for you to the the refactor since I'm less familiar with anything outside of the
Yeah, I feel it would be bets for that refactor to go into another PR. That way, this PR can be minimal for future posterity. |
I see you reported the flaky test in #6235 (referencing to cross-post another example of failure). |
Almost all of the class method changes would be needed only for |
Oh, good catch. Looking at this more closely you're right, we don't need to call interactively since it's not running Since we're running it against a local directory, the interactive password issue shouldn't be relevant to this use of I'll update the PR accordingly. |
Okay, cool. That means the class method changes will be minimal. |
I looked over the remaining usages of |
You might as well add a code comment above the svn info invocation saying why it’s not needed in that case (especially because it was initially unclear). |
FYI, I posted PR #6519 for the |
Good idea. Done. |
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.
A couple last comments.
Build failure appears to be the same spurious macOS failure. |
@cjerdonek I believe I have addressed your comments. Note that I switched away from using the |
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.
Some additional comments after the addition of the test case class.
@cjerdonek I believe I have addressed all of your comments. |
Looks great! Again, good job on the PR. 😀 |
Oops, I meant to click "squash" on that. Oh well, not a big deal. |
Thanks for all of your help getting this through @cjerdonek! |
FYI, you probably already know this, but it is possible to set up the GitHub project to require squashed PRs, etc. if that would help. |
It's no big deal - pip doesn't require squashed PRs. I assume the only reason @cjerdonek intended to squash was because this PR has had quite a lot of revisions. |
Yeah, basically.
This occurred to me, too, but there are also many times we don't want to squash -- like when each commit is made separately meaningful and doesn't contain things getting corrected, etc. As @pfmoore said, it's not a big deal. But if some kind of policy were possible, I think it'd be useful if the UI could be configured to prompt with an "are you sure?" message if you're not squashing and the PR has over N commits (with N perhaps 5 or so). But I doubt GitHub would have anything so fine-grained as that. |
By the way, if you want to do a follow-up cleanup, you could move the |
Hi @johnthagen, I just wanted to check again to see if you'd maybe be willing to do the two minor clean-ups I mentioned in my comment above. It would be appreciated! |
@cjerdonek Sure, I'll work on some PRs. |
Fixes #6386
cc @cjerdonek