Skip to content

Commit 985742f

Browse files
authored
[ci] Install redis from Debian (#1777)
For the CI runner, install the python3 redis packages from the Ubuntu repos instead of via pip. This has the advantage of the version being fixed for the Debian version the test runner is using. Also remove some development package installations, which shouldn't be needed for running these tests. This works around the regression for Unix sockets introduced in redis 7.2.0 (see also redis/redis-py#3957 and redis/redis-py#3957). Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
1 parent 566c04a commit 985742f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.azure-pipelines/test-docker-sonic-vs-template.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- script: |
8888
set -ex
8989
# install packages for vs test
90-
sudo pip3 install pytest flaky exabgp docker redis
90+
sudo pip3 install pytest flaky exabgp docker
9191
9292
# install packages for kvm test
9393
sudo apt-get update
@@ -100,11 +100,9 @@ jobs:
100100
python3-libvirt \
101101
libzmq3-dev \
102102
libzmq5 \
103-
libboost-serialization1.74.0 \
104-
libboost1.74-dev \
105-
libboost-dev \
106103
libhiredis0.14 \
107104
libpcre3-dev \
105+
python3-redis \
108106
uuid-dev
109107
110108
sudo sonic-sairedis/.azure-pipelines/build_and_install_module.sh

0 commit comments

Comments
 (0)