From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id UNKTMNVCfGUdbwAAkFu2QA (envelope-from ) for ; Fri, 15 Dec 2023 13:13:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4D+HK9VCfGWl4AAAe85BDQ (envelope-from ) for ; Fri, 15 Dec 2023 13:13:09 +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="kG3/hxck"; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b="kG3/hxck"; 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=1702642389; 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=k/rEmM3xAlKEy14UTW/NekR7ZBBKJQRcifrCmqoquqc=; b=mcyOCuNcKkPo7iGTIgp/ATSMQ9BRJaB69ptKwNVTbnvULLZZniVOqS0i88eV3weCmz8Hxq x1EXxiIbf+pmt8tTcel88cuZ71ZB5EQJk7CYjdA7IFcMSkIqQKtMI/KjS/tP5W7ilI8AGP 0tVvN1QVbrHhsr1XCEMpMbhqwRHRZIhrgRR9Th1wdYP1Jr4nHoYT03Bzj/4rS2JMI06g/J y/bYA55i+eLwg3z04y0e246yQ5NqEcHC7yQXZPrcVKpOw7dC9dGRu6LRABE2wOXZnwUMkA i0enu2M69v3o00seiyiGLeDk4Vr0BeemYQUwiCLbhW4nc6tm06rgAPihC8B5kw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b="kG3/hxck"; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b="kG3/hxck"; 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=1702642389; a=rsa-sha256; cv=none; b=YAOzSkHvIU2dILY5rYpWMgZySOiSDx/O5vrlV58R+plTlYzErop7Ubgz0vb/5zflBBP85g +3lS1sy2yHJwhzvNt/8S27e3I7SoUdmQwCrL/h/vdNB+F99D0pyQ9QFbyUjGGv00nPdcpL o/nCfEbVVfBdcxr44uylBDRkksnBm+ODjH/RznM4Cq/ISm2ZMxwQy2febF3FeVDrXXgN6t Wldlyqdn/k2ah5CMTv1sXUU/QY2QGG6lYUu0seqfBRGyaFdciI64W/dKhBRtxH0cLYI0wB ggMaEremZdks4LOW0ER42rLOdlTLReQeqNp7536tJmNKVMb6TJqXptLkOQuXCA== 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 5B51763C7B for ; Fri, 15 Dec 2023 13:13:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rE6SC-00027S-0g; Fri, 15 Dec 2023 06:34:04 -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 1rE6SA-000255-KZ for guix-patches@gnu.org; Fri, 15 Dec 2023 06:34:02 -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 1rE6SA-0002Hm-Bx for guix-patches@gnu.org; Fri, 15 Dec 2023 06:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rE6S9-00086J-Tv for guix-patches@gnu.org; Fri, 15 Dec 2023 06:34:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67722] [PATCH v4] 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: Fri, 15 Dec 2023 11:34: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.170263999731055 (code B ref 67722); Fri, 15 Dec 2023 11:34:01 +0000 Received: (at 67722) by debbugs.gnu.org; 15 Dec 2023 11:33:17 +0000 Received: from localhost ([127.0.0.1]:51677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rE6RR-00084p-3H for submit@debbugs.gnu.org; Fri, 15 Dec 2023 06:33:17 -0500 Received: from wolfsden.cz ([37.205.8.62]:42570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rE6RN-00084a-Bk for 67722@debbugs.gnu.org; Fri, 15 Dec 2023 06:33:15 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id ECD15272D0B; Fri, 15 Dec 2023 11:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1702639989; bh=8JvDJoe1jtWFXpdwpPDq8Z8jyMuYeKZgsyzNdH98IKY=; h=From:To:Cc:Subject:Date; b=kG3/hxcklBLn+BachF+gdz+87soEQ344y9vp0ffV0iXsi7xLzMCPpliI7oXcbB++g D4lBCe8XUXc9pXTvwA1vVHWDuRaj5b7xxdJtAaMKpNpnm6a9TDErKg9OnBeFO1Qh3h /qzyZv1eILJADTlCzg8Mz6j8/uGlWv16W5uP2Bc/TCjsbkycmNbR7pJglnGDsd1apH Jn5EytkcnU4zq/TaAoAF8nRMpBpQPKBYuQc4juTs6uBpqa0VTV1uH7uLXgIMLoZn3f 7xB73SgZx7eYG6HPV5zMWnTfo1qc/rYFGZK+EmaQTyvqEnMEW9tOgRktHH7sm2neI0 y0sGjqeCtJnHqmC3ypum52f7T0ZrgJJseeen8XrB/Ux/zvzkwjk2frgcT0HC7BxtU3 Lijlk1Mk0h6ARCnKjmhZge4qrryODjBqpG6GQVroATzK0XD1/BlKt49Yl0TnZ1eIek mSKfnexCImSuIGn68SdDEN2nXD02RmRPUySiupn8ZtvsNTFLVqgZbxU++dDSf+av4m Qk2K5hdHHPlYUwY3/c+LG+dTdo8CR98ocF6Ny+Ktugbj0zcB70wRQWkzujm7GLqcUZ zMVl1580XT51/6N90WNCx0kcpSSeE1olxR9C8DAshmmak07ddtjN/E3Gn8QsMU0vZu ow5Xip2c6GxasrlQcJHT2fps= Received: from localhost (unknown [193.32.127.154]) by wolfsden.cz (Postfix) with ESMTPSA id 15904271ABD; Fri, 15 Dec 2023 11:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1702639989; bh=8JvDJoe1jtWFXpdwpPDq8Z8jyMuYeKZgsyzNdH98IKY=; h=From:To:Cc:Subject:Date; b=kG3/hxcklBLn+BachF+gdz+87soEQ344y9vp0ffV0iXsi7xLzMCPpliI7oXcbB++g D4lBCe8XUXc9pXTvwA1vVHWDuRaj5b7xxdJtAaMKpNpnm6a9TDErKg9OnBeFO1Qh3h /qzyZv1eILJADTlCzg8Mz6j8/uGlWv16W5uP2Bc/TCjsbkycmNbR7pJglnGDsd1apH Jn5EytkcnU4zq/TaAoAF8nRMpBpQPKBYuQc4juTs6uBpqa0VTV1uH7uLXgIMLoZn3f 7xB73SgZx7eYG6HPV5zMWnTfo1qc/rYFGZK+EmaQTyvqEnMEW9tOgRktHH7sm2neI0 y0sGjqeCtJnHqmC3ypum52f7T0ZrgJJseeen8XrB/Ux/zvzkwjk2frgcT0HC7BxtU3 Lijlk1Mk0h6ARCnKjmhZge4qrryODjBqpG6GQVroATzK0XD1/BlKt49Yl0TnZ1eIek mSKfnexCImSuIGn68SdDEN2nXD02RmRPUySiupn8ZtvsNTFLVqgZbxU++dDSf+av4m Qk2K5hdHHPlYUwY3/c+LG+dTdo8CR98ocF6Ny+Ktugbj0zcB70wRQWkzujm7GLqcUZ zMVl1580XT51/6N90WNCx0kcpSSeE1olxR9C8DAshmmak07ddtjN/E3Gn8QsMU0vZu ow5Xip2c6GxasrlQcJHT2fps= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id a51bf49b; Fri, 15 Dec 2023 11:33:07 +0000 (UTC) From: Tomas Volf <~@wolfsden.cz> Date: Fri, 15 Dec 2023 12:32:18 +0100 Message-ID: <50226d59dc4fa9deb686733dbbb6622c6194dcc1.1702639938.git.~@wolfsden.cz> 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-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.55 X-Spam-Score: -3.55 X-Migadu-Queue-Id: 5B51763C7B X-TUID: EZq2XHJoaoh0 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 --- No changes, just rebase, resolving a merge conflict. gnu/packages/bittorrent.scm | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm index 8c032940d4..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, @@ -488,16 +486,16 @@ (define-public libtorrent-rasterbar ;; test_fast_extension, test_privacy and test_resolve_links ;; to hang, even with FAKETIME_ONLY_CMDS. Not sure why. So ;; execute only test_ssl under faketime. - ;; - ;; Note: The test_ssl test times out in the ci. - ;; Temporarily disable it until that is resolved. - ;; (invoke "faketime" "2022-10-24" - ;; "ctest" - ;; "-R" "^test_ssl$" - ;; "-j" jobs - ;; "--timeout" timeout - ;; "--output-on-failure") - ))))))) + (invoke "faketime" "2022-10-24" + "ctest" + "-R" "^test_ssl$" + "-j" jobs + ;; 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) ("python-wrapper" ,python-wrapper) base-commit: b681e339fa37f2a26763458ee56b31af1d6a7ec5 -- 2.41.0