mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
feat: Enable CI for Redis CE 8.0 (#3274)
* chore: extract benchmark tests * wip * enable pubsub tests * enable ring tests * stop tests with build redis from source * start all tests * mix of makefile and action * add sentinel configs * fix example test * stop debug on re * wip * enable gears for redis 7.2 * wip * enable sentinel, they are expected to fail * fix: linter configuration * chore: update re versions * return older redis enterprise version * add basic codeql * wip: increase timeout, focus only sentinel tests * sentinels with docker network host * enable all tests * fix flanky test * enable example tests * tidy docker compose * add debug output * stop shutingdown masters * don't test sentinel for re * skip unsuported addscores * Update README bump go version in CI * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update CONTRIBUTING.md add information about new test setup --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@ -21,6 +21,8 @@ func ExampleClient_sadd() {
|
||||
})
|
||||
|
||||
// REMOVE_START
|
||||
// start with fresh database
|
||||
rdb.FlushDB(ctx)
|
||||
rdb.Del(ctx, "bikes:racing:france")
|
||||
rdb.Del(ctx, "bikes:racing:usa")
|
||||
// REMOVE_END
|
||||
@ -76,6 +78,8 @@ func ExampleClient_sismember() {
|
||||
})
|
||||
|
||||
// REMOVE_START
|
||||
// start with fresh database
|
||||
rdb.FlushDB(ctx)
|
||||
rdb.Del(ctx, "bikes:racing:france")
|
||||
rdb.Del(ctx, "bikes:racing:usa")
|
||||
// REMOVE_END
|
||||
@ -125,6 +129,8 @@ func ExampleClient_sinter() {
|
||||
})
|
||||
|
||||
// REMOVE_START
|
||||
// start with fresh database
|
||||
rdb.FlushDB(ctx)
|
||||
rdb.Del(ctx, "bikes:racing:france")
|
||||
rdb.Del(ctx, "bikes:racing:usa")
|
||||
// REMOVE_END
|
||||
@ -165,6 +171,8 @@ func ExampleClient_scard() {
|
||||
})
|
||||
|
||||
// REMOVE_START
|
||||
// start with fresh database
|
||||
rdb.FlushDB(ctx)
|
||||
rdb.Del(ctx, "bikes:racing:france")
|
||||
// REMOVE_END
|
||||
|
||||
@ -198,6 +206,8 @@ func ExampleClient_saddsmembers() {
|
||||
})
|
||||
|
||||
// REMOVE_START
|
||||
// start with fresh database
|
||||
rdb.FlushDB(ctx)
|
||||
rdb.Del(ctx, "bikes:racing:france")
|
||||
// REMOVE_END
|
||||
|
||||
@ -216,7 +226,7 @@ func ExampleClient_saddsmembers() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// Sort the strings in the slice to make sure the output is lexicographical
|
||||
// Sort the strings in the slice to make sure the output is lexicographical
|
||||
sort.Strings(res10)
|
||||
|
||||
fmt.Println(res10) // >>> [bike:1 bike:2 bike:3]
|
||||
@ -237,6 +247,8 @@ func ExampleClient_smismember() {
|
||||
})
|
||||
|
||||
// REMOVE_START
|
||||
// start with fresh database
|
||||
rdb.FlushDB(ctx)
|
||||
rdb.Del(ctx, "bikes:racing:france")
|
||||
// REMOVE_END
|
||||
|
||||
@ -279,6 +291,8 @@ func ExampleClient_sdiff() {
|
||||
})
|
||||
|
||||
// REMOVE_START
|
||||
// start with fresh database
|
||||
rdb.FlushDB(ctx)
|
||||
rdb.Del(ctx, "bikes:racing:france")
|
||||
rdb.Del(ctx, "bikes:racing:usa")
|
||||
// REMOVE_END
|
||||
@ -298,8 +312,7 @@ func ExampleClient_sdiff() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
|
||||
// Sort the strings in the slice to make sure the output is lexicographical
|
||||
// Sort the strings in the slice to make sure the output is lexicographical
|
||||
sort.Strings(res13)
|
||||
|
||||
fmt.Println(res13) // >>> [bike:2 bike:3]
|
||||
@ -319,6 +332,8 @@ func ExampleClient_multisets() {
|
||||
})
|
||||
|
||||
// REMOVE_START
|
||||
// start with fresh database
|
||||
rdb.FlushDB(ctx)
|
||||
rdb.Del(ctx, "bikes:racing:france")
|
||||
rdb.Del(ctx, "bikes:racing:usa")
|
||||
rdb.Del(ctx, "bikes:racing:italy")
|
||||
@ -357,7 +372,7 @@ func ExampleClient_multisets() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// Sort the strings in the slice to make sure the output is lexicographical
|
||||
// Sort the strings in the slice to make sure the output is lexicographical
|
||||
sort.Strings(res15)
|
||||
|
||||
fmt.Println(res15) // >>> [bike:1 bike:2 bike:3 bike:4]
|
||||
@ -384,7 +399,7 @@ func ExampleClient_multisets() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// Sort the strings in the slice to make sure the output is lexicographical
|
||||
// Sort the strings in the slice to make sure the output is lexicographical
|
||||
sort.Strings(res18)
|
||||
|
||||
fmt.Println(res18) // >>> [bike:2 bike:3]
|
||||
@ -408,6 +423,8 @@ func ExampleClient_srem() {
|
||||
})
|
||||
|
||||
// REMOVE_START
|
||||
// start with fresh database
|
||||
rdb.FlushDB(ctx)
|
||||
rdb.Del(ctx, "bikes:racing:france")
|
||||
// REMOVE_END
|
||||
|
||||
|
Reference in New Issue
Block a user