1
0
mirror of https://github.com/git/git synced 2024-07-02 15:48:44 +00:00
git/ci
Patrick Steinhardt 5ca0c455f1 ci: fix Python dependency on Ubuntu 24.04
Newer versions of Ubuntu have dropped Python 2 starting with Ubuntu
23.04. By default though, our CI setups will try to use that Python
version on all Ubuntu-based jobs except for the "linux-gcc" one.

We didn't notice this issue due to two reasons:

  - The "ubuntu:latest" tag always points to the latest LTS release.
    Until a few weeks ago this was Ubuntu 22.04, which still had Python
    2.

  - Our Docker-based CI jobs had their own script to install
    dependencies until 9cdeb34b96 (ci: merge scripts which install
    dependencies, 2024-04-12), where we didn't even try to install
    Python at all for many of them.

Since the CI refactorings have originally been implemented, Ubuntu
24.04 was released, and it being an LTS versions means that the "latest"
tag now points to that Python-2-less version. Consequently, those jobs
that use "ubuntu:latest" broke.

Address this by using Python 2 on Ubuntu 20.04, only, whereas we use
Python 3 on all other Ubuntu jobs. Eventually, we should think about
dropping support for Python 2 completely.

Reported-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-05-06 12:26:46 -07:00
..
config ci: deprecate ci/config/allow-ref script 2023-08-30 15:56:11 -07:00
util travis-ci: include the trash directories of failed tests in the trace log 2018-08-01 09:59:36 -07:00
check-directional-formatting.bash ci: disallow directional formatting 2021-11-04 10:13:10 -07:00
install-dependencies.sh ci: make p4 setup on macOS more robust 2024-01-18 11:53:17 -08:00
install-docker-dependencies.sh ci: add job performing static analysis on GitLab CI 2024-01-08 11:23:03 -08:00
lib.sh ci: fix Python dependency on Ubuntu 24.04 2024-05-06 12:26:46 -07:00
make-test-artifacts.sh ci(github): use grouping also in the win-build job 2022-06-13 09:58:41 -07:00
mount-fileshare.sh Add a build definition for Azure DevOps 2019-01-29 09:26:46 -08:00
print-test-failures.sh ci: handle TEST_OUTPUT_DIRECTORY when printing test failures 2024-01-18 11:53:17 -08:00
run-build-and-minimal-fuzzers.sh fuzz: add fuzzer for config parsing 2024-03-15 10:47:05 -07:00
run-build-and-tests.sh ci: add jobs to test with the reftable backend 2024-02-07 08:28:37 -08:00
run-docker-build.sh CI: rename the "Linux32" job to lower-case "linux32" 2021-11-23 16:51:53 -08:00
run-docker.sh CI: rename the "Linux32" job to lower-case "linux32" 2021-11-23 16:51:53 -08:00
run-static-analysis.sh i18n CI: stop allowing non-ASCII source messages in po/git.pot 2022-05-26 10:30:28 -07:00
run-test-slice.sh ci: run unit tests in CI 2023-11-10 08:15:32 +09:00
test-documentation.sh ci: ignore rubygems warning in the "Documentation" job 2020-02-10 09:52:27 -08:00