Skip to content

Commit 6edf363

Browse files
authored
Update redis server test versions (#4114)
Bump test infra to use 8.0-M05-pre
1 parent c3f5304 commit 6edf363

File tree

9 files changed

+21
-22
lines changed

9 files changed

+21
-22
lines changed

.github/CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This guide explains how to bootstrap and manage a test environment for Jedis usi
4343
You can bootstrap the test environment for supported versions of Redis using the provided `make` targets.
4444

4545
## Option 1: Using `make` Targets
46-
To bring up the test environment for a specific Redis version (8.0-M02, 7.4.1, 7.2.6, or 6.2.16), use the following command:
46+
To bring up the test environment for a specific Redis version (8.0-M05-pre, 8.0-M04-pre, 8.0-M02, 7.4, 7.2, or 6.2), use the following command:
4747
```bash
4848
make start-test-env version=8.0-M02 # Replace with desired version
4949
```
@@ -64,11 +64,11 @@ rm -rf /tmp/redis-env-work
6464
export REDIS_VERSION=8.0-M02
6565
docker compose up
6666
```
67-
- **Redis 7.4.1, 7.2.6, 6.2.16,**
67+
- **Redis 7.4, 7.2, 6.2,**
6868
```bash
6969
rm -rf /tmp/redis-env-work
70-
export REDIS_VERSION=6.2.16
71-
docker compose --env-file .env --env-file .env.v6.2.16 up
70+
export REDIS_VERSION=6.2
71+
docker compose --env-file .env --env-file .env.v6.2 up
7272
```
7373

7474

.github/workflows/test-on-docker.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
fail-fast: false
3737
matrix:
3838
redis_version:
39-
- "8.0-M04-pre"
40-
- "7.4.1"
41-
- "7.2.6"
42-
# - "6.2.16"
39+
- "8.0"
40+
- "7.4"
41+
- "7.2"
42+
# - "6.2"
4343
steps:
4444
- uses: actions/checkout@v4
4545
- name: Set up publishing to maven central
@@ -63,8 +63,7 @@ jobs:
6363
- name: Set up Docker Compose environment
6464
run: |
6565
mkdir -m 777 $REDIS_ENV_WORK_DIR
66-
export REDIS_VERSION="${{ matrix.redis_version }}"
67-
make start-test-env version=$REDIS_VERSION
66+
make start-test-env version=${{ matrix.redis_version }}
6867
- name: Maven offline
6968
run: |
7069
mvn -q dependency:go-offline
@@ -99,7 +98,7 @@ jobs:
9998
path: target/surefire-reports/*.dumpstream
10099
- name: Publish Test Results
101100
uses: EnricoMi/publish-unit-test-result-action@v2
102-
if: always()
101+
if: github.actor != 'dependabot[bot]'
103102
with:
104103
files: |
105104
target/surefire-reports/**/*.xml

Makefile

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PATH := ./redis-git/src:${PATH}
22

33
# Supported test env versions
4-
SUPPORTED_TEST_ENV_VERSIONS := 8.0-M04-pre, 8.0-M02 7.4.1 7.2.6 6.2.16
5-
DEFAULT_TEST_ENV_VERSION := 8.0-M04-pre
4+
SUPPORTED_TEST_ENV_VERSIONS := 8.0 7.4 7.2 6.2
5+
DEFAULT_TEST_ENV_VERSION := 8.0
66
REDIS_ENV_WORK_DIR := $(or ${REDIS_ENV_WORK_DIR},/tmp/redis-env-work)
77

88
define REDIS1_CONF
@@ -585,9 +585,8 @@ start-test-env:
585585
fi; \
586586
rm -rf "$(REDIS_ENV_WORK_DIR)"; \
587587
mkdir -p "$(REDIS_ENV_WORK_DIR)"; \
588-
export REDIS_VERSION=$$version && \
589588
docker compose $$env_files -f src/test/resources/env/docker-compose.yml up -d; \
590-
echo "Started test environment with Redis version $$version."
589+
echo "Started test environment with Redis version $$version. "
591590

592591
# Stop the test environment
593592
stop-test-env:

src/test/resources/env/.env

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
REDIS_VERSION=8.0-M02
1+
REDIS_VERSION=8.0-M05-pre
2+
REDIS_STACK_VERSION=8.0-M05-pre
23
CLIENT_LIBS_TEST_IMAGE=redislabs/client-libs-test
34
REDIS_ENV_CONF_DIR=./
45
REDIS_MODULES_DIR=/tmp
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
REDIS_VERSION=6.2.16
2-
REDIS_STACK_VERSION=rs-6.2.6-v17
1+
REDIS_VERSION=6.2.17
2+
REDIS_STACK_VERSION=rs-6.2.6-v19
33

44
#REMOVE UNSUPPORTED DIRECTIVE
55
ENABLE_MODULE_COMMAND_DIRECTIVE=

src/test/resources/env/.env.v7.2

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REDIS_VERSION=7.2.7
2+
REDIS_STACK_VERSION=rs-7.2.0-v15

src/test/resources/env/.env.v7.2.6

-2
This file was deleted.

src/test/resources/env/.env.v7.4

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REDIS_VERSION=7.4.2
2+
REDIS_STACK_VERSION=rs-7.4.0-v2

src/test/resources/env/.env.v7.4.1

-2
This file was deleted.

0 commit comments

Comments
 (0)