From a33e9fc4903c46186950c5e15ab51225686e4e54 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 10 Aug 2023 17:37:54 +1000 Subject: [PATCH] CI: downgrade Python lint task to Ubuntu 22.04 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ubuntu 22.10 was EOLed on 2023-07-26.¹ The obvious thing would be to _upgrade_ to Ubuntu 23.04. But we run into the new Python policy Ubuntu has instituted (see 0050eacd751dfc48bc3bc3c7af9f9c058a47e430). We could comply with this or move this task to Fedora, but then we find that Pylint does not work with Python 3.11² which is what is in use on both Ubuntu 23.04 and all supported Fedora releases. So downgrading to Ubuntu 22.04 seems like the simplest options for an environment that is still in its support window. ¹ https://wiki.ubuntu.com/Releases ² Discussed in the comments of https://github.com/pylint-dev/pylint/issues/6535. Symptoms are complaints of `os` members not existing. --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68145f0195..ca384f87b4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1353,10 +1353,10 @@ lint_html: - tags lint_python: - image: "$CI_REGISTRY_IMAGE/ubuntu-22.10:$CI_COMMIT_SHA" + image: "$CI_REGISTRY_IMAGE/ubuntu-22.04:$CI_COMMIT_SHA" stage: test needs: - - docker_build_ubuntu-22.10 + - docker_build_ubuntu-22.04 script: - git ls-files -z -- '**.py' | xargs -0 -- python3 -m pylint --rcfile=.pylintrc --disable=fixme - git ls-files -z -- '**.py' | xargs -0 -- python3 -m black --check