public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-zict] rawhide: Backport fix for test_stress_different_keys_threadsafe hang
@ 2026-06-06 22:58 Elliott Sales de Andrade
0 siblings, 0 replies; only message in thread
From: Elliott Sales de Andrade @ 2026-06-06 22:58 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-zict
Branch : rawhide
Commit : 0e60f9071787d8463754a5532745eb0265171763
Author : Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date : 2026-06-06T18:58:22-04:00
Stats : +28/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-zict/c/0e60f9071787d8463754a5532745eb0265171763?branch=rawhide
Log:
Backport fix for test_stress_different_keys_threadsafe hang
---
diff --git a/108.patch b/108.patch
new file mode 100644
index 0000000..b98c58c
--- /dev/null
+++ b/108.patch
@@ -0,0 +1,24 @@
+From 17a36dc68964c0f91c2d0fc0e7b8c6dc686251ca Mon Sep 17 00:00:00 2001
+From: crusaderky <crusaderky@gmail.com>
+Date: Tue, 5 Sep 2023 16:04:24 +0100
+Subject: [PATCH] Prevent test timeout on a single CPU
+
+---
+ zict/tests/utils_test.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/zict/tests/utils_test.py b/zict/tests/utils_test.py
+index 0640e2b..e5693d1 100644
+--- a/zict/tests/utils_test.py
++++ b/zict/tests/utils_test.py
+@@ -169,7 +169,9 @@ def check_different_keys_threadsafe(
+
+ def worker(idx, key, value):
+ barrier.wait()
+- while any(c < 10 for c in counters):
++ # When running on a single CPU (`taskset -c 0 pytest`), multitasking can
++ # misbehave and almost completely starve one of the two threads
++ while any(c < 10 for c in counters) and all(c < 1000 for c in counters):
+ z[key] = value
+ try:
+ assert z[key] == value
diff --git a/python-zict.spec b/python-zict.spec
index 5def96b..835bb54 100644
--- a/python-zict.spec
+++ b/python-zict.spec
@@ -7,7 +7,9 @@ Summary: Mutable mapping tools
License: BSD-3-Clause
URL: https://pypi.python.org/pypi/%{srcname}
-Source0: %pypi_source
+Source: %pypi_source %{srcname}
+# Fix hang in test_stress_different_keys_threadsafe.
+Patch: https://github.com/dask/zict/pull/108.patch
BuildArch: noarch
@@ -44,7 +46,7 @@ Summary: %{summary}
%prep
-%autosetup -n %{srcname}-%{version}
+%autosetup -n %{srcname}-%{version} -p1
# drop LMDB bits till LMDB is buildable again
rm -f zict/lmdb.py
sed -i "/lmdb/d" zict/__init__.py
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-06 22:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-06 22:58 [rpms/python-zict] rawhide: Backport fix for test_stress_different_keys_threadsafe hang Elliott Sales de Andrade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox