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, 21 Feb 2025 16:49:02 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f56.google.com (mail-wm1-f56.google.com [209.85.128.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 51LFn1OG015909 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 21 Feb 2025 16:49:02 +0100 Received: by mail-wm1-f56.google.com with SMTP id 5b1f17b1804b1-4399c32efb4sf14471335e9.1 for ; Fri, 21 Feb 2025 07:49:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1740152936; cv=pass; d=google.com; s=arc-20240605; b=XCokb8uxz1LfAubGuPpn9MmB7Jt1dqzybdeabcy/UxMPV/hR5ihOKVsodV3SA0dloJ a92/G7LXec5N5GuLuHuvD14PtqKFwOaECHPNEOdsh/EJVB7LSI7ptHw0AZ91BoVRvBpF cx3bPY78eLEU0kF3YHDO1piGZ3Y9RE96dBOf3Oa1WgysBuiPyRh0ScwNsOXFQg7W/CFt i7EALhnILOICJnUy9SlIp/gqZjpLbPX5ogvDfAM09wG2xTEY4/ACTuns8MogVADjmAbk tqa5C4nwuNvyjesSGWBJ4KhpD7snyOVWuLFJ43+0wL/wngTjsVg3+0WpfGm8jcHHpc7x F7ZA== 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=XuHDlrHZTPRnoJr/0VV0Xg5vVdYmv81tCnxuFurkcMM=; fh=FqxMItLA4MNTgrKHFx9xQrdzYzLAr/2+ftVNLPC4VsU=; b=OTq5cEpQ6vIUC/xgvo6P4+ULFWcvIRWNCWyzamEAY2J9jR2DSMfkvhQls+S/VtsqTm 5ekmnR0bjty79oDj7FD/bOvtpTFffQxdoH0NzE2TyZlaci+qK1mYJhg2sZZQC1SjKKkZ pZX59QU5e+QfNIBSol1qvOHw3cYdV0U82+zpFKb57Yj3q0TTna7ncwzoxxCLm64khpsN C8bDKFN84BLlRgnPXzGNZpy7WEeJRNe6kJUD4TnqlG2FRF3s2VsG6i1xh0/I9WDhQ1iC 0wMqK3hUiZuYpAftOdssZWr0FcUwj9NSQFflVzXMEN4SDYAo9qOstw4NhEQ3SKe0poC4 5bKg==; 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=1740152936; x=1740757736; 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:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=XuHDlrHZTPRnoJr/0VV0Xg5vVdYmv81tCnxuFurkcMM=; b=fJevsl/o/GWeUKLYMgdLei6OGPpoTrLUqqkdBSKoyWmmFSW8+7EY+gejg9EqFp8UOu XFLhxqURn7YVrsDK0G7e1OrCHfdLxhK2/w4F0VCxVsWfaOX0kPYM0DolT4Mmguqadsjt tD0udy6TGq8r5xvk/NOJcOVmLaxbleYPmnQVbyLab+MtCwAr4Jt6I14jWmU88/NUPNCr 8zM6tO2Y2B41FQyLxV+wU6E6xuwer8r9VrhwPDhHv/k7qjkiz20wNMqmFrYBDNj9dkgx cZbdk5dodttuIl6ZBE0Tiw2hNFsu2IEVy+2wI+zp+VEqNSjBZM6TyqMoZpOXMXcUN9aD TOtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740152936; x=1740757736; 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=XuHDlrHZTPRnoJr/0VV0Xg5vVdYmv81tCnxuFurkcMM=; b=crptY4Jr+dJmgXUkK02JOQSRNh2/JzfTXdrVl8vbSZe8gkRP3yqx3JE3Jyb98ZtDSZ y92DQayhc91L7SttTPsis+2AkqJSpMkK6Vlo3j4Mcws11bKJvDoAfu4oQxI9QlE11yiJ IFUyozcLTTuFduWint6AAS56bFPrXLb37ljPV2GTP47cM0QhsHnvaBoywiNCwgYRzU0S OqH0mwkjRRQszq9xbg5ET1Dybl7K2eS7WvEs6ERyn4IgWovAgYsmRIDETtQp5wSdzOT4 4zSa4W4nbvnIioWJyQikjWqHQGJ6Zan63RwiRYoC5KXP0O2Ed6NcWx0BjRKT57MCOTVw ixHA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVcNmSaujudk/QeH4pAmmeGBGecSboebvRxYYD5p8+dkzCTOfiTegv0PNKX29ny24Qid+XA@ilbers.de X-Gm-Message-State: AOJu0Yy3FSxaPIXcEHHMA2YOWNJZPX4m5uwBAIHvCMMehD+0M4BSU5/2 G5MQ+bo1/o24wv54r88frYFVJwMbiJBmUJv77vDFDqUBMQlAn/Fh X-Google-Smtp-Source: AGHT+IHCPQZQp+tOHV/mUq9qYDr7x5hjyxaXzs6TEvq4u+OlFbZzCA1+Wcg2ADJhw8HWmFdam8Uc1w== X-Received: by 2002:a05:600c:3b1f:b0:439:9434:4f3b with SMTP id 5b1f17b1804b1-439ae2eb6c6mr29951375e9.8.1740152935124; Fri, 21 Feb 2025 07:48:55 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h=Adn5yVHEHa2XEje/ztwlvcqDIWn7g3cast2Y3GnsNprbDWZDGQ== Received: by 2002:a05:600c:3015:b0:439:8aa2:645c with SMTP id 5b1f17b1804b1-439a30c0316ls5614285e9.2.-pod-prod-00-eu; Fri, 21 Feb 2025 07:48:53 -0800 (PST) X-Received: by 2002:a05:600c:4511:b0:439:5f04:4f8d with SMTP id 5b1f17b1804b1-439ae320687mr27417865e9.12.1740152932915; Fri, 21 Feb 2025 07:48:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1740152932; cv=none; d=google.com; s=arc-20240605; b=hEuuYGwn2m2FBoyAFXs51H40o4V/J9Kl2CKKcMgpvaZ2XPoz/JB4Y1iGugxKm7wZd/ 6dBUOE9DEAwSKXyUsm2fD7+U1IrFAHK/EI6PkPvVqT5+QSHlsM98TY4McpxaDWIiyzQN CzTfDEyyZZ36OhgX2EippEyTHJMOYTjA1HezurxbquaGW0TmzKtzFXeCRwkjZit92FSh xgDDqj3ZCVFdk2y06dirbDhW6FM8UrFLBaUAOwIFjtX5jdZkL3EX+FmUeX4zo+PxMLun qTSOQdlKqBnRr/NM+deYvrzBLRQ/s7YGJaWjnWRraTPiS7AdmHxPXfgj6vf+VaD6dI4I +n1Q== 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=+T9uGR8xfGPxQwZjLwT4ud1ExA0r3KwmzSRxaI3xMYw=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=ko3NG4PMYmUTAr72OIDKxSJcA/cQmYxQTf5TVOphi+Xer1nPyy0mMo92sJkQHU4YEZ kmylCSRwtvP/4amyiONvmlrhcZosG/9oBiJcqln9PetnMcHsIGUnsUf9TpmIiMMYhpBW FkwN8sRfzjmnFaB56b488U2szdyvrtpOByP3IXVKFyamLPSHUx8yV+NVRfGcFps7Foix YzaWtxjbga9dYF8W08/JfKtA4eySksShPPaM2OvYfUjAA/g9v1XklI2Nb8x8CMqYBHig 8CSlUETCjJq6/cJ4BbKfL+bV9qpl28B1LIx0wr/BCTYJ9OWxbApVoVPapImZ47ax+Cje 50qA==; 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 ffacd0b85a97d-38f2594bb55si253143f8f.8.2025.02.21.07.48.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Feb 2025 07:48:52 -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.123]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 51LFmn2p015858 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Feb 2025 16:48:52 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH 2/6] CI: Add API for sbuild hook insertion Date: Fri, 21 Feb 2025 17:48:39 +0200 Message-Id: <20250221154843.515037-3-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250221154843.515037-1-amikan@ilbers.de> References: <20250221154843.515037-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_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: c20icqMPqGPc Custom hook will be added to dpkg.bbclass. Method will return the file name to be restored after the testing to be sure the sources were not changed after testsuite running. This API will be used later for build dependencies checking. Signed-off-by: Anton Mikanovich --- testsuite/cibuilder.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py index e671a4ae..d335dbe8 100755 --- a/testsuite/cibuilder.py +++ b/testsuite/cibuilder.py @@ -339,6 +339,22 @@ class CIBuilder(Test): cmd = f"dpkg-query --root={rootfs} -f='${{Version}}' -W {package}" return process.getoutput(cmd) + def set_sbuild_hook(self, hook, type='post-build-commands'): + append_data = f" --{type}=\"{hook}\" \\\n" + + layerdir_core = CIUtils.getVars('LAYERDIR_core') + sbuildclass_file = os.path.join(layerdir_core, 'classes/dpkg.bbclass') + self.backupfile(sbuildclass_file) + with open(sbuildclass_file, 'r') as file: + lines = file.readlines() + with open(sbuildclass_file, 'w') as file: + for line in lines: + file.write(line) + if 'sbuild -A -n' in line: + file.write(append_data) + + return sbuildclass_file + def get_ssh_cmd_prefix(self, user, host, port, priv_key): cmd_prefix = ( f"ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=no -p {port} " -- 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/20250221154843.515037-3-amikan%40ilbers.de.