From: Anil Belur Date: Sun, 4 May 2025 23:10:04 +0000 (+1000) Subject: Fix: pin setuptools<66 X-Git-Tag: v0.91.4^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F73463%2F3;p=releng%2Fglobal-jjb.git Fix: pin setuptools<66 Pin setuptools<66 version on lf-env.sh script until this is fixed upstream. The lf-activate-venv function installs packages like lftools, which in turn installs pygerrit2, and that fails due to a broken pbr + setuptools >= 66 compatibility issues and bugs are resolved. Issue: IT-28129 Change-Id: I78576edbeec5f77ac710265ea28bd6e0bb5c2a0a Signed-off-by: Anil Belur --- diff --git a/jenkins-init-scripts/lf-env.sh b/jenkins-init-scripts/lf-env.sh index a85fae0f..ee506766 100644 --- a/jenkins-init-scripts/lf-env.sh +++ b/jenkins-init-scripts/lf-env.sh @@ -243,8 +243,9 @@ lf-activate-venv () { echo "${FUNCNAME[0]}(): INFO: Save venv in file: $venv_file" fi - "$lf_venv/bin/python3" -m pip install --upgrade --quiet pip \ - virtualenv || return 1 + # Pin setuptools<66 until the issue with pbr + setuptools >=66 is fixed + "$lf_venv/bin/python3" -m pip install --upgrade --quiet \ + pip 'setuptools<66' virtualenv || return 1 if [[ -z $pkg_list ]]; then echo "${FUNCNAME[0]}(): WARNING: No packages to install" else diff --git a/releasenotes/notes/pin-setuptools-e736858eb9b349da.yaml b/releasenotes/notes/pin-setuptools-e736858eb9b349da.yaml new file mode 100644 index 00000000..6675ecd5 --- /dev/null +++ b/releasenotes/notes/pin-setuptools-e736858eb9b349da.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Pin setuptools<66 version on lf-env.sh script until this is fixed upstream. The lf-activate-venv + function installs packages like lftools, which in turn installs pygerrit2, and that fails due + to a broken pbr + setuptools >= 66 compatibility issues and bugs are resolved.