Bug#987816:

2021-06-10 Thread Dylan Aïssi
tag 987816 fixed-upstream + patch
thanks

Upstream patch is available at:
https://github.com/dask/distributed/commit/668f3f1d38



Bug#987816: marked as pending in dask.distributed

2021-12-15 Thread Vignesh Raman

Dear Maintainer,

On Sun, 28 Nov 2021 07:39:16 + Diane Trout 
 wrote:


> Control: tag -1 pending
>
> Hello,
>
> Bug #987816 in dask.distributed reported by you has been fixed in the
> Git repository and is awaiting an upload. You can see the commit
> message below and you can check the diff of the fix at:
>
> 
https://salsa.debian.org/python-team/packages/dask.distributed/-/commit/82fc3a8274972ec9c1c4619a2b1291f09fcdf0c0

>
> 
> Import Debian changes 2021.01.0+ds.1-2.1
>
> dask.distributed (2021.01.0+ds.1-2.1) unstable; urgency=medium
> .
> * Non-maintainer upload.
> * Backport upstream fix removing tests that fail under some
> circumstances. (Closes: #987816)
> * python-distributed-doc: Fix broken symlink to html5shiv.min.js,
> dh_link needs absolute paths. (Closes: #988675)
> 

I tested with this version 2021.01.0+ds.1-2.1 
(https://packages.debian.org/source/stable/dask.distributed) and it 
fails with the error,


distributed/tests/test_core.py::test_server_listen FAILED

Do we need to raise a different bug report for this ?

Regards,
Vignesh



Bug#987816: dask.distributed: diff for NMU version 2021.01.0+ds.1-2.1

2021-07-13 Thread Adrian Bunk
Control: tags 987816 + pending
Control: tags 988675 + patch
Control: tags 988675 + pending

Dear maintainer,

I've prepared an NMU for dask.distributed (versioned as 2021.01.0+ds.1-2.1)
and uploaded it to DELAYED/2. Please feel free to tell me if I should 
cancel it.

cu
Adrian
diff -Nru dask.distributed-2021.01.0+ds.1/debian/changelog dask.distributed-2021.01.0+ds.1/debian/changelog
--- dask.distributed-2021.01.0+ds.1/debian/changelog	2021-02-01 22:08:19.0 +0200
+++ dask.distributed-2021.01.0+ds.1/debian/changelog	2021-07-13 19:19:56.0 +0300
@@ -1,3 +1,13 @@
+dask.distributed (2021.01.0+ds.1-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Backport upstream fix removing tests that fail under some
+circumstances. (Closes: #987816)
+  * python-distributed-doc: Fix broken symlink to html5shiv.min.js,
+dh_link needs absolute paths. (Closes: #988675)
+
+ -- Adrian Bunk   Tue, 13 Jul 2021 19:19:56 +0300
+
 dask.distributed (2021.01.0+ds.1-2) unstable; urgency=medium
 
   * Add fall-back-to-ipv6-localhost.patch to work around ipv6 networking
diff -Nru dask.distributed-2021.01.0+ds.1/debian/patches/0001-Remove-tests-for-process_time-and-thread_time-4895.patch dask.distributed-2021.01.0+ds.1/debian/patches/0001-Remove-tests-for-process_time-and-thread_time-4895.patch
--- dask.distributed-2021.01.0+ds.1/debian/patches/0001-Remove-tests-for-process_time-and-thread_time-4895.patch	1970-01-01 02:00:00.0 +0200
+++ dask.distributed-2021.01.0+ds.1/debian/patches/0001-Remove-tests-for-process_time-and-thread_time-4895.patch	2021-07-13 19:19:56.0 +0300
@@ -0,0 +1,73 @@
+From 668f3f1d38c27277448af6f5aa88741cd1d33f3b Mon Sep 17 00:00:00 2001
+From: James Bourbeau 
+Date: Wed, 9 Jun 2021 08:57:53 -0500
+Subject: Remove tests for `process_time` and `thread_time` (#4895)
+
+---
+ distributed/tests/test_metrics.py | 46 ---
+ 1 file changed, 46 deletions(-)
+
+diff --git a/distributed/tests/test_metrics.py b/distributed/tests/test_metrics.py
+index 3a27e638..58c33266 100644
+--- a/distributed/tests/test_metrics.py
 b/distributed/tests/test_metrics.py
+@@ -1,9 +1,6 @@
+-import sys
+-import threading
+ import time
+ 
+ from distributed import metrics
+-from distributed.utils_test import run_for
+ 
+ 
+ def test_wall_clock():
+@@ -18,46 +15,3 @@ def test_wall_clock():
+ assert any(lambda d: 0.0 < d < 0.0001 for d in deltas), deltas
+ # Close to time.time()
+ assert t - 0.5 < samples[0] < t + 0.5
+-
+-
+-def test_process_time():
+-start = metrics.process_time()
+-run_for(0.05)
+-dt = metrics.process_time() - start
+-assert 0.03 <= dt <= 0.2
+-
+-# All threads counted
+-t = threading.Thread(target=run_for, args=(0.1,))
+-start = metrics.process_time()
+-t.start()
+-t.join()
+-dt = metrics.process_time() - start
+-assert dt >= 0.05
+-
+-# Sleep time not counted
+-start = metrics.process_time()
+-time.sleep(0.1)
+-dt = metrics.process_time() - start
+-assert dt <= 0.05
+-
+-
+-def test_thread_time():
+-start = metrics.thread_time()
+-run_for(0.05)
+-dt = metrics.thread_time() - start
+-assert 0.03 <= dt <= 0.2
+-
+-# Sleep time not counted
+-start = metrics.thread_time()
+-time.sleep(0.1)
+-dt = metrics.thread_time() - start
+-assert dt <= 0.05
+-
+-if sys.platform == "linux":
+-# Always per-thread on Linux
+-t = threading.Thread(target=run_for, args=(0.1,))
+-start = metrics.thread_time()
+-t.start()
+-t.join()
+-dt = metrics.thread_time() - start
+-assert dt <= 0.05
+-- 
+2.20.1
+
diff -Nru dask.distributed-2021.01.0+ds.1/debian/patches/series dask.distributed-2021.01.0+ds.1/debian/patches/series
--- dask.distributed-2021.01.0+ds.1/debian/patches/series	2021-02-01 21:51:15.0 +0200
+++ dask.distributed-2021.01.0+ds.1/debian/patches/series	2021-07-13 19:19:56.0 +0300
@@ -7,3 +7,4 @@
 use-local-favicon.patch
 mark-tests-require-installation.patch
 fall-back-to-ipv6-localhost.patch
+0001-Remove-tests-for-process_time-and-thread_time-4895.patch
diff -Nru dask.distributed-2021.01.0+ds.1/debian/python-distributed-doc.links dask.distributed-2021.01.0+ds.1/debian/python-distributed-doc.links
--- dask.distributed-2021.01.0+ds.1/debian/python-distributed-doc.links	2021-01-17 05:54:55.0 +0200
+++ dask.distributed-2021.01.0+ds.1/debian/python-distributed-doc.links	2021-07-13 19:19:56.0 +0300
@@ -1 +1 @@
-../../../../sphinx_rtd_theme/static/js/html5shiv.min.js usr/share/doc/python-distributed-doc/html/_static/js/html5shiv.min.js
+/usr/share/sphinx_rtd_theme/static/js/html5shiv.min.js usr/share/doc/python-distributed-doc/html/_static/js/html5shiv.min.js


Bug#987816: dask.distributed: FTBFS due to a build-time test failure

2021-05-21 Thread Stefano Rivera
Control: tag -1 + unreproducible
Control: forwarded -1 https://github.com/dask/distributed/issues/4839

Hi Andrej (2021.04.30_05:27:41_-0400)
> While rebuilding your package for Apertis, I found that it fails to
> build because a few of the build-time tests fail. I rebuilt the package
> in Debian and received the same result.

> __ test_process_time 
> ___
> ___ test_thread_time 
> ___

I tried to reproduce this, twice, and these tests passed, no FTBFS.

The particular numbers in those tests look like they were pulled out of
thin air.

I do however see test failures in the autopkgtest, which are somewhat
flaky.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Bug#987816: dask.distributed: FTBFS due to a build-time test failure

2021-04-30 Thread Andrej Shadura
Source: dask.distributed
Version: 2021.01.0+ds.1-2
Severity: important
Tags: ftbfs
User: de...@lists.apertis.org
Usertags: apertis-ftbfs
X-Debbugs-Cc: de...@lists.apertis.org

Dear Maintainer,

While rebuilding your package for Apertis, I found that it fails to
build because a few of the build-time tests fail. I rebuilt the package
in Debian and received the same result.

__ test_process_time 
___

def test_process_time():
start = metrics.process_time()
run_for(0.05)
dt = metrics.process_time() - start
>   assert 0.03 <= dt <= 0.2
E   assert 0.03 <= 0.0257041389835

distributed/tests/test_metrics.py:27: AssertionError
___ test_thread_time 
___

def test_thread_time():
start = metrics.thread_time()
run_for(0.05)
dt = metrics.thread_time() - start
>   assert 0.03 <= dt <= 0.2
E   assert 0.03 <= 0.02791333997788

distributed/tests/test_metrics.py:48: AssertionError
…

Please find the full bug report in the attachment.

-- 
Cheers,
  Andrej


dask.distributed_amd64-2021-04-30T08:46:30Z.gz
Description: application/gzip