Skip to content

Commit fc3d503

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 b436d0d commit fc3d503

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,12 @@ 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+
python -m pip install -U pip==21.0.1
264+
pip --version
262265
}
263266

264267
#######################################

0 commit comments

Comments
 (0)