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.
This commit is contained in:
Sergii Tkachenko 2021-04-26 14:49:07 -04:00 committed by Sergii Tkachenko
parent 6755cfed34
commit fcbc1abc44
1 changed files with 6 additions and 1 deletions

View File

@ -256,9 +256,14 @@ 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
python -m pip install -U pip==21.0.1
pip --version
}
#######################################