git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] ci: fix Python dependency on Ubuntu 24.04

From
Junio C Hamano <gitster@pobox.com>
Date
May 6, 2024, 17:49 UTC
Message-ID
<xmqq7cg6zv7g.fsf@gitster.g>
In-Reply-To
<ZjjU_Gaum8iYLks8@tanuki>
Patrick Steinhardt <ps@pks.im> writes:
Show 9 quoted lines
> So ultimately, it does not matter which jobs use what. But what does
> matter is whether the image even supports Python 2. And as we nowadays
> do have a fair split of jobs using "ubuntu:20.04" and "ubuntu:latest",
> I'd just use that the the criterium to pick the Python version.
>
> Once we drop support for Ubuntu 20.04, we can then more forward and stop
> supporting Python 2 altogether. Or maybe even earlier than that -- I do
> not think it is reasonable to ask Git to maintain compatibility with a
> project that is end of life already.

Yup. If an distro sticks to Python 2 for whatever reason, they may want to donate and dedicate CI resources, but otherwise it is not really our job to keep compatibility on our side.

Show 6 quoted lines
>> With this change, "linux-gcc" jobs using ubuntu 20.04 will now use
>> Python 2. Is that what we want?
>
> Well, as explained above, the selection was arbitrary in the first
> place. Now it's less so as the choice is mandated by what is actually
> supported.

Yup, as long as there is one that supports Python 2 among the distros we happen to use for our CIs, we can pick that one. Otherwise we should drop.

Dropping Python 2 support does not have to wait for Git 3.0, I would say.

Thanks.
Previous: Patrick SteinhardtNext: Justin Tobler
Message 4 of 7 in “ci: fix Python dependency on Ubuntu 24.04”
  1. ci: fix Python dependency on Ubuntu 24.04Patrick Steinhardt, May 6, 2024
  2. Justin ToblerMay 6, 2024
  3. Patrick SteinhardtMay 6, 2024
  4. Junio C HamanoMay 6, 2024
  5. Justin ToblerMay 6, 2024
  6. Junio C HamanoMay 6, 2024
  7. Patrick SteinhardtMay 7, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.