mirror of
https://github.com/redis/go-redis.git
synced 2025-06-06 17:40:59 +03:00
ci(redis): update to 8.0.1 (#3372)
This commit is contained in:
parent
8ba559ca5d
commit
f174acba52
2
.github/actions/run-tests/action.yml
vendored
2
.github/actions/run-tests/action.yml
vendored
@ -25,7 +25,7 @@ runs:
|
|||||||
|
|
||||||
# Mapping of redis version to redis testing containers
|
# Mapping of redis version to redis testing containers
|
||||||
declare -A redis_version_mapping=(
|
declare -A redis_version_mapping=(
|
||||||
["8.0-RC2"]="8.0-RC2-pre"
|
["8.0.1"]="8.0.1-pre"
|
||||||
["7.4.2"]="rs-7.4.0-v2"
|
["7.4.2"]="rs-7.4.0-v2"
|
||||||
["7.2.7"]="rs-7.2.0-v14"
|
["7.2.7"]="rs-7.2.0-v14"
|
||||||
)
|
)
|
||||||
|
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
redis-version:
|
redis-version:
|
||||||
- "8.0-RC2" # 8.0 RC2
|
- "8.0.1" # 8.0.1
|
||||||
- "7.4.2" # should use redis stack 7.4
|
- "7.4.2" # should use redis stack 7.4
|
||||||
go-version:
|
go-version:
|
||||||
- "1.23.x"
|
- "1.23.x"
|
||||||
@ -43,7 +43,7 @@ jobs:
|
|||||||
|
|
||||||
# Mapping of redis version to redis testing containers
|
# Mapping of redis version to redis testing containers
|
||||||
declare -A redis_version_mapping=(
|
declare -A redis_version_mapping=(
|
||||||
["8.0-RC2"]="8.0-RC2-pre"
|
["8.0.1"]="8.0.1-pre"
|
||||||
["7.4.2"]="rs-7.4.0-v2"
|
["7.4.2"]="rs-7.4.0-v2"
|
||||||
)
|
)
|
||||||
if [[ -v redis_version_mapping[$REDIS_VERSION] ]]; then
|
if [[ -v redis_version_mapping[$REDIS_VERSION] ]]; then
|
||||||
@ -72,7 +72,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
redis-version:
|
redis-version:
|
||||||
- "8.0-RC2" # 8.0 RC2
|
- "8.0.1" # 8.0.1
|
||||||
- "7.4.2" # should use redis stack 7.4
|
- "7.4.2" # should use redis stack 7.4
|
||||||
- "7.2.7" # should redis stack 7.2
|
- "7.2.7" # should redis stack 7.2
|
||||||
go-version:
|
go-version:
|
||||||
|
@ -100,7 +100,8 @@ var _ = BeforeSuite(func() {
|
|||||||
|
|
||||||
fmt.Printf("RECluster: %v\n", RECluster)
|
fmt.Printf("RECluster: %v\n", RECluster)
|
||||||
fmt.Printf("RCEDocker: %v\n", RCEDocker)
|
fmt.Printf("RCEDocker: %v\n", RCEDocker)
|
||||||
fmt.Printf("REDIS_VERSION: %v\n", RedisVersion)
|
fmt.Printf("REDIS_VERSION: %.1f\n", RedisVersion)
|
||||||
|
fmt.Printf("CLIENT_LIBS_TEST_IMAGE: %v\n", os.Getenv("CLIENT_LIBS_TEST_IMAGE"))
|
||||||
|
|
||||||
if RedisVersion < 7.0 || RedisVersion > 9 {
|
if RedisVersion < 7.0 || RedisVersion > 9 {
|
||||||
panic("incorrect or not supported redis version")
|
panic("incorrect or not supported redis version")
|
||||||
|
@ -1871,17 +1871,20 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
|
|||||||
Expect(val).To(BeEquivalentTo("OK"))
|
Expect(val).To(BeEquivalentTo("OK"))
|
||||||
WaitForIndexing(client, "aggTimeoutHeavy")
|
WaitForIndexing(client, "aggTimeoutHeavy")
|
||||||
|
|
||||||
const totalDocs = 10000
|
const totalDocs = 100000
|
||||||
for i := 0; i < totalDocs; i++ {
|
for i := 0; i < totalDocs; i++ {
|
||||||
key := fmt.Sprintf("doc%d", i)
|
key := fmt.Sprintf("doc%d", i)
|
||||||
_, err := client.HSet(ctx, key, "n", i).Result()
|
_, err := client.HSet(ctx, key, "n", i).Result()
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
}
|
}
|
||||||
|
// default behaviour was changed in 8.0.1, set to fail to validate the timeout was triggered
|
||||||
|
err = client.ConfigSet(ctx, "search-on-timeout", "fail").Err()
|
||||||
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
options := &redis.FTAggregateOptions{
|
options := &redis.FTAggregateOptions{
|
||||||
SortBy: []redis.FTAggregateSortBy{{FieldName: "@n", Desc: true}},
|
SortBy: []redis.FTAggregateSortBy{{FieldName: "@n", Desc: true}},
|
||||||
LimitOffset: 0,
|
LimitOffset: 0,
|
||||||
Limit: 100,
|
Limit: 100000,
|
||||||
Timeout: 1, // 1 ms timeout, expected to trigger a timeout error.
|
Timeout: 1, // 1 ms timeout, expected to trigger a timeout error.
|
||||||
}
|
}
|
||||||
_, err = client.FTAggregateWithArgs(ctx, "aggTimeoutHeavy", "*", options).Result()
|
_, err = client.FTAggregateWithArgs(ctx, "aggTimeoutHeavy", "*", options).Result()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user