buildscripts: xds-k8s pin pip to 21.0.1

pip 21.1 released on Apr 24 introduced a regression for python 3.6.1.
The regression was identified on Apr 24, the fix merged on Apr 25.
The fix is expected to be delivered in the 21.1.1 patch.

There's no clear date, when 21.1.1 will be released.
Until then, pin is temporarily pinned to the previous release, 21.0.1.
pull/26092/head
Sergii Tkachenko 4 years ago committed by GitHub
parent e015c81b78
commit ef930b7703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      tools/internal_ci/linux/grpc_xds_k8s_install_test_driver.sh

@ -269,9 +269,15 @@ kokoro_setup_python_virtual_environment() {
eval "$(pyenv virtualenv-init -)"
py_latest_patch="$(pyenv versions --bare --skip-aliases | grep -E "^${PYTHON_VERSION}\.[0-9]{1,2}$" | sort --version-sort | tail -n 1)"
echo "Activating python ${py_latest_patch} virtual environment"
pyenv virtualenv "${py_latest_patch}" k8s_xds_test_runner
pyenv virtualenv --no-pip "${py_latest_patch}" k8s_xds_test_runner
pyenv local k8s_xds_test_runner
pyenv activate k8s_xds_test_runner
python -m ensurepip
# pip is fixed to 21.0.1 due to issue https://github.com/pypa/pip/pull/9835
# internal details: b/186411224
# TODO(sergiitk): revert https://github.com/grpc/grpc/pull/26087 when 21.1.1 released
python -m pip install -U pip==21.0.1
pip --version
}
#######################################

Loading…
Cancel
Save