From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 20 Dec 2024 09:30:16 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f55.google.com (mail-wr1-f55.google.com [209.85.221.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4BK8UFU1014244 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 20 Dec 2024 09:30:15 +0100 Received: by mail-wr1-f55.google.com with SMTP id ffacd0b85a97d-385d80576absf1025422f8f.3 for ; Fri, 20 Dec 2024 00:30:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734683410; cv=pass; d=google.com; s=arc-20240605; b=bTfaEJmbgzMdC/sJLOW8fiv5nTh5KdPsYPlQu5p0xZm0dvKvLzhbT+2OMNk8/AA+9U +Nurg7EBVhOfFVnxaG7XWsojYb123o1GpFU0WBUeJzAeK74zl/P7aI9coFww5/nXjH7P cffUSfW6+88bAVrAI4gxSrN61WlT3VHquECf/eB644DMU7aEkpHTGJYmnWbEv2nC+dSs Bkk79WLZBbdf82Sc4+E3rztBkZWHv6rYuDs+VvlznLtiz2x1gCvQBuBrVM3B34sY5D21 gd6LMTboik/HMOMyR37vOO5j8LmojDTpAwFgJNwildedFTBSG3IM3YhJlxkkmjHX3Exb CsNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=w8AxU/h+Omp41e4y06P+j1PQlWTcVI97SIGBx0dtNko=; fh=9ITbijRFFCezwwh1JpkA3RQ9GMDB7uBdgsuozpeHP84=; b=bJFmqitWq1pp125ESK2XqOhzpQy+dlc8ROLKr/IzpMeHdNzlynZ+s0XZtxfp9z9zzC T/buQX8s00q61cCJPeKntwoMg6zJRE9aNim47a6agl7QsIy7hYRggLJEcPp1u/zl49LC UVJNlXXg2cG37CADfe0KuW65RroYxvOS5HxffQyVjuFeHsNbRm/7mjD0VMKJ6Cr6cwcz w3nxRMfPk4etVk8mYa86KZyecLPxd5Ik/804JafO/DMWT/Dho1u8/NTRufN+s2upoesK 90BFFlVuC22Y+DaqPsniZO5CXVlZee0qPoAlr3T2onkwqn6H0HQ2f9pRwx5OFKVdsqzI NjCA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1734683410; x=1735288210; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=w8AxU/h+Omp41e4y06P+j1PQlWTcVI97SIGBx0dtNko=; b=ltiHDUZMzAt2H5JNsX+0LAYaZ2NM8TP5Zgqd8pQw+K3fBGEfG3+//m19QPNG2Yfnif qgA3lZeH3PbBj+H3GcJyxuTC4fUUSi4eb/2vhXoLxeYZnL3k0nhoI75IHOXuawdtPGHM g9IoOOTV5SMKmV8Q7YfaN1Joq3EKUoTKqcMBZIuHvEbEw5mMw91MZFSeGaUzDakIVbSk 6Zg1jK/1GLbWrOm4QRqhMvXLf8Bv4SHZ8uCifhPzBSPmbOCkbBCPnI7r1UjMy2g4+5BO UIHYb3AxgQ8kgMCMTRp8ibrBvXvvZDg7tUlszNQJsacrOwTWuEYhkPnykkn3rJYvHaMI 00jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734683410; x=1735288210; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=w8AxU/h+Omp41e4y06P+j1PQlWTcVI97SIGBx0dtNko=; b=U9Wjl6LmKTtRTUNPRHSEuiaayoKYmGjAhrH4ph8wfD4Iw5ojmRSiCknbE2Ep8YGmuj gG/YOTpa03z8FwNnUkmMvLSQ9yY0lE82u6LymD4SWMfpKOLtqF6r0Fe0zFcPP56iYiu8 fIDAl5Cu2pd8ys3+qS7+DRdIsm6WyqzdkVWQ+mwXgfsG9pGKk3SQT4028z2GP8el/npj ipe1Rxb8YqhZEODZ7+JPiM0ElNqEifHAilALwU1XwJPRWX/gdYVq5ZknmoGW7JCPYLek ZIQaBQCoA7EpvQN5LDhf+20IPeke1aLT/DdwdlsoYUX1J/p0nFsOrdXqIJAI9Zbsjc0x tUPQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVgYA47+7TYofRB0WXKciYYl5jqS+XVkNxheWZxyezodgp+yuTCLHI3rTI3ZfkqR4K/SoR9@ilbers.de X-Gm-Message-State: AOJu0YzEukpbfIklbwPQ/nYfIDk4xs0nZT2vAc+2qfZ2BiazvYRaT+9u /uX2mrCtgca5WCsP8AO4UVUXVemTf/ib/qXuliMY0T3MCbC5DYgZ X-Google-Smtp-Source: AGHT+IGeFxb3d540M/87sJZlFn5gUfxHuz5DO/F5kBbCDph3ANv0Q60fIn5uYbKKyJjNVG6RnL1U1Q== X-Received: by 2002:a05:6000:4028:b0:385:ded5:86ee with SMTP id ffacd0b85a97d-38a224069b1mr1610952f8f.57.1734683409301; Fri, 20 Dec 2024 00:30:09 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:4996:b0:434:a059:b74e with SMTP id 5b1f17b1804b1-4365c51dff9ls11077345e9.2.-pod-prod-05-eu; Fri, 20 Dec 2024 00:30:07 -0800 (PST) X-Received: by 2002:a05:600c:3b8f:b0:434:a706:c0fb with SMTP id 5b1f17b1804b1-4366854c030mr19733965e9.10.1734683407304; Fri, 20 Dec 2024 00:30:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734683407; cv=none; d=google.com; s=arc-20240605; b=RWtnCD/WTxTqiZTNzec1wBiv3EC322/B+H+sZRZansoV8xr58NJ2MMqy5VE+iszviO Vl5BDVV6heq9TQHj1hM+i5QQKB//8Vbvwwr9EPI+MCO8g7GmoIs0BABSX0WoQZcBXC43 q76pz1VeXOwVnaZrDs7kvsxyl8znCyP8tokZ4zzf5GUFRn/3KjJKwGJiB0X0qIC4CKPU KfCjJImuTaa7q0cRJ41w5KnnEy98ImbOfSlcoMyJbgC9rGZEz34180n/3FcK4x52e/Qo 9OFBgC0Ui8wkTo8aNum1yQYNUwidQOdlKjdTS7EoIseCX69XJrsoTn70W7qRONabbtcZ 0rtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=4eG164PkEso5Du/Mib27yuTW50GkRU2XS+c7KL5NehU=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=bH9Cd8MX6QDMgSCKDJ+17tUmNLw/INLu+YyTWLZUTNNanr5MMFVk6OwL5V8fv+3Oa7 WOARXHC6rbcFefbLGrTT1brpnmPSZwk7r9qAVY8/edTFjvpTDUZp3gwTx2sVOWmPcr3t qiOA/F4v19N3F3iNEww4gbBEDkUvDqw8xrE2aAPPZOQE4J8oTPY1FZjiZUwnZEW6n32J 4YkTQFIUZLamdyvHskJGi24BI+uaH95i4KQankmdl/KXoc5catIj13iRj7nFb3qSxpX+ yUMLkcQKHZCK6kvit8WTmvJ82o/X0ZPuvYCB0aHuJMZNkLa1QGC7+nd9ke8K/uaoMvna 2FuQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-436633b9f5dsi1029425e9.1.2024.12.20.00.30.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Dec 2024 00:30:07 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from user-B660.promwad.corp ([159.148.83.114]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4BK8U6J3014233 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Dec 2024 09:30:06 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH 0/1] External fix for sporadic schroot race issue Date: Fri, 20 Dec 2024 10:29:58 +0200 Message-Id: <20241220082959.3123651-1-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: 8cH/CG3WjQvU After some experimenting with locking inside and outside of schroot and sbuild tools I've finally found the way how to made almost the same locking in Isar only without much build speed influence. The idea is to cover all separate schroot calls with the lock based on what type of the call it is: - Session begin and any commands in already present session will use the lock in shared mode, so multiple executions possible. - Session end which can remove config files and cause race scenario will use the lock in exclusive mode, so it will wait for the time no other schroot instances running. Luckly we always use schroot with separate session create/end commands even inside sbuild. The only thing needed is to put a little script into the location inserted to PATH. This patch is just a copy of RFC was sent previously with no changes. It was tested on our CI and now is ready to be merged. Anton Mikanovich (1): meta: Protect schroot config management meta/classes/dpkg.bbclass | 3 +++ meta/classes/sbuild.bbclass | 6 ++++++ scripts/schroot | 43 +++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100755 scripts/schroot -- 2.34.1 -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/20241220082959.3123651-1-amikan%40ilbers.de.