-
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
python2.7 will be removed from the images on June 12, 2023 #7401
Comments
Correction: it's 2020, not 2022. The linked documents don't even mention 2022. |
@vitalkanev true that! Fixed, thanks :) |
Can I ask for clarification of the exact implications of this - is this just being removed from the runners tool cache, but would still be installable using the |
Bumping the question above, as the implications of this still aren't entirely clear. |
This rollout seems to have affected some builds with Wine: #4589 Is it possible to request the old image version as part of a build? |
Any more information here? I had assumed as the date had passed this was not going to cause us any issues, but on checking back I see the rollout has been delayed. Could we get clarity before this is rolled out? |
@thecesrom thanks for dong this. Do you use any external services in your testing? My github CI action deploys and does custom configuration for postgresql, mysql, and redis to be able to test the Python application. I guess I am going to have to:
Sadly it's many hours of non-productive work either way. |
Azure pipelines is removing python2 from the hostedtoolcache, see actions/runner-images#7401 We want to test that meson can still build modules for it, anyway.
Azure pipelines is removing python2 from the hostedtoolcache, see actions/runner-images#7401 We want to test that meson can still build modules for it, anyway.
To give some perspective on this - we have continued to support Python 2.7 with https://github.com/learningequality/kolibri based on our telemetry data which suggests that we still have a small but significant (roughly 2%) of active installed devices that are using Python 2.7. In addition, as our primary target is offline usage, there is the potential for a considerably larger number of offline users who are less able to run up to date Python versions. We are in the process of deprecating Python 2.7 now that we have got down to only ~2% of recorded pingbacks, but we are also highly conscious of wanting to support the widest range of hardware and software we can. This doesn't mean that you need to change course here - we can work around it until we are ready, but just wanted to give some additional perspective on why we are still actively using Python 2.7. |
The software I support has per site programming in Python. Business logic is written in Python and needs to be upgraded/rewritten/tested under python 3 for each tracker deployment. Deprecation for Python 2 started with the first release that supported Python 3 in 2020. My original plan was to support python 2 until the 2020 long term support (LTS) distros went out of support. That is in 2025 for Ubuntu and similarly for Debian 9. RedHat support was expected to end after full support ended again in 5 years. Less than a year ago I had somebody upgrade to python 3 because they went to a new platform that dropped support for python 2. I expected similar platform upgrades to drive movement to Python 3. Obviously I'll have to make a decision about the 2024 and 2025 version support for python 2. |
Removed from the image. |
python2 will be (or already has been?) removed from Github Actions Ubuntu images: actions/runner-images#7401
I second that. The work involved on your side to "keep it working" might be a little higher now that it actually was removed, but I still don't understand why you have decided to replace an "it's there, it still works, no changes" maintenance burden with a "please switch to an entirely different setup and bring that to work" for all of your users that still need it. That seems a very costly step overall.
It seems like another year would have helped. Many projects have been removing Py2 support gradually only during the last year, and it's still going up the dependency chains. Removing support now will probably accelerate that ("sorry, we can't test it any more, and don't have the time to add back the support"), but it's also a hard blow. IMHO, the removal now is still too early. Reading the discussion above, the deadline seems entirely arbitrary. So why not move it by another year again? |
My solution for Windows was to simply download https://www.python.org/ftp/python/2.7.18/python-2.7.18.amd64.msi and run For Linux there might be a slightly higher maintenance burden on the runner-images although I would have assumed the only real, meaningful difference is a version number on the list of source tarballs that are looped over, downloaded, and |
For anyone who still needs to run Python 2.7 on Windows in GitHub actions, here's an Actions step I came up with after a lot of trial and error:
This step takes about 60 secs to run for me. |
…ython 2.7 See this issue in the `setup-python` repo: actions/setup-python#672 This comment pointed us to try using `pypy2.7`: actions/runner-images#7401 (comment)
@anthonyeden, perhaps you could try On the other hand, I've created an action for publishing Python2-only packages available here, and a Docker image with Python 3.10 and 2.7 called coatldev/six. |
* Add support github-action python2.7 by the use of a container See actions/runner-images#7401 (comment)
…ython 2.7 See this issue in the `setup-python` repo: actions/setup-python#672 This comment pointed us to try using `pypy2.7`: actions/runner-images#7401 (comment)
Due to: * actions/setup-python#672 * actions/runner-images#7401 Alternative option would be to consider: * https://github.com/coatl-dev/docker-six * https://github.com/MatteoH2O1999/setup-python Advantage of this change is that it only relies on Debian.
Due to: * actions/setup-python#672 * actions/runner-images#7401 Alternative option would be to consider: * https://github.com/coatl-dev/docker-six * https://github.com/MatteoH2O1999/setup-python Advantage of this change is that it only relies on Debian.
…ython 2.7 See this issue in the `setup-python` repo: actions/setup-python#672 This comment pointed us to try using `pypy2.7`: actions/runner-images#7401 (comment)
This was needed, because Python 2 was removed from the GitHub Windows images recently. See actions/runner-images#7401
Breaking changes
Python 2.7 will be removed from the images' tool cache.
Target date
The image rollout will start on June 12, 2023 and take 3-4 days.
The motivation for the changes
Python2.7 is not supported since January 1, 2020.
Possible impact
If your builds depend on python2.7 they will be broken.
Platforms affected
Runner images affected
Mitigation ways
No specific steps should be taken.
The text was updated successfully, but these errors were encountered: