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; Thu, 05 Dec 2024 16:53:30 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f63.google.com (mail-ed1-f63.google.com [209.85.208.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4B5FrUpB030372 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 5 Dec 2024 16:53:30 +0100 Received: by mail-ed1-f63.google.com with SMTP id 4fb4d7f45d1cf-5d0bcd51932sf1083263a12.3 for ; Thu, 05 Dec 2024 07:53:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1733414005; cv=pass; d=google.com; s=arc-20240605; b=W0D5gYq7uQGS6TO+/YNU3TNeJFSp/34PSDAXrrETdGLEvgJaH2Xcnh73bH2/fSX/cl iDLnO/jEUgpbDi4J5N43LDxGZRiOC6pnDGUfxjQfl3AB9Wx583bYLnsU3ypA6i39WyI9 KN1EBXj9GiIOmnLZJ6RoIb/KlYW3GMyDvncxMQq3/f9dfJmai/lYw01hOoJImpzS0N6r wHe45zkZqXQCPzpcsr4yY9n493ZHDvOkSlKbuZEkB12mmWGTmeiAl/Po8upng/iX13oq yd09K5Addw8yPV+SBpNENBhe9BqdDCYoeGrf2G9hRs2FxZwxBpgovmsZl5sgkcbOa0ky Of7w== 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=7KGDtcnoUR+85kn1a494WWsFKSsDkvhwFRBUOUAjDWg=; fh=NF1Va0LpA5vFdl16Nvl5yBRUbYgFihI/UWGdP2iKR2s=; b=Cz3iYn26SPWP+9Gr4Ybu1kjEjs3GfwO6LG+ht8HRGiAbALclYvOJ7wcl+Q1brbQ0Zc pWHfp3g4WwLSOAaA5/BSsDWAryFJD9P0L65vFWMVydAqkkw3n3QM1XiHk3bNlPIbYuFL GK+iUBaGSnGJBkGemBdCqeIlgoM7FmvzhjTl9RN0xWo65W8z09oVy0UBndDxPJSGhBwF aBVBqn9F79wED2sXXqRWayyqs+ibOmV9XCOf0pI30MGYcAEXQqKMy6RKABQvbJkvst1L nV0aiZ8+kaQL980tcbpw9J8cI4+UIXoa3lICxZQ1l4RU191BdgzotlTR0Sj5qx11dlU3 XLVg==; 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=1733414005; x=1734018805; 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=7KGDtcnoUR+85kn1a494WWsFKSsDkvhwFRBUOUAjDWg=; b=Q1I36oQ9NzA7cLKUzASr4GTlLSZVamEbFo2u/Lt2eT6OES2xg+SbxHmeydEVIO3Ncj mZzNo9JIz0yFjy8qZbWaZBIab9AttjZxjYHcxXgAti9VzVjs0p4HDqjyufJ/Tf3eTpsr HWcHx5V4X5/qU5cfd6FmCOmzufRp6Tck+apVREARmXFr2MhnFiuhAW/czXyQbqAdjzO1 q9Vb3XrZPXcZX7+x/fumw/eFPtZc+RYQMLWVr0OlE4xJ/cs/p8SJ4ZlbM3oEDFRNVQ4l pnX4ilEAr+p3D3J88wtnr9s/lmP5Nr033oKk5fApCJdcZbxWTPlAdv4c/zPx0LqJC6Rg rzsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733414005; x=1734018805; 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=7KGDtcnoUR+85kn1a494WWsFKSsDkvhwFRBUOUAjDWg=; b=Vz9w2S1xMbRZxw9ixxogUE0AmEy4P+DXrBcX9BQetFmjqZkWTwUaf8s8hbb8zhC+i3 5SDx4xrmqo62Nt23w+yWk65inZafejo7UcEP1JCNxvqKVuHwxy6Htq/nJOefRwfgln8z +uUxhjW7wlbQdrSZpy845i7V/xVdNSfJU+/I37sQ6+G1Yt5R4HPmjf3Zw4MiDAPCOh+U NBy/axtkfzs9zXxTeCpa9LdcsHfYTfsb2jF+IDql0Yu6ObsPBm9AMQhktx/eIw/LzY10 I8KaGo3Cgfy3RK14gd/d5MYPmV4U93WKpF/j05tw+4i3tc3iRJ4jfOgNVtdFy8J/drqh +maA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWESbv+Mn+0D5jL81yZM79CoWStCZ5Bah9/vZZQT8hO1EuzFzCZp63mWeqzeD7kaMIGaWbm@ilbers.de X-Gm-Message-State: AOJu0YySjcXWTENe1EYNHUqzQz6qarsWiPGaR04NF/hsvSMaeNYhGVfB D8VFyzaBKqkX6tBaz67q+XbDRQ/GkJJE5ysbLXnu4NSUMWAcbMW2 X-Google-Smtp-Source: AGHT+IHuAsFcfwvGZhEy3pOdsELFHvMGl2WrE4xXHUfu0szKi+tW9F0idQDvBZcOR+n1Csz1F9DyhA== X-Received: by 2002:a05:6402:3405:b0:5d1:2677:b042 with SMTP id 4fb4d7f45d1cf-5d12677b0e4mr2784240a12.34.1733414003572; Thu, 05 Dec 2024 07:53:23 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:c0c3:0:b0:5d0:bf2a:3cd7 with SMTP id 4fb4d7f45d1cf-5d1251fbe7fls27506a12.2.-pod-prod-01-eu; Thu, 05 Dec 2024 07:53:21 -0800 (PST) X-Received: by 2002:a50:ec91:0:b0:5d1:2290:c623 with SMTP id 4fb4d7f45d1cf-5d12290c6cfmr4422868a12.7.1733414001325; Thu, 05 Dec 2024 07:53:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733414001; cv=none; d=google.com; s=arc-20240605; b=TgR906y9uGZc2NBVW6ck4J0+GpaveoBXZyLOPgCZ1qGTNUdnrEhwzBnGs1D6gftPRR Mqd/P6RzE1v7IXUjnu4ZgKm/olmvoTOErL50VFwoco/0iKnl4v8FZDF8ALmf2oyTYjq2 cACuRu7K8Ow99lS54prDM4gsoqgcc6iFNaMXCbhJqFI7cbWuYW3ojN0J3zastbOQxBrj MMDZOlyhp11EJP6dKDKR+G0iaswSUzFjWDpNeFGtsZWMJZBPUgyXm/QgxhVFh6CrbKiB 24N7UIeLpBrIY6HMYLeI7zeiiMCZ8CHDvDn/3eP7fSI8CkJMsx6SBdg0slpyipfJTOUE QDhg== 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=hMI5LRDDML/+3kfaRDVxwO8T6I+DZYeYJtiNTXIU4/o=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=PYmeyM+dVrZKeTBlFgB/YU99IN2GreV6g0skVl8UfPn8Lbhafnj+ML4UpDBZghORC4 W96RpF4dB0LzeQirJS8EoQ6MTvHM65TKcUK7LjYSxJtJLqzRTZqrkJ4RvNMdzjpKH8Nk CgO0o+oaEM3PretGpZOHVfareH/0SI+8urgNW7eOpWzw5jLB1fe68hipJ82dlK7n+/59 Wcf/T9uj8ifmHYS11jubVICRTczydOe4XK0wKkpGikWJXbnBQIRKe98EL1xbQOcOXsDL 5jUPvOkYPxWphkQhaB3QQ6xhmnmAxPFE6kLnHNtNogyWFogRxKDmeFOX+cefxePcyGmm AD9Q==; 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 4fb4d7f45d1cf-5d149a47d7dsi27754a12.2.2024.12.05.07.53.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Dec 2024 07:53:21 -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 4B5FrKI7030356 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 5 Dec 2024 16:53:20 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [RFC 0/1] External fix for sporadic schroot race issue Date: Thu, 5 Dec 2024 17:53:11 +0200 Message-Id: <20241205155312.2373479-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: leRbLOtM2xxK 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 not tested yet because issue reproducing is quite tricky. 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/20241205155312.2373479-1-amikan%40ilbers.de.