1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-09 05:41:45 +03:00
Commit Graph

60 Commits

Author SHA1 Message Date
9494d8498a chore: use redis 8 ce m05 (#3304)
* use m05

* add platform, since client-libs has image for amd64

* verbose testing

* Update .github/workflows/build.yml
2025-03-18 14:20:18 +02:00
ebe11d06ca 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>
2025-02-28 12:49:00 +02:00
1139bc3aa9 fix(tests): enable testing with Redis CE 8.0-M4 in CI (#3247)
* introduce github workflow for ci similar to the one in redis-py

use prerelease for 8.0-M4

* Enable osscluster tests in CI

* Add redis major version env

Enable filtering test per redis major version
Fix test for FT.SEARCH WITHSCORE, the default scorer
has changed.

fix Makefile syntax

remove filter from github action

fix makefile

use the container name in Makefile

* remove 1.20 from doctests

* self review, cleanup, add comments

* add comments, reorder prints, add default value for REDIS_MAJOR_VERSION
2025-01-31 16:14:11 +02:00
f99447854b Add test coverage reporting and Codecov badge (#3055)
* Add codecov to ci

* Add codecov to ci

* update yanl

* Add changes

* Add changes

* test

* Add changes

* Add changes

* Add changes
2024-09-03 17:09:47 +03:00
6a584c1e2b Support Hash-field expiration for 7.4 CE RC2 (#3040)
Co-authored-by: Monkey <golang@88.com>
Co-authored-by: Vladyslav Vildanov <117659936+vladvildanov@users.noreply.github.com>
2024-07-10 23:30:32 +08:00
2a3de7e1fc Change redis version from 7.2 to 7.4 in makefile (#3034)
* Change redis version from 7.2 to 7.4

* fix jsonGet test

* Add 'watch' to client info

* Remove jsonGet from Enterprise tests
2024-06-20 00:08:35 +03:00
34dacf14a7 Fix monitor on go 1.19 (#2908)
* Fix monitor on go 1.19

* Remove exmaple tests when go 1.19

* Fix typo

* Fix typo

* Skip exmaple test

* Skip exmaple test

* Guard Peek call with mutex for thread safety
2024-03-21 10:48:31 +02:00
6199a2af2c Making command structs digestable (#2716)
* intial move

* adding stringcmdable

* moving module commands to align with other changes

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
Co-authored-by: ofekshenawa <ofek.shenawa@redis.com>
2023-09-20 16:08:24 +03:00
e8ad794e96 Format code and fix go vet (#2696)
* run go fix ./...

Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com>

* run make fmt

Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com>

* fix go vet ./... issues

* Update README.md

Reorder imports with the rules defined in the Makefile 

as if we run `make fmt`

* run gofumpt -w .

* update Makefile to use gofumpt instead gofmt

* increment makefile

* format test

* format tests

Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com>

---------

Signed-off-by: Tiago Peczenyj <tpeczenyj@weborama.com>
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-20 14:03:44 +03:00
678bf21b48 Updating redis binary for makefile to 7.2.1 (#2693)
* updating redis binary from makefile to 7.2.0

* redis 7.2.1

---------

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
2023-09-19 18:53:47 +03:00
b1103e3d43 Bumping redis versions (#2662) 2023-07-26 14:58:49 +03:00
6edb1529ff test: redis-version to 7.2-rc1 (#2532)
* test: redis-version to 7.2-rc1

Signed-off-by: monkey92t <golang@88.com>
2023-04-12 20:17:10 +08:00
cccfca4593 redis 7.0.10 (#2508)
Co-authored-by: Monkey <golang@88.com>
2023-03-28 20:35:14 +08:00
f95bdb8a8b redis 7.0.8 in tests (#2450)
Co-authored-by: Monkey <golang@88.com>
2023-02-19 19:42:18 +08:00
1cb89d7f3b test: update go mod before testing(go mod tidy) (#2423) 2023-02-08 19:52:04 +08:00
154ca02e2f test: remove deep search (#2411) 2023-02-01 15:46:59 +08:00
ce04442105 chore: update uptrace config 2023-01-30 10:02:16 +02:00
ddb0bc08be chore: run tests in all packages 2023-01-30 09:52:13 +02:00
97b491aace chore: update import path 2023-01-23 08:48:54 +02:00
443f0ec113 test: upgrade redis version(7.0.7)
Signed-off-by: monkey92t <golang@88.com>
2022-12-28 22:38:59 +08:00
603e972266 test: upgrade redis version (#2315)
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2022-12-16 17:22:50 +08:00
faa496ba7d test: vet that all Cmders have a SetVal() method 2022-08-07 22:40:51 -07:00
d09c27e604 feat: upgrade to Redis 7 2022-06-04 17:25:12 +03:00
3a722be811 fix: fix tests 2022-06-04 15:25:01 +03:00
3f99e7b13b chore: update dependencies 2021-09-23 16:49:39 +03:00
9b6ee9c3cc chore: gofmt all code 2021-09-08 16:52:29 +03:00
437184bded Upgrade redis-server version (#1833)
* Upgrade redis-server version

Signed-off-by: monkey <golang@88.com>

* XAutoClaim changed the return value

Signed-off-by: monkey <golang@88.com>
2021-07-24 23:46:41 +08:00
e3c1e884eb Replace travis with workflows 2021-03-23 10:29:15 +02:00
7b7f9d6e0e Add SetArgs command (#1662)
* Add SetWithArgs command

* Add tests for SetWithArgs command

* Replace Makefile stable version by 6.2-rc3 version

* Increase threshold because there are more commands

* Reduce the SetWithArgs command doc comment

* Rename SetWithArgs to SetArgs

* Rename ExpireAt to TTL

* Add KeepTTL field

* Add ExpireAt field as time.Time type

* Improve comments readability

* Add more tests for ExpireAt field

* Fix typo

* Fix multiple if/else chain lint error
2021-02-17 14:48:47 +02:00
0b9986c43c Update extra 2020-11-21 10:18:39 +02:00
9d110cb0a4 Add back go vet 2020-09-17 17:01:29 +03:00
12d46bf32e Use Redis stable for testing 2020-06-05 09:08:16 +03:00
def106c404 Update build 2019-12-18 12:51:52 +02:00
dab9d3f802 Cleanup 2019-11-19 12:37:26 +02:00
f3ce3362a0 Add golangci-lint 2019-07-25 14:36:50 +03:00
c208a17dfc Handle -1 in DurationCmd 2019-05-31 13:19:39 +03:00
6238b8d4b7 Mark node as loading in Cluster pipeline read 2019-05-30 17:17:27 +03:00
e54b0f2944 Use stable version of Redis 2019-01-21 16:10:26 +02:00
4d5a8b91ad Fix tests 2018-11-21 11:16:25 +02:00
a64d3e1ef1 Fix build on 32bit arch 2018-03-07 12:41:11 +02:00
55c9929dba Change Makefile to use sed syntax that will work for both GNU and BSD sed (#719)
* Use sed syntax that will work with both GNU and BSD sed
2018-02-27 20:05:21 +02:00
ce4fd8b677 Fix ReceiveMessage to work without any subscriptions. 2017-02-08 14:15:32 +02:00
ae523dd552 travis: run go vet 2016-11-06 13:37:23 +02:00
f47fb47df0 Extract race tests to separate file. Add more race tests. 2016-03-16 19:45:35 +02:00
46790aa060 Add race test for big vals. Copy connection to avoid race with PubSub. 2016-03-14 16:34:15 +02:00
900913d1e5 Move benchmark to relevant package. Added bench task 2016-03-12 13:03:08 +02:00
e80f790e76 Use go standard path for test data 2016-03-12 10:25:59 +00:00
36487d8462 Stabilize build. 2015-12-22 12:08:35 +02:00
ee3a8f1212 makefile: give Redis time to exit. 2015-11-21 13:24:42 +02:00
2d37474474 travis: fix build. 2015-09-28 12:40:31 +03:00