fix: hiredis requires df to report version >7.4 (#4474)

* bump up redis version in info command
* add compatibility test
* bump up py dependencies
* fix warnings and deprecated functions

---------

Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
Kostas Kyrimis 2025-01-20 10:38:37 +02:00 committed by GitHub
parent 6f3c6e3d57
commit b017cdd1a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 45 additions and 26 deletions

View file

@ -305,7 +305,7 @@ TEST_F(DflyEngineTestWithRegistry, Hello) {
EXPECT_THAT(
resp.GetVec(),
ElementsAre("server", "redis", "version", "7.2.0", "dragonfly_version",
ElementsAre("server", "redis", "version", "7.4.0", "dragonfly_version",
ArgType(RespExpr::STRING), "proto", IntArg(2), "id", ArgType(RespExpr::INT64),
"mode", testing::AnyOf("standalone", "cluster"), "role", "master"));
@ -313,7 +313,7 @@ TEST_F(DflyEngineTestWithRegistry, Hello) {
ASSERT_THAT(resp, ArrLen(14));
EXPECT_THAT(
resp.GetVec(),
ElementsAre("server", "redis", "version", "7.2.0", "dragonfly_version",
ElementsAre("server", "redis", "version", "7.4.0", "dragonfly_version",
ArgType(RespExpr::STRING), "proto", IntArg(3), "id", ArgType(RespExpr::INT64),
"mode", testing::AnyOf("standalone", "cluster"), "role", "master"));

View file

@ -230,7 +230,7 @@ using strings::HumanReadableNumBytes;
namespace {
const auto kRedisVersion = "7.2.0";
const auto kRedisVersion = "7.4.0";
using EngineFunc = void (ServerFamily::*)(CmdArgList args, const CommandContext&);