Skip to content

Commit 006583b

Browse files
committed
Replacing the redis image with redis-libs-tests image in test infrastructure
1 parent 72cdaf6 commit 006583b

File tree

5 files changed

+22
-42
lines changed

5 files changed

+22
-42
lines changed

.github/actions/run-tests/action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,9 @@ runs:
3131
- name: Setup Test environment
3232
env:
3333
REDIS_VERSION: ${{ inputs.redis-version }}
34-
REDIS_IMAGE: "redis:${{ inputs.redis-version }}"
3534
CLIENT_LIBS_TEST_IMAGE: "redislabs/client-libs-test:${{ inputs.redis-version }}"
3635
run: |
3736
set -e
38-
39-
if [ "${{inputs.redis-version}}" == "8.0-M04-pre" ]; then
40-
export REDIS_IMAGE=redis:8.0-M03
41-
fi
4237
4338
echo "::group::Installing dependencies"
4439
pip install -U setuptools wheel

.github/workflows/integration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ env:
2727
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2828
# this speeds up coverage with Python 3.12: https://github.com/nedbat/coveragepy/issues/1665
2929
COVERAGE_CORE: sysmon
30-
REDIS_IMAGE: redis:latest
30+
# REDIS_IMAGE: redis:latest
3131
REDIS_STACK_IMAGE: redis/redis-stack-server:latest
3232
CURRENT_REDIS_VERSION: '7.4.2'
3333

@@ -181,7 +181,7 @@ jobs:
181181
- name: Run installed unit tests
182182
env:
183183
REDIS_VERSION: ${{ env.CURRENT_REDIS_VERSION }}
184-
REDIS_IMAGE: "redis:${{ env.CURRENT_REDIS_VERSION }}"
184+
# REDIS_IMAGE: "redis:${{ env.CURRENT_REDIS_VERSION }}"
185185
CLIENT_LIBS_TEST_IMAGE: "redislabs/client-libs-test:${{ env.CURRENT_REDIS_VERSION }}"
186186
run: |
187187
bash .github/workflows/install_and_test.sh ${{ matrix.extension }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ docker/stunnel/keys
2323
/dockers/*/tls/*
2424
/dockers/standalone/
2525
/dockers/cluster/
26+
/dockers/replica/
27+
/dockers/sentinel/

docker-compose.yml

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,19 @@ services:
2424
- all
2525

2626
replica:
27-
image: ${REDIS_IMAGE:-redis:7.4.1}
27+
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:7.4.1}
2828
container_name: redis-replica
2929
depends_on:
3030
- redis
31-
command: redis-server --replicaof redis 6379 --protected-mode no --save ""
31+
environment:
32+
- TLS_ENABLED=no
33+
- REDIS_CLUSTER=no
34+
- PORT=6380
35+
command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --replicaof redis 6379 --protected-mode no --save ""}
3236
ports:
33-
- 6380:6379
37+
- 6380:6380
38+
volumes:
39+
- "./dockers/replica:/redis/work"
3440
profiles:
3541
- replica
3642
- all-stack
@@ -58,45 +64,22 @@ services:
5864
- all
5965

6066
sentinel:
61-
image: ${REDIS_IMAGE:-redis:7.4.1}
67+
image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:7.4.1}
6268
container_name: redis-sentinel
6369
depends_on:
6470
- redis
65-
entrypoint: "redis-sentinel /redis.conf --port 26379"
71+
environment:
72+
- REDIS_CLUSTER=no
73+
- NODES=3
74+
- PORT=26379
75+
command: ${REDIS_EXTRA_ARGS:---sentinel}
6676
ports:
6777
- 26379:26379
68-
volumes:
69-
- "./dockers/sentinel.conf:/redis.conf"
70-
profiles:
71-
- sentinel
72-
- all-stack
73-
- all
74-
75-
sentinel2:
76-
image: ${REDIS_IMAGE:-redis:7.4.1}
77-
container_name: redis-sentinel2
78-
depends_on:
79-
- redis
80-
entrypoint: "redis-sentinel /redis.conf --port 26380"
81-
ports:
8278
- 26380:26380
83-
volumes:
84-
- "./dockers/sentinel.conf:/redis.conf"
85-
profiles:
86-
- sentinel
87-
- all-stack
88-
- all
89-
90-
sentinel3:
91-
image: ${REDIS_IMAGE:-redis:7.4.1}
92-
container_name: redis-sentinel3
93-
depends_on:
94-
- redis
95-
entrypoint: "redis-sentinel /redis.conf --port 26381"
96-
ports:
9779
- 26381:26381
9880
volumes:
99-
- "./dockers/sentinel.conf:/redis.conf"
81+
- "./dockers/sentinel.conf:/redis/config-default/redis.conf"
82+
- "./dockers/sentinel:/redis/work"
10083
profiles:
10184
- sentinel
10285
- all-stack

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
long_description_content_type="text/markdown",
99
keywords=["Redis", "key-value store", "database"],
1010
license="MIT",
11-
version="5.1.1",
11+
version="5.3.0",
1212
packages=find_packages(
1313
include=[
1414
"redis",

0 commit comments

Comments
 (0)