From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2MchL9/CAmf6dwEAqHPOHw:P1 (envelope-from ) for ; Sun, 06 Oct 2024 17:03:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 2MchL9/CAmf6dwEAqHPOHw (envelope-from ) for ; Sun, 06 Oct 2024 19:03:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b="Wlk/7UNT"; dmarc=pass (policy=none) header.from=lendvai.name; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728234207; a=rsa-sha256; cv=none; b=AdFB8bBiwEhweK47/iMbzwIY4p6iZ2Uz9mApQIRDDSi/qgKnpGqyzRbUhq83zEGVhpHIyp bWF/YktxO2pxyl0nB6etwik5Z+Q57rCNjdnB1YsbVTi6yCbhkhg+Mk10mbHK+nNMSPs0B8 Y08YA0lX7Z2h6T6R1Q6DInV+BzW8Fczhf6N4Hml9mmbtMiPNzgnp3wb+mDdJqFu/jissnp FP+oCFV9ROqxL8xE5laWhd0hZBJMS0FNSKRyRD+f9sSCNuMW+wyDU1vbBvkkGmuDMttTfk An5XmnoNodIlZrBjezVd8K+8ZnUf7IPgAT6AeIiKzwUrRwT2BKvwJDWDzRifHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b="Wlk/7UNT"; dmarc=pass (policy=none) header.from=lendvai.name; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728234207; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NgIPE5SP/JNANydf1ByzSdIQFDmM8vYODo36Svwfn/0=; b=owd67Mg5AT3H/K6p9vwh2SbKbWD4mqNlb6O5CY+B3kkdJKakSf8PM5jX8N4CABtGEZUrML 2aPvQSIxTVtCC7x4Xt0Y2itVYYrLfPiG5gdKsNb1aXGg/j48VDFWrZEob8AUQEt7I/Mqcu 0Z/Dv+PytJC1l2Z8AgTKfxd9OvmWo1ferD63xHq2WjrpruPqP8s0cuoWGHQ4nrGI59XfDw 7F6EM+OLWadzg5EWNW24rwns4g5d6xWMSEPKxALsrCEyuwzeeIlrhXpOr1EEJAcZE2bIEz M3mQ7MS+oNAAXVFdJtqCRDi9wedM0OtHYC4SjXvgTQ4llXEGuB0WEqvzMaOpXg== 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 A0E3F31D36 for ; Sun, 06 Oct 2024 19:03:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxUeO-0000sO-HK; Sun, 06 Oct 2024 13:02:32 -0400 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 1sxUeN-0000rC-62 for guix-devel@gnu.org; Sun, 06 Oct 2024 13:02:31 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxUeK-00010Z-KE for guix-devel@gnu.org; Sun, 06 Oct 2024 13:02:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail2; t=1728234141; x=1728493341; bh=NgIPE5SP/JNANydf1ByzSdIQFDmM8vYODo36Svwfn/0=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Wlk/7UNTFaQmRpWpgTTNNlVxD9qsZa0++NMEcGqhCGdRdZpDszzBVPw7uNZ2SNHlL Yg+5mRKpcOmu9xHeqiM3eCg7hjJpq77r/7yOBlKKgsluTf/nP9xKo1QIue4t878Kh8 RQhMGZH6w3dYnPbWlTerrUoxj7SVGrectaH5SeI08cInBGJ7QF17dv4Th/bAnEEKLH qsMch3AQMrCun1AEgGMC75v/oKTdY3gzsl4rft1fnmTVsQ0JSiTThDWoYRicu/wKvm bMdZ+FiJ8lpqlxaJinhj4Lpj+jXxWgbMgI4DSe4tQw3gO/cwn0Dkjo/IPz9CXL7FcF ghzaNCWILS2Eg== Date: Sun, 06 Oct 2024 17:02:17 +0000 To: guix-devel From: Attila Lendvai Subject: shepherd: failing test: should `herd stop` stop a respawning process? Message-ID: Feedback-ID: 28384833:user:proton X-Pm-Message-ID: ce02cc2aa7d295b958bf36f3bd0f15602e54168b MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_la3nvRmggfXNhmdChHT9Xia6Eysaq3wQJyEvzm7OIY" Received-SPF: pass client-ip=185.70.40.136; envelope-from=attila@lendvai.name; helo=mail-40136.proton.ch 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, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.02 X-Spam-Score: -0.02 X-Migadu-Queue-Id: A0E3F31D36 X-Migadu-Scanner: mx10.migadu.com X-TUID: yi4AODFqX+bG This is a multi-part message in MIME format. --b1_la3nvRmggfXNhmdChHT9Xia6Eysaq3wQJyEvzm7OIY Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable i have a daemon process that quits soon after it starts (when it has some i= ssue with its configurations). then i usually fix the config, and do a guix system reconfigure. but i have= noticed from the logs that this process often remains in a resawn loop, ev= en if i herd stop and herd disable it after the reconfigure (i.e. a shepher= d service upgrade). i have attached a respawn2.sh that when put under tests/ reproduces the iss= ue in a shepherd checkout (see the TODO notes): $ guix shell $ make check TESTS=3D"tests/respawn2.sh" what's wrong? - is it my expectation that herd stop should stop the respawning loop? - do i have a bug in my test.sh? - is this a shepherd bug? if so, then shall i finish up this test case as = a proper patch for shepherd? --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CIn all history there is no war which was not hatched by the govern= ments, the governments alone, independent of the interests of the people, t= o whom war is always pernicious even when successful.=E2=80=9D =09=E2=80=94 Leo Tolstoy (1828=E2=80=931910), 'On Patriotism' (1894) --b1_la3nvRmggfXNhmdChHT9Xia6Eysaq3wQJyEvzm7OIY Content-Type: application/x-shellscript; name=respawn2.sh Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=respawn2.sh IyBHTlUgU2hlcGhlcmQgLS0tIFRlc3QgcmVzcGF3bmFibGUgc2VydmljZXMuCiMgQ29weXJpZ2h0 IMKpIDIwMTMsIDIwMTQsIDIwMTYsIDIwMjMgTHVkb3ZpYyBDb3VydMOocyA8bHVkb0BnbnUub3Jn PgojCiMgVGhpcyBmaWxlIGlzIHBhcnQgb2YgdGhlIEdOVSBTaGVwaGVyZC4KIwojIFRoZSBHTlUg U2hlcGhlcmQgaXMgZnJlZSBzb2Z0d2FyZTsgeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29y IG1vZGlmeSBpdAojIHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExp Y2Vuc2UgYXMgcHVibGlzaGVkIGJ5CiMgdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbjsgZWl0 aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3IgKGF0CiMgeW91ciBvcHRpb24pIGFueSBs YXRlciB2ZXJzaW9uLgojCiMgVGhlIEdOVSBTaGVwaGVyZCBpcyBkaXN0cmlidXRlZCBpbiB0aGUg aG9wZSB0aGF0IGl0IHdpbGwgYmUgdXNlZnVsLCBidXQKIyBXSVRIT1VUIEFOWSBXQVJSQU5UWTsg d2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mCiMgTUVSQ0hBTlRBQklMSVRZIG9y IEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiAgU2VlIHRoZQojIEdOVSBHZW5lcmFs IFB1YmxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuCiMKIyBZb3Ugc2hvdWxkIGhhdmUgcmVj ZWl2ZWQgYSBjb3B5IG9mIHRoZS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