-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Update conda-lock for change in release workflow #22253
Conversation
* Do not patch conda-lock file * Only use Github url to check for updates
* No longer necessary to patch is_anaconda, is_conda_based_app, and get_spyder_conda_channel * Individual tests for PyPi, conda, and app environments are no longer necessary.
I don't understand the need for this change because:
|
That's not fine since in these circumstances we prompt the user with the opportunity to install the update using our installers. If they accept and those installers are not yet available, then there will be an error.
This is a good point and reveals an existing issue. Currently, in this circumstance, the main channel will be checked for updates, which you point out could be as much as a year behind. This means that users will not even be given the option to use our installer either. By checking on GH, anaconda users will at least be given a timely opportunity to update using our installer. However, we may need to inform the user that if they do not opt for our installer a new version is not yet available on the main channel. |
Ok, I understand your logic now and you're right about this point.
It's unfortunate that we have to do that for Anaconda users, but I don't see other choice (see below).
The problem is that, with these changes, we'd be informing users that a new version is available regardless of being part of Anaconda. And, although I understand your point of letting users know about a more recent version not present there, as a user I'd be frustrated by trying to install it through Anaconda just to see that it's not really part of it. So, now I think we should revert the code you removed but only for Anaconda. |
I don't think I understand your point here. As a user, if I'm informed that there is a new version of Spyder available if I use the installer, but there is not a new version available on the main Anaconda channel, then at least I have a choice. Otherwise I don't even know that Spyder is actually more than a year ahead of what I'm using. If Anaconda installed Spyder users are a year behind, then I think this category of users should be the primary target for nudging to use our installer and not kept ignorant of it. Perhaps I don't understand completely what you think the user would be frustrated with. |
I think there are several UX issues with that approach:
|
This is only true if "Check for updates on startup" is selected. In the institutional setting that you describe, this should be deselected anyway. Otherwise users will still be as annoyed when Anaconda updates Spyder and users cannot do anything about it. This does not seem to be an issue directly related to our installers or whether GH is used to check for updates.
I'm not suggesting that we force users to do anything. We inform users (both PyPi and conda users) that a preferred installer is available; the choice is theirs. Under the current situation, Anaconda users would not even be informed of the alternative until much much later. |
@ccordoba12, I restored using the defaults channel for checking for updates when Spyder is installed from that channel. |
…s installed using defaults channel. Because the defaults channel is usually very far behind the Github releases, this prevents users from being spammed for updates that are not available on the defaults channel.
Thanks @mrclary! We can keep talking about how to inform Anaconda users about updates, but that's a bit ortogonal to the changes you did here. |
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 @mrclary!
Description of Changes
We agreed to change the release workflow to PyPi -> conda-forge -> Github in order to produce sound conda-lock files on release for updating our conda-based applications. This results in the following changes to the installer CI workflow and update manager.
This is a follow-up PR to #22204