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.000000000 +0200 +++ dask.distributed-2021.01.0+ds.1/debian/changelog 2021-07-13 19:19:56.000000000 +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 <b...@debian.org> 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.000000000 +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.000000000 +0300 @@ -0,0 +1,73 @@ +From 668f3f1d38c27277448af6f5aa88741cd1d33f3b Mon Sep 17 00:00:00 2001 +From: James Bourbeau <jrbourb...@users.noreply.github.com> +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.000000000 +0200 +++ dask.distributed-2021.01.0+ds.1/debian/patches/series 2021-07-13 19:19:56.000000000 +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.000000000 +0200 +++ dask.distributed-2021.01.0+ds.1/debian/python-distributed-doc.links 2021-07-13 19:19:56.000000000 +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