From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id qFg5FmorWmaMAAEAqHPOHw:P1 (envelope-from ) for ; Fri, 31 May 2024 21:56:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id qFg5FmorWmaMAAEAqHPOHw (envelope-from ) for ; Fri, 31 May 2024 21:56:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=r7hbdCjg; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717185386; a=rsa-sha256; cv=none; b=og/JAT8cb3mCSJU9HmhOVWMhWQronu4VNtjHV+/gr+tJ5N7UiDAB3dqdxgKQRmtHZPzT7p NuaXh5yUjjTcjjDG/8jSFZwzqM/fyczn6ku9wDRidrjBdck4z79cxYoQy3zLgkkLA1ENhX UXY5yq2FC15y7diu00azswGxGL7Z9BKS6Ota9r0snVscnhF9+XxSOOg7x2i7lJw32dCiX8 vL6BBquIpBCK2vZhEy1R56u7ZpTLIYiojSO8yLLMWT3FlYhKwDEAnbpzdbF7CHuZH3HzSE 6pWhmdabvpjBjU6OlN6lLkdyuv+ytSntbivQhhNJaWIQA1jdOrOQXucsd37rYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=r7hbdCjg; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717185386; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GfOgRKdb4dMFNOudKJWjOaDRyyKgk8DN07oaUqGwsuA=; b=Hf+irN3onPTfNYuf8Uj6XnnjYac1vOja/O646i7tATClKXg0kMP9T0N4kDi7UnWQTZ2aXa c068Mrv3PEWnPUUZ81W2vqQX/zXiI3W4wqMvP7m3lbyPiBNcEbdiNNizSsjD7Q73jnFjXf 1dCwqaywuM7zYBFGQZ5k8S6xlwIOUJ28NCY66GFSdOFrUFAagwLixH9W0bE8R0gopRI1v1 0v+z7BTI/DBC8lUoF1HNRoVOu3gAYYyj6U3VAXFz7GyxCTy/ekmPpZzIum+cdU8gTbX1Cg eYJGehXJs+hLwEN1BBAuGnnhfa/BU3kKloe5pokiGQFp1quhBaFVsYiQYBVV5g== 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 2966A31751 for ; Fri, 31 May 2024 21:56:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sD8M0-0006F5-Aq; Fri, 31 May 2024 15:55:56 -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 1sD8Lv-0006D4-If for bug-guix@gnu.org; Fri, 31 May 2024 15:55:52 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sD8Lv-0003mV-2a for bug-guix@gnu.org; Fri, 31 May 2024 15:55:51 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sD8M6-0007i5-2d for bug-guix@gnu.org; Fri, 31 May 2024 15:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#67988: [Cuirass] =?UTF-8?Q?=E2=80=98request-work=E2=80=99?= responses received by several workers Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 31 May 2024 19:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67988 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 67988@debbugs.gnu.org Received: via spool by 67988-submit@debbugs.gnu.org id=B67988.171718534129583 (code B ref 67988); Fri, 31 May 2024 19:56:02 +0000 Received: (at 67988) by debbugs.gnu.org; 31 May 2024 19:55:41 +0000 Received: from localhost ([127.0.0.1]:55393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD8Lk-0007h5-Ph for submit@debbugs.gnu.org; Fri, 31 May 2024 15:55:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD8Lg-0007gl-J0 for 67988@debbugs.gnu.org; Fri, 31 May 2024 15:55:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sD8LP-0003jY-Sn for 67988@debbugs.gnu.org; Fri, 31 May 2024 15:55:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=GfOgRKdb4dMFNOudKJWjOaDRyyKgk8DN07oaUqGwsuA=; b=r7hbdCjgP1wq6qVTRNwE 88hC92Wjw5IEfr9bC5mcgd6DeBXARPG3QMmMi8jZV8uxMxJimqZbpALgK1zotQeRB3hXJTT6qc4Zk e078EuxKJnCjBnB/X3TaWI9C9BklsLFSmTMiKpl5eYZAZagv656/+JedGXC5GgqgXKrRAK/Ih/5QW 6gC6IGduDomWiBVQDQM9FtWOxMJPVHDS+WYuuGdQyqPmZXm63IheAKtvYDRRCA96jrsKPBX2sAiXa 50pz8Iq3Yv1TCRmuaCi2/9U2VuVmcpx1JBo3RwIKkfhE889/1p1bVMHQJF7rzhC1RrIMUGjGrhNdU /ZZsacZUVgSSKA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87wmt5704i.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 23 Dec 2023 10:13:01 +0100") References: <87wmt5704i.fsf@inria.fr> Date: Fri, 31 May 2024 21:55:16 +0200 Message-ID: <87ttidrc2j.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 2966A31751 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.50 X-Spam-Score: -6.50 X-TUID: NiPTpwcBxL4P Ludovic Court=C3=A8s skribis: > I=E2=80=99m under the impression that sometimes, when the server replies = to > =E2=80=98worker-request-work=E2=80=99 messages, its reply is received by = more than just > the target worker, leading to builds being performed twice: On closer inspection, the theory of the message being received by two different peers doesn=E2=80=99t hold. Instead, I believe =E2=80=98db-get-pending-build=E2=80=99 would return the = same build at two different points in time, typically while the first one is still running. That=E2=80=99s normally not possible because the build=E2=80=99s status is = changed to =E2=80=98submitted=E2=80=99 once it=E2=80=99s been picked up. Turns out th= at, due to slowness of the query in =E2=80=98db-get-pending-build=E2=80=99 (fixed in 17338588d4862b04e9e405c1244a2ea703b50d98), =E2=80=98remote-server=E2=80=99 = would sometimes fail to see worker pings in a timely fashion. Thus, it would call =E2=80=98db-remove-unresponsive-workers=E2=80=99, which would reschedu= le builds that were being carried out by said worker(s). And that=E2=80=99s how we w= ould end up with multiple concurrent builds of the same derivation. I added logging in c2061ca845d05694ebeb88935a6ff2254711beb2, which should give a hint, should that happen again. Ludo=E2=80=99.