From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4GAaHWxWIWQStAAASxT56A (envelope-from ) for ; Mon, 27 Mar 2023 10:40:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cKIgHWxWIWRxVQAAauVa8A (envelope-from ) for ; Mon, 27 Mar 2023 10:40:12 +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 52E7413736 for ; Mon, 27 Mar 2023 10:40:12 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b=ig4riBF3; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679906412; 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=8th4fCEbinAFfjjnKeCffeqc0FyJ7FIsRgA1UogXs+k=; b=dzvVzjGcP4DcJ6j3xfjb/6m869zapOmg5McxJkTGYQ8osgOoM0NtcCfvzc+CbublE743ik jRmCXN2kIGbjitbMFc1o5fSZuHfx+h0WtvYQza+8yTJJkZpdZ5wrqdj0Uvcuy4/qOITFL1 G4h7+qu5kzB9VqGahSCa53euYPl7baM1KqvsJ5ublo4NgRM+zUJXPF05ZswG3KDUZWGP6i 88UxEhbu1mGCIhLoI2wtLJnHeNAMWRiEetd0GARNrm9xDwMwnIGbAgPnv3Ka5CAhJE16uE APOHix1ne23O6tUtSKiMJORAwdQUefhEs04OE2hAuabMGKRxSI2SlIs0CQUbVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679906412; a=rsa-sha256; cv=none; b=hpClVMQjilIFhs1PS6abTB4YFXUVUuB5CnNgoj1BDUcI812sWFAWmcmgJ4T2yphhCXJuHR T3ue7tO0aiB+G9lo0r3JMXUhPHuJWEDJvl+avSxQ32Gtqm5Yl4btPtpmv8Bf/jsHoqUwEX KG8uLrpf6GZjX6C6xyYeO/XOEOHLrQa/FyOrsjsN48luY6qvtN++DybQYGqn5Bh+gRkazM TMyGFNgPLo8wGGTQp7lksEsLke4zgiieBmFMJwdEOzfAEeH9wcRBvqoamU22bX0PL9P+ip lnsg+MUhGXO+lseiJ7efSzrFiL+DPoZeh/XIiRCaZyCTI7eDzDunlo4mcnGa1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b=ig4riBF3; 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"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgiOE-00025L-Br; Mon, 27 Mar 2023 04:39:42 -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 1pgiO9-00024v-0I for guix-devel@gnu.org; Mon, 27 Mar 2023 04:39:37 -0400 Received: from mail-4018.proton.ch ([185.70.40.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgiO3-00053l-VV for guix-devel@gnu.org; Mon, 27 Mar 2023 04:39:36 -0400 Date: Mon, 27 Mar 2023 08:39:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail2; t=1679906367; x=1680165567; bh=8th4fCEbinAFfjjnKeCffeqc0FyJ7FIsRgA1UogXs+k=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=ig4riBF3L8p8Cvijeqvqf/zjyZ/YByy7e9JqU6LVl8AoXvXY9LD/SRYIXG7JIbkFQ KOvx8t9+dTdLSuP/e16WkiDQSFNLJKaDAQi3XNZXZySiT+c0DBEt70IUZZgxHnGkmg Yo90mxeJ8zgVH8ZsCUUQkNpUH6PfW57Sone/pu4bdt4MUUDEvHz/BWF1fevOOlX4WK pRWS7Lo9qqkdowDaiqLDJ4nY3DySlM30wanuD529r2yw4CTiOTTbv0hZVvc4sFh4Z1 po6K4iEYtQX/GG258TsESlVLbFHQJD6VDB4BHEumpRQx0WLoC2G+so8WlSMNe5ma+t byyVcUYYmXsQQ== To: Vladilen Kozin From: Attila Lendvai Cc: guix-devel@gnu.org Subject: Re: shepherd service works on host but fails inside system container Message-ID: In-Reply-To: References: Feedback-ID: 28384833:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.18; envelope-from=attila@lendvai.name; helo=mail-4018.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, 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: X-Migadu-Queue-Id: 52E7413736 X-Spam-Score: -5.57 X-Migadu-Spam-Score: -5.57 X-Migadu-Scanner: scn0.migadu.com 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-TUID: MXUMpMzRcsD8 > Relatedly, does anyone have a nicer workflow they use to define and > test shepherd services? i'm not sure it's a nicer workflow, but i'm mimicing the Guix tests: https://github.com/attila-lendvai/guix-crypto/blob/main/tests/swarm-tests.s= cm#L19 it is based on `guix system vm` and the testing is by manually looking at s= tuff in the VM (you get a VM console in your terminal). the startup time is= in the ballpark of 20-30 secs on my laptop. adding automated tests to this is i think possible. let us know if you have a faster cycle. --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CSince no individual acting separately can lawfully use force to de= stroy the rights of others, does it not logically follow that the same prin= ciple also applies to the common force that is nothing more than the organi= zed combination of the individual forces?=E2=80=9D =09=E2=80=94 Fr=C3=A9d=C3=A9ric Bastiat (1801=E2=80=931850), 'The Law' (185= 0)