Skip to content

Commit f174acb

Browse files
authored
ci(redis): update to 8.0.1 (#3372)
1 parent 8ba559c commit f174acb

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
2626
# Mapping of redis version to redis testing containers
2727
declare -A redis_version_mapping=(
28-
["8.0-RC2"]="8.0-RC2-pre"
28+
["8.0.1"]="8.0.1-pre"
2929
["7.4.2"]="rs-7.4.0-v2"
3030
["7.2.7"]="rs-7.2.0-v14"
3131
)

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
redis-version:
21-
- "8.0-RC2" # 8.0 RC2
21+
- "8.0.1" # 8.0.1
2222
- "7.4.2" # should use redis stack 7.4
2323
go-version:
2424
- "1.23.x"
@@ -43,7 +43,7 @@ jobs:
4343
4444
# Mapping of redis version to redis testing containers
4545
declare -A redis_version_mapping=(
46-
["8.0-RC2"]="8.0-RC2-pre"
46+
["8.0.1"]="8.0.1-pre"
4747
["7.4.2"]="rs-7.4.0-v2"
4848
)
4949
if [[ -v redis_version_mapping[$REDIS_VERSION] ]]; then
@@ -72,7 +72,7 @@ jobs:
7272
fail-fast: false
7373
matrix:
7474
redis-version:
75-
- "8.0-RC2" # 8.0 RC2
75+
- "8.0.1" # 8.0.1
7676
- "7.4.2" # should use redis stack 7.4
7777
- "7.2.7" # should redis stack 7.2
7878
go-version:

main_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ var _ = BeforeSuite(func() {
100100

101101
fmt.Printf("RECluster: %v\n", RECluster)
102102
fmt.Printf("RCEDocker: %v\n", RCEDocker)
103-
fmt.Printf("REDIS_VERSION: %v\n", RedisVersion)
103+
fmt.Printf("REDIS_VERSION: %.1f\n", RedisVersion)
104+
fmt.Printf("CLIENT_LIBS_TEST_IMAGE: %v\n", os.Getenv("CLIENT_LIBS_TEST_IMAGE"))
104105

105106
if RedisVersion < 7.0 || RedisVersion > 9 {
106107
panic("incorrect or not supported redis version")

search_test.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -1871,17 +1871,20 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
18711871
Expect(val).To(BeEquivalentTo("OK"))
18721872
WaitForIndexing(client, "aggTimeoutHeavy")
18731873

1874-
const totalDocs = 10000
1874+
const totalDocs = 100000
18751875
for i := 0; i < totalDocs; i++ {
18761876
key := fmt.Sprintf("doc%d", i)
18771877
_, err := client.HSet(ctx, key, "n", i).Result()
18781878
Expect(err).NotTo(HaveOccurred())
18791879
}
1880+
// default behaviour was changed in 8.0.1, set to fail to validate the timeout was triggered
1881+
err = client.ConfigSet(ctx, "search-on-timeout", "fail").Err()
1882+
Expect(err).NotTo(HaveOccurred())
18801883

18811884
options := &redis.FTAggregateOptions{
18821885
SortBy: []redis.FTAggregateSortBy{{FieldName: "@n", Desc: true}},
18831886
LimitOffset: 0,
1884-
Limit: 100,
1887+
Limit: 100000,
18851888
Timeout: 1, // 1 ms timeout, expected to trigger a timeout error.
18861889
}
18871890
_, err = client.FTAggregateWithArgs(ctx, "aggTimeoutHeavy", "*", options).Result()

0 commit comments

Comments
 (0)