From patchwork Fri Oct 11 10:00:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Mikanovich X-Patchwork-Id: 3863 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 11 Oct 2024 12:01:11 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pl1-f184.google.com (mail-pl1-f184.google.com [209.85.214.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 49BA19PF008703 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 11 Oct 2024 12:01:10 +0200 Received: by mail-pl1-f184.google.com with SMTP id d9443c01a7336-20bb491189asf25397315ad.3 for ; Fri, 11 Oct 2024 03:01:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728640864; cv=pass; d=google.com; s=arc-20240605; b=Mj0AZbuwkAA+3VQCincFQKOJ7q/XzVkJR1pwE8D6oUP6RMqp8LvXO70qINFF7hcLvI QMz/+x8yQD0Q/t7YlSggJwpaQWLaYNDTiTN/1xnxn1G2MvEqi+0j/GqnbrVnhLgFdbgg 9U0HAUQ4IpFlQOVbbIx9WjmGRRmID7b8LXQnpWMshtm1A/zqKlhAWtXyoWdT8Km1LgUc p596bJN5KgAw/X3uyVVmdAolwc/IcG18sX7KvjqJDcmQxLUVhWuB2Rxczm+v8ip8asWU IgpluOlQCDL6Wy7cCqo8qhYNEqV7k7J4Gl62wvc4ndSyulfK1e0Kz2rfTFiX1++eEQVm m58Q== 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:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=ANPqhS7BVnBK8KVRMcnEINoqAKGrN93iCxCRWPiiOzA=; fh=ZSTnxHbG1mJ9XDQa92x0wRbMrzcbsVYeLHr+jvLLZ+I=; b=Y5rju4LT/ni9hXR4KtTpRHfO21pEumwrgwf5jXKEQ4pPMXMaGCGIForgftugvAzc+7 VH3JkDSdXI5RLd0CgYMJ8a8dRAtVayA65kU2aUMdQUJY4pGCa4yp8O40JHDmx60LqBNX tBw3GeGaEUNJyfEVfBwSE5q3lRl7QhGdOHnsc9xpzsV6GnZUWmxI2215X+RbY4rF74Jh z7OfLzvUbThL12ZXrQoY+8Yzo5blA3EslpYcS7cWVXAvQgoCF7+rNi4M05S3vC9/BWlh fhSmDWnWyU1Z5FjtX9o0QTYj3sb3Yha8g3fI4wURhl2l2yifgFRre359E1LzIbWZB+au HLjg==; darn=isar-build.org 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=1728640864; x=1729245664; darn=isar-build.org; 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:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=ANPqhS7BVnBK8KVRMcnEINoqAKGrN93iCxCRWPiiOzA=; b=JWJnFVX6iBtJX2aH96fbMB7xzXzrakIzHfyHRpNdSaeMQBHpOx9yxzaR7HGOBcE7li 24EH8RlNKwte/zpBl63FDxt71mcmvvGNW1YdcooGPKsCkuO9PI+9DbCVkP2HUUbrlg7L 83WDUY8wYGXM6oJoixa6Gzoy4BDCaNQLkmVJ+F1qilBlICMQ9kTUA6IMRtcxmGA4B0kA 3dq3QuQoBzjgJNfUudk3oRQjAr/WZq886nH2ZDr63KEM4YZtb8FBF4e0JNDuPa6tJRbK bO5hdt/VrE/TqGXi/vlCG3liy9E/M/6vimbrFUfSKzQwsizfyLzTynnADFVq2+osJDmU oRBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728640864; x=1729245664; 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 :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=ANPqhS7BVnBK8KVRMcnEINoqAKGrN93iCxCRWPiiOzA=; b=uAnVw0vRs9LWfO/L/oZDhQdvoccenG6tJy8uzFa5lvOwzXicXlXUrk0QAdwCj3AEV1 +gxxnoyTNT/VAjdoTtDVFE1g8QoXKl55PQ1j3JvM6oaVWLVVWgv0hTe62ZlQXzsX8/dv 3WJZjV6GbczZFwfbTZ0EQ2fEglE2sRnFalyqRiOVAqg5eh+cBXeojDmIMWx/n7ZXSMTJ hIwkhrDtSs5mM19pKnNZZXrJPQNfJiMsq7xr7U3zifns8IMiZn57/QzTFGW3s6GlRn3k zlZ8y/94kqLrFqYqm48Yu43vskE/eFtIcd4+jXkR8Z8ccKugM2NxJbLTNgebh8DUzhTP Z0CQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXlau3D5NMXwjLQFue3o9onfaXdi+dGLg17Yx7XJ/qBUbGX1SIq+LcGEInRGFfbdnHTB4rOD/o=@isar-build.org X-Gm-Message-State: AOJu0YxNCstcaIEn390E8ECKMDaj0N6PFT2Mwwa0P89njZE2teD7TeUw 4iPS6vxrScdzomdo/KtQya+P2FMPUX5Z2yMynrOV5SMdhZsdHYew X-Google-Smtp-Source: AGHT+IGfcj0kykpo7EbarddJiblG/C7Z9yig8n7mXKbmLn6AXzemjhk25mzc8fbj6p15swpWoWOI3w== X-Received: by 2002:a17:902:d4c8:b0:20c:aa41:997a with SMTP id d9443c01a7336-20caa419b7bmr11551345ad.34.1728640863618; Fri, 11 Oct 2024 03:01:03 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:902:f54f:b0:1eb:1517:836a with SMTP id d9443c01a7336-20c8069569els6884595ad.0.-pod-prod-06-us; Fri, 11 Oct 2024 03:01:02 -0700 (PDT) X-Received: by 2002:a17:902:ced0:b0:20c:a498:1e4d with SMTP id d9443c01a7336-20ca498217emr23127625ad.60.1728640862433; Fri, 11 Oct 2024 03:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728640862; cv=none; d=google.com; s=arc-20240605; b=OGwWDBpjtBf9JrlfIJU+Bn2aCY6XKFeJBcXd4cdgKUYfReUploGDJg5RN55HLfAW2S jdWbrXGkiWqHrSt3POYTIYWm8AnsZWOvxAi+5yw/AQTul9Zqgc2sndboxoV3LJoKC7w7 GQZtx7lrYH76ZwZXPAg1uNue1ikHsO6i64nHF8Hv1l3GtZtPMfkuHFXuhHfvhjJ0S4nA A99qWdtnt+t9db28bn6Ls3uJVRts2XdYf3NxsJnAiL2TkMEvM+2luMqKdp1ovyDdwIvQ 0tMy3XKhclLhUYOHSzT2kUnGGMvHwXhNwksL5Jd+dvGZP4+CIIagqeo1ONFBBS1fsBOP YCGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=NaEGP3P6XxEkBgmpg8JB+thxTNG0P+egjcJqWTY7Oy0=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=lSVy3vfTVoEeRS4yPbgKR3vDpet3ReqYqpMKCGzZW+Cc7Mqqu4YQTYvubKRJPHlGJT r3TtXRihnEt91Crb4EJ4ECXKu6B5MWkwjQQXHONN95nKtRY+o22m1CHVDGmPx8Mdd319 pFtFHplC7Xa7deWW5h6ZRzTO5CFP+3v2hA0Mt7EokBDfgOysUSRfFlYe+DzsZD+MygPf pmpXcLJRPvGneXrOyRphX23ExKxcbhS3Pd0H9LBl5s9RV3dPmNbjwvx1+ETbXkes+n7Y y7wJ2hRT9NeYJ5/Q2XxIErHjbsQnGconGyawLaBFULwKcAJe5WynuENXYuFKw+587OnJ g7Aw==; 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 d9443c01a7336-20c8bbfb14esi1250585ad.6.2024.10.11.03.01.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Oct 2024 03:01:02 -0700 (PDT) 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 49BA0vWK008632 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Oct 2024 12:01:00 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v3 3/8] CI: Pass ISAR_FAIL_ON_CLEANUP from environment to bitbake Date: Fri, 11 Oct 2024 13:00:45 +0300 Message-Id: <20241011100050.322686-4-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241011100050.322686-1-amikan@ilbers.de> References: <20241011100050.322686-1-amikan@ilbers.de> 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_H3, RCVD_IN_MSPIKE_WL,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 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Setting the variable to 1 in the CI environment would make the job fail if any mounts are left behind after building. To test: $ ISAR_FAIL_ON_CLEANUP=1 ../scripts/ci_build.sh -T dev Signed-off-by: Anton Mikanovich --- testsuite/cibuilder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py index 0d0de99e..9fa3d86c 100755 --- a/testsuite/cibuilder.py +++ b/testsuite/cibuilder.py @@ -129,6 +129,7 @@ class CIBuilder(Test): # get parameters from environment distro_apt_premir = os.getenv('DISTRO_APT_PREMIRRORS') + fail_on_cleanup = os.getenv('ISAR_FAIL_ON_CLEANUP') self.log.info( f"===================================================\n" @@ -204,7 +205,9 @@ class CIBuilder(Test): if sstate_dir: f.write('SSTATE_DIR = "%s"\n' % sstate_dir) if image_install is not None: - f.write('IMAGE_INSTALL = "%s"' % image_install) + f.write('IMAGE_INSTALL = "%s"\n' % image_install) + if fail_on_cleanup == '1': + f.write('ISAR_FAIL_ON_CLEANUP = "1"\n') # include ci_build.conf in local.conf with open(self.build_dir + '/conf/local.conf', 'r+') as f: