From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oDkbJGveeWUaMAAAkFu2QA (envelope-from ) for ; Wed, 13 Dec 2023 17:40:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4O+IH2veeWXSfAAA62LTzQ (envelope-from ) for ; Wed, 13 Dec 2023 17:40:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=StWoGRVV; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=AB2Iw82o; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702485611; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AW6S+0o4pmjxaUHg7b9HQrl5B3UZvsrB6A3aumzZ2JI=; b=bEHgQ8rwG9O6jpxI14e344Wx5qmxWxjSQXq7ogCSfjbX1Ab61b3tGZxufWJdGqPXxX0d3p wdZYy1UjFk+xmw5GkIDrrpIsoWIoTXak6ubzvAGLap2Bb8hotcbpq9arpGdOhH9nRYlyEC NxEHb82VbqdqeQqgT7f+BWugiO7qMufZK1d31e/PgCFd34F2qEeRxaAh8S9eyyo1cBslla VLqK5IFvHegPC0WK3+fGHtAI1olK2OFqMZczi7HUgmmi/lPCIiTh/1qrQLxZ6aohkBEDg1 kE70rUJX60IBVbMwReddsdOWa0zpFFzI1aB0Bkz/FhpQGC5sgfXjRZvmA+W18A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=StWoGRVV; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=AB2Iw82o; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702485611; a=rsa-sha256; cv=none; b=BqVXPwz5IRez8kmWuq3MWbkm6c10G6P+TgFYiIngNulQBiZlt7MeAxMGzXPLE/gMQsQsje na8sft1IQMOw3z4Kgzv8uQFs/p10quv2W+a+N2TMZ7NggSM9WDdyIl0c76IzAzGKo/9Mms hJTcVOG6RxcDKvD1KzOqvFFVUiiqsduxt7AP+wgqeGFkAt9yBwMarVMPBs3NSklsgUk8La NkSo67Ps47DB2gM6IIiwfhXVOGal42iGK1hH7ME3lEwSn4oAD3Hzl0oYd27Yay2dNjcBWE TDca7lmtnHL5UREUXS47FN8ZxjP+p4q4IIOKVjdn9Ecz8oQ+PZuAs0guYAJxqA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0DFA76735C for ; Wed, 13 Dec 2023 17:40:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDSGx-0006PO-Lh; Wed, 13 Dec 2023 11:39:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rDSGw-0006NS-7Z for guix-patches@gnu.org; Wed, 13 Dec 2023 11:39:46 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rDSGv-00011K-Ut for guix-patches@gnu.org; Wed, 13 Dec 2023 11:39:45 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDSHB-0003Tc-NV for guix-patches@gnu.org; Wed, 13 Dec 2023 11:40:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67722] [PATCH v3] gnu: libtorrent-rasterbar: Work around hang in test_ssl. References: In-Reply-To: Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Dec 2023 16:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67722 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67722@debbugs.gnu.org Cc: Tomas Volf <~@wolfsden.cz> Received: via spool by 67722-submit@debbugs.gnu.org id=B67722.170248556913312 (code B ref 67722); Wed, 13 Dec 2023 16:40:01 +0000 Received: (at 67722) by debbugs.gnu.org; 13 Dec 2023 16:39:29 +0000 Received: from localhost ([127.0.0.1]:59593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDSGe-0003Sc-VR for submit@debbugs.gnu.org; Wed, 13 Dec 2023 11:39:29 -0500 Received: from wolfsden.cz ([37.205.8.62]:38018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDSGZ-0003SO-F1 for 67722@debbugs.gnu.org; Wed, 13 Dec 2023 11:39:28 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 69A4F25F056; Wed, 13 Dec 2023 16:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1702485545; bh=YJyTkr3LEbGQf6iAe5eHP3lVCRwDgVi9YBL4pAhKuQI=; h=From:To:Cc:Subject:Date; b=StWoGRVV4YySitUnC3UnYl1t33/G/OfZ0jzBuEvDMZXoEYv4DuwhT7uVKF2fsYhE8 8VPLMCdTYMSmNTdA+K+q2ENreTcPr5N81CkpKNdAK+kNJHZtP4R8OEdwr4ZsPsCPxv QUqo3TaHTEIhvSzjNq8SeZqHOa8jiZXqfybiZBnK1LXzBrT0qblXuFDNnA0iUxlXxg VjdGkgxNt8rfYaFItudrADrlvMCuTLHcWwpVwJud59M1fovS59LSmEX9RJ4R2gB8+y ZCHiXzyrPhbisotq9xYF+6GdQ3kegMt3D1V+Tz7dVAfKZzYzjgkSExPc/ZUKAzDIcj 7VSpSGBv7ugOF7Lz5pNj/BUeTS6VG78kbpTku8MH4BxSr/qEZ6GLAzL5gMHaw/cm1s j5nXO3ZpFFCnFjM/tmVMF1yUdGKypA54C17ZqffLfPNqXoDmP5jEI2qu12tfmkGHvH IF9kSlHsXuOHOtmgmDdS+yYfQJ20uJSUHjd8Vmf4hRnoKNQibEy3jctK4YIGoBOzDx kDwGPT8GHZWU+qwE2tJ0Kxigvaw6W7BaA2xb7Cr/9AIsjVNHAQFM6aNB6gverO3Pjs ILMMDTk8rw9lARWnfoTCepN4OPPfQGZ1+6eybmosvcGZTDaXBaB0AdJs2d6pOae/U+ BR324JVSCnXFEs+43OBe41TE= Received: from localhost (unknown [146.70.134.143]) by wolfsden.cz (Postfix) with ESMTPSA id 9DAD425FAA4; Wed, 13 Dec 2023 16:39:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1702485544; bh=YJyTkr3LEbGQf6iAe5eHP3lVCRwDgVi9YBL4pAhKuQI=; h=From:To:Cc:Subject:Date; b=AB2Iw82oYqPXWlVdUkjF6IH1PleUS0QN6iJsnXEMwZAMonAebZNM1GgXtTedZPi7g iXwEGAUspUeyIYhn8azzrfyPQFKHwwQu81+MlARYtxvFABCNhSmbFpjwmOsw1d+7FS XBpWiUB70hVGzNk3ATKDgKCB2pai+7zPCBH/kSRdo3JIZXFP1ndvtq7vqVc6gKMxSN MIgONRcAob4CRFW5JS1wwoHdQNTFLygpCvWanZ7GkC83AQBPqR5alHMWHbqN0FTWud LQrDpJaiWcgozGGS3TKaB/XFlG3aXmg60BMZl+OJtjqqca1fvQal0vxxt3WGslhZgc UkA5I6hptFQctHKITboWjVGOpwxEr3RWqj/Pd5SJdkIaab/azBTCQG3QBy4JmLhWs3 cs2dRbFXLuTKz07O3Lk4/u8cUiYPwSO3UiXcaBnY9MpDuZyL+Y03GQbW9ytw22U/AB FRNhJfqGCJQ5duXgATcRymbs1VeEz1ufYSiWJgFW7q68+u5gSVmARkmY5OImNOKm1Q 4vmKcwcOZQ7hpOnjThRRahnMHzbYfaG+I3cYUGN6SnTusaLwBhDOOf5y5gzayBSN8n VAw4gf8tNx4fnIFSu2QH6KYH2Cvk15xnCx7KmUQijkksbgi5iv7WJRSB6LQKCV02db kWK+7jpTJYsu9ykya/77igv0= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id d3a87134; Wed, 13 Dec 2023 16:39:03 +0000 (UTC) From: Tomas Volf <~@wolfsden.cz> Date: Wed, 13 Dec 2023 17:38:57 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.59 X-Spam-Score: -3.59 X-Migadu-Queue-Id: 0DFA76735C X-Migadu-Scanner: mx10.migadu.com X-TUID: 7fNY1Snr9UFJ test_ssl does sometimes hang (at least when executed under faketime). It is somewhat unlikely to happen, and (on my machine) required a build with --rounds=32 to reproduce it. The workaround is to set somewhat lower timeout of 240s (expected test duration * 5 rounded up to whole minutes) and retry few times on failure. In this way, --rounds=64 finished successfully (on my machine). At the same time remove the timeout from the other tests, since it is not necessary (they do not hang), and one of them runs for ~270s (almost half the original timeout), so it could posse a problem on slow/overloaded machine. * gnu/packages/bittorrent.scm (libtorrent-rasterbar)[arguments]<#:phases>['check]: Remote test timeout for most tests. Lower the timeout for test_ssl. Retry test_ssl on failure. Change-Id: I535c72fec24658a4b2151d2e8794319055c9a278 --- gnu/packages/bittorrent.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm index 731c8e1c20..4585c3b088 100644 --- a/gnu/packages/bittorrent.scm +++ b/gnu/packages/bittorrent.scm @@ -470,7 +470,6 @@ (define-public libtorrent-rasterbar (exclude-regex (string-append "^(" (string-join disabled-tests "|") ")$")) - (timeout "600") (jobs (if parallel-tests? (number->string (parallel-job-count)) "1"))) @@ -478,7 +477,6 @@ (define-public libtorrent-rasterbar (invoke "ctest" "-E" exclude-regex "-j" jobs - "--timeout" timeout "--output-on-failure") ;; test_ssl relies on bundled TLS certificates with a fixed ;; expiry date. To ensure succesful builds in the future, @@ -492,7 +490,11 @@ (define-public libtorrent-rasterbar "ctest" "-R" "^test_ssl$" "-j" jobs - "--timeout" timeout + ;; test_ssl sometimes hangs (at least when run under + ;; faketime), therefore set a time limit and retry + ;; few times on failure. + "--timeout" "240" + "--repeat" "until-pass:5" "--output-on-failure")))))))) (inputs (list boost openssl)) (native-inputs `(("libfaketime" ,libfaketime) base-commit: 1b2505217cf222d98cc960b8510660976a01cfa1 -- 2.41.0