Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-valkey for openSUSE:Factory checked in at 2026-11-27 21:02:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-valkey (Old) and /work/SRC/openSUSE:Factory/.python-valkey.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-valkey" Fri Nov 27 21:02:43 2026 rev:5 rq:1400608 version:6.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-valkey/python-valkey.changes 2026-07-26 11:30:16.790430280 +0200 +++ /work/SRC/openSUSE:Factory/.python-valkey.new.1340718/python-valkey.changes 2026-11-27 21:02:45.712910266 +0100 @@ -1,0 +2,5 @@ +Wed Nov 25 16:13:32 UTC 2026 - Nico Krapp <[email protected]> + +- Add fix-tests-valkey-9.2.patch to fix tests with new valkey version + +------------------------------------------------------------------- New: ---- fix-tests-valkey-9.2.patch ----------(New B)---------- New: - Add fix-tests-valkey-9.2.patch to fix tests with new valkey version ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-valkey.spec ++++++ --- /var/tmp/diff_new_pack.RBMvGL/_old 2026-11-27 21:02:47.478984466 +0100 +++ /var/tmp/diff_new_pack.RBMvGL/_new 2026-11-27 21:02:47.479984508 +0100 @@ -35,6 +35,8 @@ # PATCH-FIX-UPSTREAM fix-tests-valkey-9.1-acl-databases.patch # https://github.com/valkey-io/valkey-py/commit/046c7fb9e8260c2d69d05141b1519903c4e40efe Patch2: fix-tests-valkey-9.1-acl-databases.patch +# PATCH-FIX-UPSTREAM fix-tests-valkey-9.2.patch gh#valkey-io/valkey-py@668cd5f +Patch3: fix-tests-valkey-9.2.patch BuildRequires: %{python_module base >= 3.10} # Tests BuildRequires: %{python_module cachetools} ++++++ fix-tests-valkey-9.2.patch ++++++ >From 668cd5f0d22147c65f41aeb062e3117a5eddd9f8 Mon Sep 17 00:00:00 2001 From: Bogdan Petre <[email protected]> Date: Fri, 20 Nov 2026 11:19:19 +0400 Subject: [PATCH] Accept the new XINFO GROUPS lag in test_xgroup_create_entries_read valkey-io/valkey#4983 changed how the consumer group lag is computed when the group's last ID is before the stream's first entry and no tombstone follows it: the lag is now the stream length instead of entries_added - entries_read. For this test that turns -6 into 1. The change shipped in 9.2.0 and was backported to 8.0.13, 8.1.12, 9.0.8 and 9.1.4, so a single server version guard cannot tell the two behaviours apart. Accept either lag and keep asserting the other fields exactly, including entries-read, which is what the test covers. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Bogdan Petre <[email protected]> --- tests/test_commands.py | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) Index: valkey-py-6.1.1/tests/test_commands.py =================================================================== --- valkey-py-6.1.1.orig/tests/test_commands.py +++ valkey-py-6.1.1/tests/test_commands.py @@ -4342,17 +4342,19 @@ class TestValkeyCommands: assert r.xinfo_groups(stream) == [] assert r.xgroup_create(stream, group, 0, entries_read=7) - expected = [ - { - "name": group.encode(), - "consumers": 0, - "pending": 0, - "last-delivered-id": b"0-0", - "entries-read": 7, - "lag": -6, - } - ] - assert r.xinfo_groups(stream) == expected + [info] = r.xinfo_groups(stream) + # The lag for a group positioned before the first entry changed in + # valkey-io/valkey#4983 (backported to 8.0.13, 8.1.12, 9.0.8 and + # 9.1.4): it is now the stream length instead of + # entries_added - entries_read. + assert info.pop("lag") in (-6, 1) + assert info == { + "name": group.encode(), + "consumers": 0, + "pending": 0, + "last-delivered-id": b"0-0", + "entries-read": 7, + } @skip_if_server_version_lt("5.0.0") def test_xgroup_delconsumer(self, r):
