From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eJzUOTer5WH+RwAAgWs5BA (envelope-from ) for ; Mon, 17 Jan 2022 18:45:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yGp9Njer5WFaJAEAauVa8A (envelope-from ) for ; Mon, 17 Jan 2022 18:45:27 +0100 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 9050B10B35 for ; Mon, 17 Jan 2022 18:45:27 +0100 (CET) Received: from localhost ([::1]:42370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9W4M-0001oA-Ow for larch@yhetil.org; Mon, 17 Jan 2022 12:45:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9W3W-0001DQ-Kq for guix-devel@gnu.org; Mon, 17 Jan 2022 12:44:36 -0500 Received: from [2a02:1800:110:4::f00:1a] (port=57110 helo=albert.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9W3T-0004Qe-Av for guix-devel@gnu.org; Mon, 17 Jan 2022 12:44:34 -0500 Received: from [192.168.202.254] ([178.119.10.153]) by albert.telenet-ops.be with bizsmtp id jtkQ2600S3J72EA06tkQu4; Mon, 17 Jan 2022 18:44:26 +0100 Message-ID: <7a2e92a6871fa2e40b749d8e4bfc6aa811df0a22.camel@telenet.be> Subject: Re: Parallel guix builds can trample? From: Maxime Devos To: Phil Beadling , Ricardo Wurmus Date: Mon, 17 Jan 2022 18:44:19 +0100 In-Reply-To: References: <877db6ge0o.fsf@beadling.co.uk> <874k697thf.fsf@elephly.net> <87r19d5pcw.fsf@elephly.net> <871r1dguq6.fsf@beadling.co.uk> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-RuOVrMGjkteRHGn9xCAo" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1642441466; bh=PlGFpPTsy1zirLEtRbPS2YMPLGOH/0+4wDKS7HUQ0XQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=jO4+EKY4w+EGU2NS+qEVxmXu6Vv8HDoT3Ez85eEyFXAUgQWYrBK/URzsAkhp+onGT kiG/UIxcViXg21FIVDqHgufsDX0HW4MW59UAyLwkjDiIlaXXZ64Xx8nUjorToHl3c6 VVzYdTC+9Gu17pri4RWeq6r3QhqBeh2PTjP5+NFdYRtJhYQUYPQYCiHAgPPsA+I0WZ p5/elFX1vKFDff2wn4h6UCmru5amRPBufuVnH2SJFsX7n4HfhCBBT1wK+1XXN3fkkh iQRmYS8DaS6lf4QD6dBV2TvzKy1PjkwG6BJ+A5JXZBq4zpQboohH7Sa39/GvFNnU7V /RUWJemwu9S/Q== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:110:4::f00:1a (failed) Received-SPF: pass client-ip=2a02:1800:110:4::f00:1a; envelope-from=maximedevos@telenet.be; helo=albert.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: "guix-devel@gnu.org" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642441527; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PlGFpPTsy1zirLEtRbPS2YMPLGOH/0+4wDKS7HUQ0XQ=; b=hemoYZlXS/3k8Wh9bozflAgjBYjVpmlZVlMfHoTadlmlEiVOlctZyXr8u99lsimwbhesD7 ddvGTJYfWklhe6Vedofc6pq3sAUJlam+MhOSEpJ5UXjrazhJztoXfRZ7R8t3aP0f8J941s BZBz8kVR3qfvy7Y4wiyaIlhGgRsrvUo2qKqIz2BVxnUE70jNAg+iM5X96AdwMpS01BzR1q 0r90RRQz6Vq8M9uiBRhop7wl62ZL2cj2klTwG2oOoZzi9p4w+zrno9I49Yt21BudKNxgqX kjZDBpvaGNqFzEbh0yYekpc3Xh9wKW80vOqq4D8gtvi/BknjleuJBN2YN8EW6w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642441527; a=rsa-sha256; cv=none; b=P62RV9YrXTswYw8pEO+eG7zmUJK+3/HXyJdD4oKc5HtFVJBvOxNePYspmNfwGQ35e4z9d1 lOz5xOxpcOweq4G7mxr1g4RHE5qBDxqhlEMw0XVqU8kUhz0031jSMGY8/c0e3bKlIcN2ZD dZkELcddi1Re3JcPe3Y7OhfbodPXXyvbpXz9ovt1hbDt34IwoeFvk7JhSEdUhE1uJo79bh mtOzeqTjVTCXRbFVfb+hij+lOgRn3fGBJx5H/cgD8zu8MUyxs/GMmhLxYqsSDepJpmYrM0 ebGlsdLAAUq/I4DMYUEPRRUwL2hBrdfLg1wz+vgQnVMZ1tKttFsgDrYixNpeig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=jO4+EKY4; dmarc=pass (policy=none) header.from=telenet.be; 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.42 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=jO4+EKY4; dmarc=pass (policy=none) header.from=telenet.be; 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: 9050B10B35 X-Spam-Score: -7.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: ruhAcwJeMaus --=-RuOVrMGjkteRHGn9xCAo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Phil Beadling schreef op ma 17-01-2022 om 17:23 [+0000]: > For each build that is kicked off in quick succession the local cache > of the repo required updated by update-cached-checkout > =C2=A0* https://github.com/guix- > mirror/guix/blob/9f526f5dad5f4af69d158c50369e182305147f3b/guix/git.sc > m#L476 > =C2=A0* https://github.com/guix- > mirror/guix/blob/9f526f5dad5f4af69d158c50369e182305147f3b/guix/git.sc > m#L279 Maybe 'latest-repository-commit' and 'update-cached-checkout' commit can be modified to not use 'switch-to-ref', and instead directly ask libgit =E2=80=98what's the tree structure of commit cabba9e=E2=80=99 and ca= ll a procedure like 'add-file-tree-to-store'. That would avoid lock files, creating separate directories for concurrent checkouts, ... Greetings, Maxime. --=-RuOVrMGjkteRHGn9xCAo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeWq8xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iyVAP0eHwVHxEpv7OWLQPN7Mq9swoXd nYmGD7uSrrM0jQGaZQD/dNlBQV5juyfrtyY13ZZSGc5zgV8sHdQ0yJl6fsM67wo= =lZ7n -----END PGP SIGNATURE----- --=-RuOVrMGjkteRHGn9xCAo--