Skip to content

Commit fcbc1ab

Browse files
committed
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.
1 parent 6755cfe commit fcbc1ab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

buildscripts/kokoro/xds-k8s-install-test-driver.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,14 @@ kokoro_setup_python_virtual_environment() {
256256
eval "$(pyenv virtualenv-init -)"
257257
py_latest_patch="$(pyenv versions --bare --skip-aliases | grep -E "^${PYTHON_VERSION}\.[0-9]{1,2}$" | sort --version-sort | tail -n 1)"
258258
echo "Activating python ${py_latest_patch} virtual environment"
259-
pyenv virtualenv "${py_latest_patch}" k8s_xds_test_runner
259+
pyenv virtualenv --no-pip "${py_latest_patch}" k8s_xds_test_runner
260260
pyenv local k8s_xds_test_runner
261261
pyenv activate k8s_xds_test_runner
262+
python -m ensurepip
263+
# pip is fixed to 21.0.1 due to issue https://github.com/pypa/pip/pull/9835
264+
# internal details: b/186411224
265+
python -m pip install -U pip==21.0.1
266+
pip --version
262267
}
263268

264269
#######################################

0 commit comments

Comments
 (0)