Skip to content

Commit 9616cd5

Browse files
authored
[ci] Install redis from Debian (#4241)
* [ci] Install pytest and redis from Debian For the CI runner, install the python3 pytest and redis packages from the Debian repos instead of via pip. This has the advantage of the version being fixed for the Debian version the test runner is using. 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).
1 parent 4495a5d commit 9616cd5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,17 @@ jobs:
119119
- script: |
120120
set -ex
121121
# install packages for vs test
122-
sudo pip3 install pytest flaky exabgp docker redis lcov_cobertura
122+
sudo pip3 install pytest flaky exabgp docker lcov_cobertura
123123
124124
# install other dependencies
125125
sudo apt-get -o DPkg::Lock::Timeout=600 install -y net-tools \
126126
bridge-utils \
127127
vlan \
128128
libzmq3-dev \
129129
libzmq5 \
130-
libboost-serialization1.74.0 \
131-
libboost1.74-dev \
132-
libboost-dev \
133130
libhiredis0.14 \
134-
libpcre3-dev
131+
libpcre3-dev \
132+
python3-redis
135133
136134
sudo .azure-pipelines/build_and_install_module.sh
137135
@@ -143,7 +141,7 @@ jobs:
143141
144142
sudo dpkg -i $(Build.ArtifactStagingDirectory)/download/libprotobuf*_amd64.deb $(Build.ArtifactStagingDirectory)/download/libprotobuf-lite*_amd64.deb $(Build.ArtifactStagingDirectory)/download/python3-protobuf*_amd64.deb
145143
sudo dpkg -i $(Build.ArtifactStagingDirectory)/download/libdashapi*.deb
146-
sudo dpkg -i --force-confask,confnew $(Build.ArtifactStagingDirectory)/download/libswsscommon_1.0.0_amd64.deb || apt-get install -f
144+
sudo dpkg -i --force-confask,confnew $(Build.ArtifactStagingDirectory)/download/libswsscommon_1.0.0_amd64.deb || sudo apt-get install -y -f
147145
sudo dpkg -i $(Build.ArtifactStagingDirectory)/download/python3-swsscommon_1.0.0_amd64.deb
148146
displayName: "Install dependencies"
149147

0 commit comments

Comments
 (0)