From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 00C4A158086 for ; Sun, 14 Nov 2021 08:36:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0F272BC0EC; Sun, 14 Nov 2021 08:35:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E5962BC0EC for ; Sun, 14 Nov 2021 08:35:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 82843342E01 for ; Sun, 14 Nov 2021 08:35:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F1E4A1A0 for ; Sun, 14 Nov 2021 08:35:54 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1636878942.6d3fe771b9ff45f5c3f1fef2aff83992c5326b10.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ipyparallel/files/, dev-python/ipyparallel/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/ipyparallel/files/ipyparallel-7.1.0-test-timeouts.patch dev-python/ipyparallel/ipyparallel-7.1.0.ebuild X-VCS-Directories: dev-python/ipyparallel/files/ dev-python/ipyparallel/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 6d3fe771b9ff45f5c3f1fef2aff83992c5326b10 X-VCS-Branch: master Date: Sun, 14 Nov 2021 08:35:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4eee8b35-c998-4521-8cc2-f63342a00a9a X-Archives-Hash: deb37a99194262aeba01dfed3b10a717 commit: 6d3fe771b9ff45f5c3f1fef2aff83992c5326b10 Author: Sam James gentoo org> AuthorDate: Sun Nov 14 08:35:42 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sun Nov 14 08:35:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d3fe771 dev-python/ipyparallel: crank up test timeouts Closes: https://bugs.gentoo.org/823458 Signed-off-by: Sam James gentoo.org> .../files/ipyparallel-7.1.0-test-timeouts.patch | 48 ++++++++++++++++++++++ dev-python/ipyparallel/ipyparallel-7.1.0.ebuild | 4 ++ 2 files changed, 52 insertions(+) diff --git a/dev-python/ipyparallel/files/ipyparallel-7.1.0-test-timeouts.patch b/dev-python/ipyparallel/files/ipyparallel-7.1.0-test-timeouts.patch new file mode 100644 index 000000000000..2b0614e95d7d --- /dev/null +++ b/dev-python/ipyparallel/files/ipyparallel-7.1.0-test-timeouts.patch @@ -0,0 +1,48 @@ +https://bugs.gentoo.org/823458 + +From: Sam James +Date: Sun, 14 Nov 2021 08:34:15 +0000 +Subject: [PATCH] Crank up test timeouts + +--- a/ipyparallel/tests/__init__.py ++++ b/ipyparallel/tests/__init__.py +@@ -74,7 +74,7 @@ def setup(): + while not os.path.exists(engine_json) or not os.path.exists(client_json): + if cp.poll() is not None: + raise RuntimeError("The test controller exited with status %s" % cp.poll()) +- elif time.time() - tic > 15: ++ elif time.time() - tic > 60: + raise RuntimeError("Timeout waiting for the test controller to start.") + time.sleep(0.1) + add_engines(1) +@@ -107,7 +107,7 @@ def add_engines(n=1, profile='iptest', total=False): + while len(rc) < base + n: + if any([ep.poll() is not None for ep in eps]): + raise RuntimeError("A test engine failed to start.") +- elif time.time() - tic > 15: ++ elif time.time() - tic > 60: + raise RuntimeError("Timeout waiting for engines to connect.") + time.sleep(0.1) + rc.close() +--- a/ipyparallel/tests/test_lbview.py ++++ b/ipyparallel/tests/test_lbview.py +@@ -21,7 +21,7 @@ class TestLoadBalancedView(ClusterTestCase): + self.assertRaisesRemote(error.EngineError, ar.get, 10) + eid = ar.engine_id + tic = time.time() +- while eid in self.client.ids and time.time() - tic < 5: ++ while eid in self.client.ids and time.time() - tic < 30: + time.sleep(0.01) + assert eid not in self.client.ids + +--- a/ipyparallel/tests/test_view.py ++++ b/ipyparallel/tests/test_view.py +@@ -47,7 +47,7 @@ class TestView(ClusterTestCase): + ar = view.apply_async(conditional_crash, ipp.Reference("should_crash")) + self.assertRaisesRemote(error.EngineError, ar.get, 10) + tic = time.perf_counter() +- while eid in self.client.ids and time.perf_counter() - tic < 5: ++ while eid in self.client.ids and time.perf_counter() - tic < 30: + time.sleep(0.05) + assert eid not in self.client.ids + diff --git a/dev-python/ipyparallel/ipyparallel-7.1.0.ebuild b/dev-python/ipyparallel/ipyparallel-7.1.0.ebuild index 5c708589464c..a2f3bb4d73d9 100644 --- a/dev-python/ipyparallel/ipyparallel-7.1.0.ebuild +++ b/dev-python/ipyparallel/ipyparallel-7.1.0.ebuild @@ -42,6 +42,10 @@ BDEPEND="${RDEPEND} # distutils_enable_sphinx docs/source distutils_enable_tests pytest +PATCHES=( + "${FILESDIR}"/${PN}-7.1.0-test-timeouts.patch +) + python_test() { local deselect=( # we don't run a mongo instance for tests