Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-redis for openSUSE:Factory 
checked in at 2024-01-05 22:58:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-redis (Old)
 and      /work/SRC/openSUSE:Factory/.python-redis.new.28375 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-redis"

Fri Jan  5 22:58:46 2024 rev:37 rq:1136240 version:5.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-redis/python-redis.changes        
2023-11-08 22:17:05.921786292 +0100
+++ /work/SRC/openSUSE:Factory/.python-redis.new.28375/python-redis.changes     
2024-01-05 22:58:46.640491210 +0100
@@ -1,0 +2,7 @@
+Tue Jan  2 11:21:25 UTC 2024 - Antonio Larrosa <[email protected]>
+
+- Add patch to increase timeouts in s390x where tests take longer
+  to run:
+  * increase-test-timeout.patch
+
+-------------------------------------------------------------------

New:
----
  increase-test-timeout.patch

BETA DEBUG BEGIN:
  New:  to run:
  * increase-test-timeout.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-redis.spec ++++++
--- /var/tmp/diff_new_pack.AE28QZ/_old  2024-01-05 22:58:47.216512316 +0100
+++ /var/tmp/diff_new_pack.AE28QZ/_new  2024-01-05 22:58:47.216512316 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-redis
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,7 @@
 URL:            https://github.com/redis/redis-py
 Source0:        
https://files.pythonhosted.org/packages/source/r/redis/redis-%{version}.tar.gz
 Source1:        https://raw.githubusercontent.com/redis/redis-py/5.0/pytest.ini
+Patch0:         increase-test-timeout.patch
 BuildRequires:  %{python_module async-timeout >= 4.0.2}
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module packaging}
@@ -50,9 +51,12 @@
 The Python interface to the Redis key-value store.
 
 %prep
-%autosetup -p1 -n redis-%{version}
+%autosetup -N -n redis-%{version}
 # pytest.ini for pytest markers
 cp %SOURCE1 .
+%ifarch s390x
+%patch -P 0 -p1
+%endif
 
 # This test passes locally but fails in obs with different
 # environment, like ALP build...

++++++ increase-test-timeout.patch ++++++
Index: redis-5.0.1/tests/test_asyncio/test_lock.py
===================================================================
--- redis-5.0.1.orig/tests/test_asyncio/test_lock.py
+++ redis-5.0.1/tests/test_asyncio/test_lock.py
@@ -107,7 +107,7 @@ class TestLock:
     async def test_blocking_timeout(self, r, event_loop):
         lock1 = self.get_lock(r, "foo")
         assert await lock1.acquire(blocking=False)
-        bt = 0.2
+        bt = 0.3
         sleep = 0.05
         lock2 = self.get_lock(r, "foo", sleep=sleep, blocking_timeout=bt)
         start = event_loop.time()
Index: redis-5.0.1/pytest.ini
===================================================================
--- redis-5.0.1.orig/pytest.ini
+++ redis-5.0.1/pytest.ini
@@ -10,4 +10,4 @@ markers =
     replica: replica tests
     experimental: run only experimental tests
 asyncio_mode = auto
-timeout = 30
+timeout = 40

Reply via email to