-
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
Modify the "you should upgrade" message to remind users to test #6443
Comments
For the record, the current message is:
(I went looking for it) I don't feel strongly about this and mildly agree :) |
Hi @pfmoore , @xavfernandez Was there any consensus made on the updating the language mentioned at the warning at https://github.com/pypa/pip/blob/master/src/pip/_internal/self_outdated_check.py#L232 . If yes, I can perhaps make a PR for it and add it to the repo. I think we can also add this to the upgrade section https://github.com/pypa/pip/blob/master/docs/html/installing.rst#upgrading-pip to remind the user of what might be pre-checks before upgrading pip. |
IIRC there was a discussion on this, but was put on hold since |
I thought there’s one @chrahunt was involved, but yeah the conclusion is the same as the one you mentioned as well. 🧐 |
Hi @uranusjr , So can I go ahead and just replace |
Sounds good yo me. I would also suggest dropping the OS conditional and show |
Please consider @pfmoore's comments on the issue linked above:
and
I don't really have an opinion on this though, just thought that it's worth reminding. Otherwise it might be a good idea to use Edit: see below, i.e. |
Hi @uranusjr I just saw the code again, and we are already using Given that's the case, should I still just update the message and update the doc as I mentioned ? Or should we leave things as-is and just close this issue? |
This issue is about adding "you should test" wording, not about whether we recommend As far as the key point of this issue is concerned, adding
I don't believe there's any consensus yet. @xavfernandez said "I don't feel strongly about this and mildly agree :)", and none of the other pip committers have commented. My comment at the end of the issue:
still applies - I don't feel sufficiently confident to make this change unilaterally, so it's basically on hold until someone wants to manage the discussion and get consensus on whether ths is worth doing. (@deveshks if you want to manage that discussion, great! My opinion is still the same as I said above. I'd be happy to see other people comment - both pip committers and interested/affected users. But I don't have any great insight into how to get people's views 🤷♂). |
Hi @pfmoore Appreciate your insight, and I agree that making a change in the wording should be done with consensus of committers and users. I see that there is already a discussion needed label, so I would wait for others to chime in :) |
What's the problem this feature will solve?
Whenever pip releases a new version, we get people having issues because they pick up the new version in automated workflows, without having tested those workflows. As a result, feature changes or backward compatibility breaks have the potential to impact a lot of users with very little warning.
Describe the solution you'd like
Ideally, users would test their automated workflows before upgrading pip. It's obviously not possible to enforce this from pip (and indeed for many projects, such testing may be impractical), but it would be useful to encourage it by reminding people of the need to test before upgrading. This can be done in the "you should upgrade" message issued when pip detects that a new version is available.
Proposed addition to the message:
The change would be extremely low-cost (it is simply an update to a text message) and should itself have no compatibility issues. I will create a PR if the idea meets with general approval.
Alternative Solutions
The following options have proved ineffective in the past:
Additional context
This clearly won't solve the issue directly, and the suggestion may not actually be practical for many users. But even so, it may (over time) raise awareness of the risks, to the point where projects using pip at least have mitigation strategies in place for issues after an upgrade.
I am looking for general approval of the approach before implementing it as there is a risk that we will be seen as "lecturing" our users rather than addressing the breakage issues (even though that is emphatically not the intention).
The text was updated successfully, but these errors were encountered: