From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2PhFObDgm2JerQAAbAwnHQ (envelope-from ) for ; Sun, 05 Jun 2022 00:46:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WBlROLDgm2IxjwAAG6o9tA (envelope-from ) for ; Sun, 05 Jun 2022 00:46:08 +0200 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 9797624279 for ; Sun, 5 Jun 2022 00:46:08 +0200 (CEST) Received: from localhost ([::1]:53376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxcX1-0005Oj-G6 for larch@yhetil.org; Sat, 04 Jun 2022 18:46:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxcWW-0005N9-7w for guix-devel@gnu.org; Sat, 04 Jun 2022 18:45:36 -0400 Received: from mx.kolabnow.com ([212.103.80.155]:51308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxcWM-0001rc-93; Sat, 04 Jun 2022 18:45:32 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id A89D6136D; Sun, 5 Jun 2022 00:45:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:in-reply-to:date:date:subject:subject:from:from :references:received:received:received; s=dkim20160331; t= 1654382720; x=1656197121; bh=ACZIf7thIQhoVKcAohT00dY9ZW77msZeydJ zgcsmWBY=; b=bHgJiFpg5nzFmvl2Z/FsMnDVggyY10R1h0+epdp8/u076qAQY5G ZU/UHQa0oNoFURS5LgYYYb+y+TwrZm/oyN74pPEjx69L3THaUEMDsi43t5Jro8/r +6ua02fdQeW9+qcJlLkEVBLdIVgtixinCAaWJnGwnHsE4gvGaW1Co4Iz5cwm6T6D ToNJlT7w5c3+vNRuv2VsglIO2gdL2qBKpJw+Un8AaKx+e6DmGjlJiE4LdmU8ZIx9 we2GE2ag8d+jZL5/NLsTYDfGciGlFiIE1XT1tptg3F1lLJx0kP1o9oMPllxO3JXv dv17S2pD9q7FsvhTZX/h3GgpuE1byyWUNSE/mv8kt46xrIddSCZFl7SYVaUTtUcg dWCiYtdjS9jhvb93OhyIlVtygJqLiCsqdqsfZOKw4FKL9zyB+QIz73xjH2w9ZaXm Qmonzsr/ifNbbrhDMkaJvixJqCRIbJ22FcNxdnk1Two2EX59JPtcnjwuKyozNp7i jcRlYhMGBxsHChwNWrRe6KvleVnLcOuL8c4tAiaNU01Oek1uY71Vy+doUuePolqh e/E7nBQtfVAyJWdxlzpnWzLvRBcVCHZDfi0XrvOLI3zXC7zxOyFlAlB4BiMRccem Ub5ONNiHCA07PXRZqzEJdnhEPe7NUpIapsgIRiQuCo5gnVoZATiGInQo= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9yA3REExH_zl; Sun, 5 Jun 2022 00:45:20 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id 547D9CF9; Sun, 5 Jun 2022 00:45:19 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 5F3CA811; Sun, 5 Jun 2022 00:45:18 +0200 (CEST) References: <87h76l8yp5.fsf@systemreboot.net> <86ee1j2g8l.fsf@gmail.com> <87h76e4w2d.fsf@systemreboot.net> <8735hs9qb2.fsf@gmail.com> <871qxacp8j.fsf@kolabnow.com> <875yml916w.fsf@gmail.com> <87o80cvjdl.fsf@kyleam.com> <877d70wtd7.fsf@kolabnow.com> <87tua4jax8.fsf@gmail.com> <8735hl0yud.fsf@gnu.org> <877d6w96by.fsf@kolabnow.com> <878rr2cy13.fsf@gnu.org> From: Thiago Jung Bauermann To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Maxim Cournoyer , Kyle Meyer , zimoun , Arun Isaac , guix-devel@gnu.org Subject: Re: Updating mumi on berlin Date: Sat, 04 Jun 2022 19:36:47 -0300 In-reply-to: <878rr2cy13.fsf@gnu.org> Message-ID: <87v8tgrqtk.fsf@kolabnow.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.103.80.155; envelope-from=bauermann@kolabnow.com; helo=mx.kolabnow.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654382768; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ACZIf7thIQhoVKcAohT00dY9ZW77msZeydJzgcsmWBY=; b=TkXKBtQbjDWJuRQ0mMYfl3e04aVuiGcVfTCqq5o+MOHPz4rjfgp98x1jAvAGg47SA2gK0H C8VgPDSHMpzW9XLGYYDPZKNu3b2LspNl5kd61cfb/Y2MYHFhJByIuC6C8ppM6Nja2s2bGY v+Y/YM8BQ1x6QMvfpO6E0xSgZnIJMyJqzFavgwQ4hT0GbZ1ZtcXmq4F/k1EdnON6Gd/j1A Hc6zIyKz2GjJH0FxcHyugAEZ/71dBIeOZAxU/4cz0UHSclRRAaL32lbWDLcaUijZgNnXZJ AgorJ3r9ZVSO4dVJWuiWUVo8B3OnC6Piwu+O3B3OS1dvDX/oKqgLu7OW65F/WA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654382768; a=rsa-sha256; cv=none; b=fktS5XG+NM4xQ+2vsd5H229FXbGiKQwQcM/LOiq2Wy3EKnP96tRAzBb3nBgmDP432lm3SO u1O2iz5YNi/lMNCvWOreqCTsfyNESAeLvUKrK1Jf3dsFCmXZQJ1kCNRDvkxYjy82d5k9AU S0iJPfT94MPpm0Pb4SpgZVfg5nXi7/deXolVGjDD4V37XomeAKcie5l30iA9RbF9iq29hl //WjZRikqg4HUlujZI5xnXPlSneUHeGpUXTg2tU2AYSUR/75SgVNFARYxxRD+H58mzxMMJ Ec7WHTBPcawfApb5LPOLg7CMnbUybL9byFEQLYyLVd90PI+8mvQWWmzEOvVCbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=bHgJiFpg; dmarc=pass (policy=quarantine) header.from=kolabnow.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20160331 header.b=bHgJiFpg; dmarc=pass (policy=quarantine) header.from=kolabnow.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9797624279 X-Spam-Score: -7.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0UlPQwXW0+rd Hello Ludo, Ludovic Court=C3=A8s writes: > Thiago Jung Bauermann skribis: > >> I tried the latter a couple of weeks ago and it didn't work either, >> though it's highly likely that I did something wrong in my Scheme code. >> I also didn't use the 1-second timer hack so perhaps that was it. >> >> I just tested this (adapted from the mutter package) and it worked: >> >> @@ -4137,6 +4142,26 @@ (define-public public-inbox >> ;; the builder. >> (substitute* "t/httpd-unix.t" >> (("^SKIP: \\{") "SKIP: { skip('Guix');")))) >> + (replace 'check >> + (lambda* (#:key target >> + (tests? (not target)) (test-flags '()) >> + #:allow-other-keys) >> + (if tests? >> + (match (primitive-fork) >> + (0 ;child process >> + (set-child-subreaper!) >> + ;; Use tini so that signals are properly handled and >> + ;; doubly-forked processes get reaped; otherwise, >> + ;; lei-daemon is kept as a zombie and the testsuite >> + ;; fails thinking that it didn't quit as it should. >> + (apply execlp "tini" "--" >> + "make" "check" test-flags)) > > How does a basic SIGCHLD handler fare? > > (sigaction SIGCHLD > (lambda _ (false-if-exception (waitpid WAIT_ANY WNOHANG)))) I finally had a chance to try this, but it didn't work. I didn't try the changes suggested by Maxime though. Here's the full =E2=80=98check=E2=80=99 phase I tried: --8<---------------cut here---------------start------------->8--- (replace 'check (lambda* (#:key target (tests? (not target)) (test-flags '()) #:allow-other-keys) (if tests? (match (primitive-fork) (0 ;child process (set-child-subreaper!) ;; lei tests build UNIX domain sockets in the temporary ;; directory, but the path of those sockets can be at most ;; 108 chars and Guix' default value for the variables ;; below already use 47 chars. Use the shortest temporary ;; path possible to avoid hitting the limit. (setenv "TEMP" "/tmp") (setenv "TEMPDIR" "/tmp") (setenv "TMP" "/tmp") (setenv "TMPDIR" "/tmp") (sigaction SIGCHLD (lambda _ (false-if-exception (waitpid WAIT_ANY WNOHANG)))) (exit (status:exit-val (apply system* "make" "check" test-flags)))) (pid (match (waitpid pid) ((_ . status) (unless (zero? status) (error "`make check' exited with status" status)))))) (format #t "test suite not run~%")))) --8<---------------cut here---------------end--------------->8--- --=20 Thanks Thiago