From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Paul Schmidt Subject: bug#22078: failed builds due to exceeding max-silent-time not marked as failed in db Date: Fri, 4 Dec 2015 23:40:35 +0100 Message-ID: <56621663.4080007@gmx.net> References: <565F6A9B.9050406@gmx.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070807090901070700040402" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4z3F-0004b3-Vq for bug-guix@gnu.org; Fri, 04 Dec 2015 17:42:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4z3C-0006pw-NM for bug-guix@gnu.org; Fri, 04 Dec 2015 17:42:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:49762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4z3C-0006pr-Jj for bug-guix@gnu.org; Fri, 04 Dec 2015 17:42:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a4z3C-0001aD-AX for bug-guix@gnu.org; Fri, 04 Dec 2015 17:42:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4z1u-0004St-Jd for bug-guix@gnu.org; Fri, 04 Dec 2015 17:40:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4z1r-0006UQ-52 for bug-guix@gnu.org; Fri, 04 Dec 2015 17:40:42 -0500 Received: from mout.gmx.net ([212.227.15.19]:54701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4z1q-0006U3-Qx for bug-guix@gnu.org; Fri, 04 Dec 2015 17:40:39 -0500 Received: from [192.168.1.247] ([77.2.71.66]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MSMKx-1ZgcVr2tEx-00TXtt for ; Fri, 04 Dec 2015 23:40:36 +0100 In-Reply-To: <565F6A9B.9050406@gmx.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 22078@debbugs.gnu.org This is a multi-part message in MIME format. --------------070807090901070700040402 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Attached is a first stab at fixing this. There are additional options to guix-daemons now: --cache-failures cache build failures --cache-hook-failures cache build failures due to hook failures (depends on cache-failures) --cache-timeout-failures cache build failures due to timeouts (depends on cache-failures) Patch compiles, but is yet untested since the system I need it has gone away for the time being.. Flo On 12/02/2015 11:03 PM, Florian Paul Schmidt wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > > Hi, > > on my system bulding the derivation for the package tbb (version > 4.3.2) does not complete due to exceeding the max-silent-time default > value of 3600 seconds (one hour). > > It seems that in this case the path is not marked as failed in the > sqlite3 db > > /var/guix/db/db.sqlite > > in the table FailedPaths. This is quite annoying since it seems that > several packages depend on it causing the derivation to be built > several times (each taking over an hour to fail). > > The guix daemon is running with the --cache-failures option and I > would expect the second run of > > for n in `guix package -A | cut -f1`; do guix build --no-substitutes > "$n" || true; done > > to be mostly a NOOP, since all failures from the first run should be > cached. And even in the first run I wouldn't expect failed > dependencies to be tried to build again. Contrary to this on this box > even the second run of this takes about half a day or so to complete ;) > > Flo > > P.S.: FYI: The thing that takes over an hour to run is > > ./test_atomic.exe > > > - -- > https://fps.io > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 > > iQEcBAEBCAAGBQJWX2qaAAoJEA5f4Coltk8ZnasH/jOg+E0Y/CDxw5SGgcJN0Q6K > TYo41AVz0u9tLJEVYW4ZW9Z7A3UL5OTB+03LwC1zT7iDtFzU6a7BzaW2N3gP+GGi > Tx+Rq0z7ZIHEF1t71YFtPOAIpuyxwl1yMnRo0kd8BVsrNu843ITI4w+kzGV4tcP1 > l9uDf7c+WQ8MFhoMDUqjW5ufIb3zy6yKk1GDXw14xZ8laeiE8hrXFE2LFV4WCxzP > VMPDgHBlPF6pAKLYpWSpL2RtL/WxO9tYIYpQ16EW7GjOouCy2ObT+1CJ75kSIOie > DZ/RLUSxa39amDFwii5liR+ETgvz3FCoBAcyI5AP/76uMToub1z3S1PNt58EnsE= > =Hivd > -----END PGP SIGNATURE----- > > > --------------070807090901070700040402 Content-Type: text/plain; charset=UTF-8; name="0001-guix-daemon-cache-more-failures-if-requested.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-guix-daemon-cache-more-failures-if-requested.patch" RnJvbSAzZTM3NmY3ZDIyYTYyYzE5NDkxZDgzMGMzNDE4MmYyZjQ4MjhmMGEzIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBGbG9yaWFuIFBhdWwgU2NobWlkdCA8bWlzdGEudGFw YXNAZ214Lm5ldD4KRGF0ZTogRnJpLCA0IERlYyAyMDE1IDIzOjM3OjEzICswMTAwClN1Ympl Y3Q6IFtQQVRDSF0gZ3VpeC1kYWVtb246IGNhY2hlIG1vcmUgZmFpbHVyZXMgaWYgcmVxdWVz dGVkCgotLS0KIG5peC9saWJzdG9yZS9idWlsZC5jYyAgICAgICAgIHwgIDggKysrKysrKysK IG5peC9saWJzdG9yZS9nbG9iYWxzLmNjICAgICAgIHwgIDQgKysrKwogbml4L2xpYnN0b3Jl L2dsb2JhbHMuaGggICAgICAgfCAgNiArKysrKysKIG5peC9uaXgtZGFlbW9uL2d1aXgtZGFl bW9uLmNjIHwgMTIgKysrKysrKysrKysrCiA0IGZpbGVzIGNoYW5nZWQsIDMwIGluc2VydGlv bnMoKykKCmRpZmYgLS1naXQgYS9uaXgvbGlic3RvcmUvYnVpbGQuY2MgYi9uaXgvbGlic3Rv cmUvYnVpbGQuY2MKaW5kZXggZWZlMWFiMi4uNDg5MzZmOSAxMDA2NDQKLS0tIGEvbml4L2xp YnN0b3JlL2J1aWxkLmNjCisrKyBiL25peC9saWJzdG9yZS9idWlsZC5jYwpAQCAtMTQ4Mywx MiArMTQ4MywyMCBAQCB2b2lkIERlcml2YXRpb25Hb2FsOjpidWlsZERvbmUoKQogICAgICAg ICAgICAgaWYgKHNldHRpbmdzLnByaW50QnVpbGRUcmFjZSkKICAgICAgICAgICAgICAgICBw cmludE1zZyhsdmxFcnJvciwgZm9ybWF0KCJAIGJ1aWxkLWZhaWxlZCAlMSUgLSB0aW1lb3V0 IikgJSBkcnZQYXRoKTsKICAgICAgICAgICAgIHdvcmtlci50aW1lZE91dCA9IHRydWU7CisK KyAgICAgICAgICAgIGlmIChzZXR0aW5ncy5jYWNoZUZhaWx1cmUgJiYgc2V0dGluZ3MuY2Fj aGVUaW1lb3V0RmFpbHVyZSkKKyAgICAgICAgICAgICAgICBmb3JlYWNoIChEZXJpdmF0aW9u T3V0cHV0czo6aXRlcmF0b3IsIGksIGRydi5vdXRwdXRzKQorICAgICAgICAgICAgICAgICAg ICB3b3JrZXIuc3RvcmUucmVnaXN0ZXJGYWlsZWRQYXRoKGktPnNlY29uZC5wYXRoKTsKICAg ICAgICAgfQogCiAgICAgICAgIGVsc2UgaWYgKGhvb2sgJiYgKCFXSUZFWElURUQoc3RhdHVz KSB8fCBXRVhJVFNUQVRVUyhzdGF0dXMpICE9IDEwMCkpIHsKICAgICAgICAgICAgIGlmIChz ZXR0aW5ncy5wcmludEJ1aWxkVHJhY2UpCiAgICAgICAgICAgICAgICAgcHJpbnRNc2cobHZs RXJyb3IsIGZvcm1hdCgiQCBob29rLWZhaWxlZCAlMSUgLSAlMiUgJTMlIikKICAgICAgICAg ICAgICAgICAgICAgJSBkcnZQYXRoICUgc3RhdHVzICUgZS5tc2coKSk7CisKKyAgICAgICAg ICAgIGlmIChzZXR0aW5ncy5jYWNoZUZhaWx1cmUgJiYgc2V0dGluZ3Mu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