Skip to content

Commit

Permalink
buildscripts: xds-k8s pin pip to 21.0.1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sergiitk committed Apr 27, 2021
1 parent 4e98d34 commit 737e682
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion buildscripts/kokoro/xds-k8s-install-test-driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

#######################################
Expand Down

0 comments on commit 737e682

Please sign in to comment.