{redis,valkey}: move tests to passthru; valkey: disable flaky tests (#538982)

This commit is contained in:
Fabián Heredia Montiel
2026-07-14 15:25:11 +00:00
committed by GitHub
2 changed files with 16 additions and 7 deletions
+7 -3
View File
@@ -77,8 +77,9 @@ stdenv.mkDerivation (finalAttrs: {
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isFreeBSD "-lexecinfo";
# darwin currently lacks a pure `pgrep` which is extensively used here
doCheck = !stdenv.hostPlatform.isDarwin;
# Tests are in the `tests` passthru derivation: the suite is very large and some tests (e.g. memtests) are flaky.
doCheck = false;
nativeCheckInputs = [
which
tcl
@@ -126,7 +127,10 @@ stdenv.mkDerivation (finalAttrs: {
versionCheckProgram = "${placeholder "out"}/bin/redis-server";
passthru = {
tests.redis = nixosTests.redis;
tests = {
redis = nixosTests.redis;
unitTests = finalAttrs.finalPackage.overrideAttrs { doCheck = true; };
};
serverBin = "redis-server";
updateScript = nix-update-script { };
};
+9 -4
View File
@@ -65,8 +65,9 @@ stdenv.mkDerivation (finalAttrs: {
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ "-std=c11" ]);
# darwin currently lacks a pure `pgrep` which is extensively used here
doCheck = !stdenv.hostPlatform.isDarwin;
# Tests are in the `tests` passthru derivation: the suite is very large and significantly slows down the build.
doCheck = false;
nativeCheckInputs = [
which
tcl
@@ -102,13 +103,17 @@ stdenv.mkDerivation (finalAttrs: {
--skipunit unit/memefficiency \
--skipunit unit/type/string \
--skipunit integration/failover \
--skipunit integration/aof-multi-part
--skipunit integration/aof-multi-part \
--skipunit integration/dual-channel-replication
runHook postCheck
'';
passthru = {
tests.redis = nixosTests.redis;
tests = {
redis = nixosTests.redis;
unitTests = finalAttrs.finalPackage.overrideAttrs { doCheck = true; };
};
serverBin = "valkey-server";
};