[ci] Install redis from Debian#1154
Conversation
For the CI runner, install the python3 redis package 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>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
This PR updates the Azure Pipelines test template to install the Python redis package from Debian repositories instead of pip, addressing a Unix socket regression in redis-py 7.2.0. The change ensures version stability by using the Debian-packaged version and removes unnecessary development packages that were previously installed for test runs.
Changes:
- Switch from pip-installed
redispackage to Debian'spython3-redispackage for version stability - Remove unnecessary development packages (
libboost-serialization1.74.0,libboost1.74-dev,libboost-dev) from test environment - Add
-yflag toapt-get install -ffor non-interactive dependency resolution
| net-tools \ | ||
| bridge-utils \ |
There was a problem hiding this comment.
The package list contains duplicates: 'net-tools' appears on both line 81 and line 90, and 'bridge-utils' appears on both line 82 and line 91. Consider removing the duplicate entries to keep the dependency list clean and maintainable.
| net-tools \ | |
| bridge-utils \ |
|
Cherry-pick PR to 202511: #1173 |
|
@saiarcot895 cherry pick PR didn't pass PR checker after retry. Please help check! Thanks. ---Powered by SONiC BuildBot
|
For the CI runner, install the python3 redis package 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).