Package: release.debian.org
Severity: normal
Tags: bullseye
User: release.debian....@packages.debian.org
Usertags: pu
[ Reason ]
core-async-clojure in stable suffers from frequent ftbfs issues
described in bug #1013662
[ Impact ]
Not accepting this change means this package will continue to ftbfs in
the stable release
[ Risk ]
Low risk, only the package's testsuite is affected
[ Tests ]
The patch is been confirmed to fix the ftbfs problem
[ Checklist ]
[X] *all* changes are documented in the d/changelog
[X] I reviewed all changes and I approve them
[X] attach debdiff against the package in (old)stable
[X] the issue is verified as fixed in unstable
[ Changes ]
The debdiff consists of the addition of a patch to the package's
testsuite that fixes a serious ftbfs issue
Thank you.
-- Jerome
diff -Nru core-async-clojure-1.3.610/debian/changelog
core-async-clojure-1.3.610/debian/changelog
--- core-async-clojure-1.3.610/debian/changelog 2022-05-13 11:12:48.000000000
-0400
+++ core-async-clojure-1.3.610/debian/changelog 2022-12-06 07:51:55.000000000
-0500
@@ -1,3 +1,10 @@
+core-async-clojure (1.3.610-5+deb11u1) bullseye; urgency=medium
+
+ * Team upload.
+ * Skip test assertions which hang in single-cpu env (Closes: #1013662).
+
+ -- Jérôme Charaoui <jer...@riseup.net> Tue, 06 Dec 2022 07:51:55 -0500
+
core-async-clojure (1.3.610-5) unstable; urgency=medium
* Team upload.
diff -Nru
core-async-clojure-1.3.610/debian/patches/0003-Skip-test-assertions-which-hang-in-single-cpu-env.patch
core-async-clojure-1.3.610/debian/patches/0003-Skip-test-assertions-which-hang-in-single-cpu-env.patch
---
core-async-clojure-1.3.610/debian/patches/0003-Skip-test-assertions-which-hang-in-single-cpu-env.patch
1969-12-31 19:00:00.000000000 -0500
+++
core-async-clojure-1.3.610/debian/patches/0003-Skip-test-assertions-which-hang-in-single-cpu-env.patch
2022-12-06 07:51:55.000000000 -0500
@@ -0,0 +1,39 @@
+From: =?utf-8?b?SsOpcsO0bWUgQ2hhcmFvdWk=?= <jer...@riseup.net>
+Date: Tue, 5 Jul 2022 17:56:14 -0400
+Subject: Skip test assertions which hang in single-cpu env
+
+This part hangs indefinitely (possible deadlock) when running on a
+single-cpu system, or as a part of a single-cpu bound cgroup.
+
+Forwarded: no
+---
+ src/test/clojure/clojure/core/async_test.clj | 18 +-----------------
+ 1 file changed, 1 insertion(+), 17 deletions(-)
+
+--- a/src/test/clojure/clojure/core/async_test.clj
++++ b/src/test/clojure/clojure/core/async_test.clj
+@@ -288,23 +288,7 @@
+ (is (= [0 1 2 3]
+ (<!! (a/into [] a))))
+ (is (= [0 1 2 3]
+- (<!! (a/into [] b)))))
+-
+- ;; ASYNC-127
+- (let [ch (to-chan! [1 2 3])
+- m (mult ch)
+- t-1 (chan)
+- t-2 (chan)
+- t-3 (chan)]
+- (tap m t-1)
+- (tap m t-2)
+- (tap m t-3)
+- (close! t-3)
+- (is (= 1 (a/poll! t-1)))
+- (is (= nil (a/poll! t-1))) ;; t-2 hasn't taken yet
+- (is (= 1 (a/poll! t-2)))
+- (is (= 2 (a/poll! t-1))) ;; now available
+- (is (= nil (a/poll! t-1)))))
++ (<!! (a/into [] b))))))
+
+ (testing "mix"
+ (let [out (chan)
diff -Nru core-async-clojure-1.3.610/debian/patches/series
core-async-clojure-1.3.610/debian/patches/series
--- core-async-clojure-1.3.610/debian/patches/series 2022-05-13
11:12:48.000000000 -0400
+++ core-async-clojure-1.3.610/debian/patches/series 2022-12-06
07:51:55.000000000 -0500
@@ -1,2 +1,3 @@
0001_Lein_Local.patch
0002_Fix_Test_Timing.patch
+0003-Skip-test-assertions-which-hang-in-single-cpu-env.patch