From patchwork Mon Jul 18 22:16:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 1990 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 19 Jul 2022 08:16:57 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-io1-f60.google.com (mail-io1-f60.google.com [209.85.166.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 26J6GteT013792 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Jul 2022 08:16:56 +0200 Received: by mail-io1-f60.google.com with SMTP id u10-20020a6be30a000000b0067bcbb8a637sf6326647ioc.3 for ; Mon, 18 Jul 2022 23:16:56 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1658211410; cv=pass; d=google.com; s=arc-20160816; b=zd42S/ZdnSS3j6qFEcOnlS66OTCgsu3V4tElW6YnVwno4UiyqPJERYa9SZTAnfmZEf rB4dvhWujYqyA9RmdFVjr3fNo2ZfB+sGP0nDrrbspAPbpT+Z4MdKulDX9MnksgRPA7Wp aKFxsw1RBnRfTlL93BHpCj1Q45cG6vpvlQFpzPm+5HzxbygWdZau1vrmqJps37i36Zhu rrTIwJHgZoq600i56vGwQ4+yO9BbpHvKUa5f0CRqVh/TGCI8gx6CQ8UsjdyHTtvRNydv Usl9J2v1UjxtzqrAz7+rPWYDFZjXzryvnb80vRtm6m4u6obfcv+WmDwsx4O0vxRsOMF4 5wsA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=Q61U9rfNAUpob7A8OJZ9EH6F9aXDUgOFBvrsBEbp81w=; b=pyIvOUDafJ+BlsO1kitDv7XM6QgtIiH0E+uTR0AJWV2DRWMeH64+yMvZjZBcNGAuW7 3HSwXZF76/S07stV5xwLl2FVDndznbFJqpUbaOPWorN7FKsz4FfI1NFiSX2tzf+hZKki UlO0kxG1U3+fESSBGEFZXkSt95f2uOeAcWL7M9PcQEnHrraqir6IEcQDpoXPEiLlQ6g6 92kQqCiCHU0iIZVVxDlUc+GE67sUpo5Ifu/O/p7LlxglLrcEBBZNsXAsH62cf+Ta6KZX VesQIwqq92wDPM0tLAU9giR6++8pq/lR6jNDBF53U8WC2lC8mkTwg8c+vG6x5qqKu68L y8zg== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=ARctPyxV; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.8.43 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Q61U9rfNAUpob7A8OJZ9EH6F9aXDUgOFBvrsBEbp81w=; b=kCIDq0vzbORywfm5pRErpb0rWZrVHu8+Ghwgfsi6cLxOm3wFsifZ8IRMZTsuzoRNdc gT2us59J34RpGCatQeC+7tDXMKAEKP9RAUe6EuEN7KRPKQCsTe87s6vyxOHZYfoVIcUv xmOTUwRBlttlgmspJbbb6MlUg1iApqwthv1vV/TLwzTjIaeOUBv0U3mo6Eo9aW1d9Fp4 x3dr/joQdUUNoyS18rBqJwhF9BYTHwUzG8Jnb6UTRABZuhEVlXTKQS57MbKmyvwYL6Hn oXri+qalFUG24LanvJTfG8KY9fktVPp52aT+Smydil3Ua7kK8d+RRTI1uyOZVzxHpbZJ doAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Q61U9rfNAUpob7A8OJZ9EH6F9aXDUgOFBvrsBEbp81w=; b=36NnIPd5yOOJlJCW7VuLk4fr/Ljy7KV5UWgkA4NjCbLkArQwPnAFYI7xWcAsYtcNzx efkInSF6PDgDMzglWDtbOB2sXk6E5/r3nDoF9roGfjevG5hAF3boGDRrrFkhzZAoKNXu yjQSRXNRJV7kBLTcjXElsp24rjLPYTwMaxJWfSb590oCrtYa2hMRpOMeBR84E0PZDwxf OcdTEQ4G9yaNV90rp5rG6GPDXrfL+tCXh5TnUjSWUnlY+HkHLPbkxIkLtNkFWRltdJbh qBqxLOOrxSqk8JoZ5K9NOjT0yWxdLc6aMLHciZoymGebz6W08Yg6+THDdRhsv6vnheZ0 AdFg== Sender: isar-users@googlegroups.com X-Gm-Message-State: AJIora9fMtuFOo9eeUCqITigPZi+2XqzyYS1sZXISLlGJsAcIIlwWZCP 7p0JUduLTueQG2uI79s3B0s= X-Google-Smtp-Source: AGRyM1tTVnj5oVe174t3mJyPSYoHg5cBtx2qfl+Dk1V04ldJu8VvMJ4v3ss3tiMAIQp0CGfOfp071Q== X-Received: by 2002:a05:6638:379b:b0:33f:6a8f:cd22 with SMTP id w27-20020a056638379b00b0033f6a8fcd22mr16250490jal.102.1658211409867; Mon, 18 Jul 2022 23:16:49 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6602:3402:b0:67c:2a0a:4287 with SMTP id n2-20020a056602340200b0067c2a0a4287ls137885ioz.3.gmail; Mon, 18 Jul 2022 23:16:49 -0700 (PDT) X-Received: by 2002:a6b:b40c:0:b0:67b:e564:f977 with SMTP id d12-20020a6bb40c000000b0067be564f977mr8714414iof.130.1658211409346; Mon, 18 Jul 2022 23:16:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658211409; cv=pass; d=google.com; s=arc-20160816; b=EW6DSjGN4KHkv6x7skCdColk00rt0Vl+lsxGVzvgASxkyf/1bQFA9R+2Ov3l6q4Exk Px7WeiNUBbKz+mIfN8JhqVeouTO1oHDRLv5OtjXlID6uwj+9qzhZTvzbkadvZY7Y8IE6 M3rGVNbt+o6YnhklZK2fR0vbdx6olTJV+xlBh6Edq+9WJDBfPzqwCrtQDAe/wmQXBsow t1aOMOo+QLNJZpDFY642jW9IyP7DlnsztFD2QD1QhAQyTCK8pjKmlKRt8T2AMvigw1Rh l9gPOCfbX0iIvEJFXXg0M/MqA+jEJI50ouDWj6d7L7WVkaIsp7Qn2RCXLwIo2HBABTJi e9iQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=pN4TUJ8PqkXYpR9AJxQqajXgo9bc/saWQsMQrRlJXBE=; b=E3lpTsTaf6AOfLOToqElPNN/e+iHjbNT8j6S7cpEYaab8ziEVu+ow9OFjKY6pT1Vej KaCI3ba7xNX783te+6fgI+qqmnLaCd96k/5yh++91uY8ZptBtkSgnM4MDmH9VogpvW5+ RzsQOi+ayNDUatTpCAvAgYbmbPAi8l/jrXpqyBxoHvW+ohfRCBn4I/GpYzhIAmLOmmj4 yUfPCuTF3/ipxNjFftb9H9E1aplOuOS4huwTs/vYPATx8g///Xxkx0mimiWEQ6Wnrqon qL6oY8ppgnaPii9popwzln+E9RT++34+ZoG2yiktkQzr4cZPxF3+QnsNM+it/R5c8VNf WpnA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=ARctPyxV; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.8.43 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80043.outbound.protection.outlook.com. [40.107.8.43]) by gmr-mx.google.com with ESMTPS id i13-20020a02ca0d000000b0033ecc2a8230si679320jak.6.2022.07.18.23.16.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2022 23:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.8.43 as permitted sender) client-ip=40.107.8.43; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JWZ34GDossVRr/GY/AILkxWURsZDKLiJheNofjr9PTDbOdKL/ali1F7sUQkvEaC4saM8zah5VlTEC+sgMbRiDZtJ+nK7WBJv0f6zUq2F0QjXstSc6rhMV8BeshMTu/4Cwfk8BoxaUNbrtWlzh8useDRgvxNOl5LMNXL19/c5g3Y64+a+Jfb0zktCIDlBKR4THfsfzS73OUG794zoutR9Qtf31yxaLtNtlU4z4QAAxxKxi4h6Nslz2hNTTe10kWHwabSJrEDrlxx3ntoJOysDRX2QWI+GnA1jZKv2DAM4+Qp/my68iSky/KhH9QPEdr2//vf2LEgE+vWWncyc1Nf2Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pN4TUJ8PqkXYpR9AJxQqajXgo9bc/saWQsMQrRlJXBE=; b=Wojoc9m87zmdYUZWamoJ/b48vzwEOr30VVxuhAnEORbkR3xIkAcG3Ufngjp/JN884DapZ6lYLFj+BI0fvEijozQvc3ZaUBeBa/QYC13cUJqoWcNBzvaHKm4Qs7Ti7g0/6nvhniKCeiZyN0prxR/lb3BffO7rNnIRRuAqz+20z2Sg9DJ8uv6TyOlvT1lSoPGe/UQOcDXbneZuerO7YGCDU+8/6N/stE5laxc5m/UXRShzR/HmTv1wYCCY1zVDiXSr1ymXhWKyffH5Pm0ZgIfCCb7IW9mhPZz7bb3GYqwyZHU7x3Ywu+0m94GlsrPEhRbd4efcyIaO0eJ20EUKGBvFAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.70) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none Received: from DB8PR03CA0031.eurprd03.prod.outlook.com (2603:10a6:10:be::44) by VI1PR10MB3599.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:140::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.15; Tue, 19 Jul 2022 06:16:44 +0000 Received: from DB5EUR01FT065.eop-EUR01.prod.protection.outlook.com (2603:10a6:10:be:cafe::99) by DB8PR03CA0031.outlook.office365.com (2603:10a6:10:be::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.23 via Frontend Transport; Tue, 19 Jul 2022 06:16:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.70) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.70 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.70; helo=hybrid.siemens.com; pr=C Received: from hybrid.siemens.com (194.138.21.70) by DB5EUR01FT065.mail.protection.outlook.com (10.152.5.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Tue, 19 Jul 2022 06:16:43 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SJA.ad011.siemens.net (194.138.21.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Tue, 19 Jul 2022 08:16:42 +0200 Received: from random.ppmd.siemens.net (139.25.68.25) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Tue, 19 Jul 2022 08:16:42 +0200 From: Adriaan Schmidt To: CC: Adriaan Schmidt Subject: [PATCH 1/3] fix(isar-sstate): catch errors in signature comparison Date: Tue, 19 Jul 2022 08:16:26 +0200 Message-ID: <20220719061628.192078-2-adriaan.schmidt@siemens.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220719061628.192078-1-adriaan.schmidt@siemens.com> References: <20220719061628.192078-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Originating-IP: [139.25.68.25] X-ClientProxiedBy: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d9674c79-d2a6-4991-d4c8-08da694e4080 X-MS-TrafficTypeDiagnostic: VI1PR10MB3599:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /jxCq7EdMCfAdrRdvwEhnFTXIORFKeTYaS6D6KfZSWILhhYmG4tDvflaxdWtjyg1Pw/Se7QgpkDnSzsdOdeIT+jNG3LmNXWD0C4RlRY/sQu3sHZ+uLSmYr2yuOJLgHSxnin7Jc/XQHD9qVnnmxT30OyI6CQjvkcUp2pI/eyQULhLrtwu3uoLgWwdp8IceXP0enobUUAzDMApf7KJa2JrkKx7/accF8H1wJ1O31NmAvD/Gm+LreqVt5nasAMfL5s669qY1m8b985d5GBNbYoMN5vIz0Z0IAgJ27RGwGr8BV3upUkcN9c8fdYnaLUdbsjJsgMUFwNWTKizgNUw47UKFkuP8hTpmsVqgUQhPlirC+NauCe7XJ2QUF3N4hDQffb9MxKNDiQW62YY/Gm2am4nEFx8H0zCtL/FIie0IqamEvs2Gq/nyTwjni0s66p5rXfcWp/bWafSA/hXZOhaZjKSnqBTCyZehbFNU7oJgZYSE2gh+eH1q+xRjVaULps8GHgcySwS2/KgykniVPgiRFZKa1Ik1o2iil2Nov7xGsRDBz/7oocl9em3qrEWxKWpCQi+gyNkHHOTseDwt6RrMCk0kkFaRd0x6Dsabztc3XX4hNWWHNql4AnGHZE6oFIT/vht5+ROEETIlX5nYqs19eIUt1KQwwzpJ5Te0aUuuKM6aIv81jwp+EMN19382mzCo+eihQWiDVZ3SqvQlJKrdAkhSTHJZ+4uqs/FvbYm4mS379TzHEoIeQOL5HOsvVYrFd90eMcdG/WNewwI7CgzDwkZF0gVoVVopxdvJmWeFK1u75ukxEzFQWUU2RqqHE7P9Arb X-Forefront-Antispam-Report: CIP:194.138.21.70; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:hybrid.siemens.com; PTR:hybrid.siemens.com; CAT:NONE; SFS:(13230016)(4636009)(346002)(376002)(396003)(39860400002)(136003)(40470700004)(36840700001)(46966006)(6666004)(40480700001)(41300700001)(26005)(186003)(5660300002)(336012)(47076005)(107886003)(956004)(1076003)(83380400001)(4744005)(478600001)(16526019)(40460700003)(2616005)(44832011)(82310400005)(86362001)(6916009)(70206006)(8936002)(4326008)(8676002)(70586007)(316002)(2906002)(36756003)(7596003)(82960400001)(82740400003)(356005)(7636003)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 06:16:43.6271 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9674c79-d2a6-4991-d4c8-08da694e4080 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; Ip=[194.138.21.70]; Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR01FT065.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB3599 X-Original-Sender: adriaan.schmidt@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=ARctPyxV; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.8.43 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com 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-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, 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-getmail-retrieved-from-mailbox: INBOX Those errors happen when the sstate cache contains both pre and post bitbake-2.0 signatures, which have a different format (pickle vs. compressed json). Signed-off-by: Adriaan Schmidt --- scripts/isar-sstate | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/isar-sstate b/scripts/isar-sstate index 8ea85edc..9f5c17b0 100755 --- a/scripts/isar-sstate +++ b/scripts/isar-sstate @@ -781,7 +781,10 @@ def sstate_analyze(source, target, **kwargs): local_file = source.download(s.path) remote_file = target.download(t.path) - out = compare_sigfiles(remote_file, local_file, recursecb, color=True) + try: + out = compare_sigfiles(remote_file, local_file, recursecb, color=True) + except: + out = ["Failed to compare signatures."] source.release(local_file) target.release(remote_file) # shorten hashes from 64 to 8 characters for better readability From patchwork Mon Jul 18 22:16:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 1991 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 19 Jul 2022 08:16:57 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-oa1-f62.google.com (mail-oa1-f62.google.com [209.85.160.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 26J6GtsD013791 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Jul 2022 08:16:56 +0200 Received: by mail-oa1-f62.google.com with SMTP id 586e51a60fabf-1015d202b74sf9403277fac.20 for ; Mon, 18 Jul 2022 23:16:56 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1658211410; cv=pass; d=google.com; s=arc-20160816; b=xcROmWb53iFJgHOwIP9rO4hYDVMcIn80aEVeno9jTpidbe7WkSkuOGsUUWzwda0OcJ btjvTTa9U0MkO1yMwc+neD33L8LazaG7iWT/LX43eS8P16n8tzlxcMcAfEeXPdf6Ldq9 SA6N2mVZDXbzv3mF+J//VWX+UzF+2uclOHGfVTKhe6G5w1GGievY4SqokP1cQb8stNO2 0KTx/ntqklg+y4C/KX40TPs0VhOTlyTjmR78tpTEKkAEgHnqgfHIfFZ4fejdAzc1vD6B SQJKwfH2jJvHux+1B2EzZWRnPn2oNkr7J/XaHm5yLDy7Jqco3UU3KKeHrYMkrzfcZMgE 93oA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=iJiKydUrQ5lLOCosxIjny/eYI9bBxhTJomLjBU2oTPY=; b=sByqfkmBgQiqJYrKEJlIxJBZwc7UuDFRf+fg/s1mYv8/Wz3jAYGFtG6ebHI6dALU+6 KS+QOVtuihTmopbzpniWc6htA7kNd8j+2cdvLgpA84Eym4Bu/4JKlGTfYHJ2eqi6Ex3h 8U2pFHt/Tj8mn88VdDWsNT6QRVhru1RSWODCgpLGXaznk8J1OOwTTFuIdz4ZBSqipygd FSJzOAC1NF+/q8KWmtvXuqwT064VTGvPctsF+1X+d5fcqPcukYqR9CMnnjb0F1PYquwy WfE55yMTBtZciOqiQaZlxiaOOabRSJfvQQ+zLc3kUY1lx5L2mB3LCN2Z03ox7nJQ7IVz OoHw== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=N7Cwfn87; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.20.68 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=iJiKydUrQ5lLOCosxIjny/eYI9bBxhTJomLjBU2oTPY=; b=gGk+viyWFek0XmQocL/604I6DqJ8SYOAuc851wurwv0q4+S6fJ9uwjZfD8/8YzA8Ve xbyNVJnIDI8QEy00WTrlW5H2gik6CuQGvXy+zYF+oJqUKT1xSbE35uIr3P1pvAbbBTkU lgaK0W3Umbbb3cud6LKvKNboKIgxPw0oao2pOxpJ5LQ5VOdkG8yBgHNtZRkqlWdg0QGU m8NWyNtY5RUjOi35DvJLsvbyT4L9wrBYPzQjoxwWJNY/ClW0319T1KlAl4+4Gh+aTypQ uZmROuV/bMQhr75diA7jIKIlMY/eeyeiUhW4z54erGVcOreUo2GqSLBESoTKQn3GhkcQ AVMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=iJiKydUrQ5lLOCosxIjny/eYI9bBxhTJomLjBU2oTPY=; b=A+Ln977yLXHAvC1lOebAeu3LM4rOKegCMpPflH9xXqBBje3LgkCH6eaE9qOkg39DLB aqoSE8uKWhOvPrXxxrTg1GyNWl/U/kJ1xsFBnRYPQIMK0w/3sGrifeiA4sL0ko3kcA5J v1huVT5/49YtZ2YLlKFHKd1fGwRR8czQnZLfca9F/ar7bCaZuxtrpfOFyYTUyFHnY/8Y GPmuSkJBJq+kCBzVkTdrpwd+jA3l567GozVmxVaZJRpmYU/HIblssXJrVYS15ETi07M5 4XTapQZAq2aqhuyCmuL5Atob903Imjy4eRU34kxXt2cTzEnK8Dqyx7cH7K0bmiqyOEXU WpxQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AJIora/W/+y7Kb8YWIbv9MqG5hDipiFs2BBHspE2Raj3CnAJq6KHENSp BjVV63EG3TS5bzyN88pcI20= X-Google-Smtp-Source: AGRyM1tY0GuRj/MOK/IS4e0Fcqxr127oGJkZQy3VDt+N2j73QEp2hCLlQ4QiFNKGymsBrlWsircteA== X-Received: by 2002:a05:6808:19a5:b0:335:cffd:b276 with SMTP id bj37-20020a05680819a500b00335cffdb276mr14875816oib.226.1658211409650; Mon, 18 Jul 2022 23:16:49 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6870:4946:b0:102:1a4:7a5c with SMTP id fl6-20020a056870494600b0010201a47a5cls79453oab.8.-pod-prod-gmail; Mon, 18 Jul 2022 23:16:49 -0700 (PDT) X-Received: by 2002:a05:6870:338e:b0:f3:1a36:9485 with SMTP id w14-20020a056870338e00b000f31a369485mr19785427oae.277.1658211409165; Mon, 18 Jul 2022 23:16:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658211409; cv=pass; d=google.com; s=arc-20160816; b=aOdRH0tPQCypmGU0zlLeFUqSNIvBXS2FO6QvZfET8WG2F/ZrtF4BchoehUTnNvg/06 c5yxoV84BHnC/3KYolexVlZgyRPZaKOfhLVbABTaBG6WxbyUIPt+p3GF2+DRYhNhUyPt 9SKxnMSDwxKg9bpGNvx8mi+7uXkMYSfZYkFihkBMBKIt1/ZCYPd6pJqFvIcfb9ruEEnX nD9vG+zE8cmpHFcgm3yMRXZyO8GMtFvLFzru3fkVRB7f7A/UvNTS9xxSdYCSUO3pPb// PoBT8fbMOwMOM0gwxIbAMda8qJOsMbslY3xKsMyJy24cT1aA2J0HLRm1DQ4zn8ux7HVn v4Zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=EusuwB1oNBCDxjjGQ1uWfOh3W8JsEQpkDDN2Ro6rmRk=; b=pnK5hFrRh5utKRWBpJ+2dCkCC6fu5FJ5pDg7rY+nEpsD0C/NDAHqaLke4cziyAE7QP +vSc8GAotHB1PFhkpW0IweUaYHaunHjo40+tvevIZZ5sR0lg/iG7JjGb0/PsDlF/O8CQ 3lhnxpB6nWbgOB7XgZ+p4rg8sF9NDu87rOCsN0Yk0PKU62PL7vqZfM102IzKBChuWQ3t mbxLbCfRtBZnn6P1M/3f8b2qtKfJPm2lX8CNFgtHQlxqzGKpohfZRL4NJnUB4Mbp6f55 D6dsz9EAj3lEpPSuiDyYEOCD3yxJqGgOgLZLdPWgklY8ieC/Aw6wI2GeBTRZzUFXluDp Nmog== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=N7Cwfn87; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.20.68 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2068.outbound.protection.outlook.com. [40.107.20.68]) by gmr-mx.google.com with ESMTPS id f14-20020a056830056e00b0061c81be91e8si603694otc.4.2022.07.18.23.16.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2022 23:16:48 -0700 (PDT) Received-SPF: pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.20.68 as permitted sender) client-ip=40.107.20.68; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ekrie5ux00rpPJ/EQlf+XtogzZRwT+1mDxRfM1gokWYE1bMvA/VJiSaY+HJAZ3IEkrfcSgyj8aZ/CbmjK36eibpLm9q1GD0MIFEZv+Y6u9015jv6uzPwWYTStdFElxcuse2lB5WWGyHFBmNBz2SfbiJnTFYwegU2jcVqLEc6XlHXYJ2AsaOw7M34mOB0KlZO3A2uKFY1O3812dwGA7Qzu5CieARM8pE57RmXfz4j0YXWBQT3goGKHQcEvEqb4GPDV4V3g5IzcnzgopNFOTwxahMg/akih3q8Qny0GyZDTcSF8k2kZTs0wf9Rp88Z5VvyMrSAwhBIQlJxc2ydtbMwAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EusuwB1oNBCDxjjGQ1uWfOh3W8JsEQpkDDN2Ro6rmRk=; b=l4EpbHgl+Jfdf6KTYpeSW19cQ8uvbImpSlye/fMdGJGw88478+KXSeNHcfJ3oOXQvFJl1SMIr2iRoWp7d+k/uqxibQYUeDWedttxY90MtmAEivaVJjRUZPV0vdOxul5Nrs9u7i0SUjt0Wef7DPe2b8ev7aHLobRT9PAcjx7dbzvG6Qrnyo1Xd1Tfu23E/OAPYbPB+ApKfRDT7V2555pqTlsyE0GDZjVwliwiuVqJpG983EdjiUmsc+TLTzYgKa67L31NwGNsIVJ3jdz53Y3byfevsZzrNtJkgUcgQcdwTCMc9ALG5dpsNmPkhOser2/ap75FR0O016UHligdHseXQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.73) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none Received: from AM6PR08CA0021.eurprd08.prod.outlook.com (2603:10a6:20b:b2::33) by PAXPR10MB5160.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:288::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.23; Tue, 19 Jul 2022 06:16:43 +0000 Received: from VE1EUR01FT097.eop-EUR01.prod.protection.outlook.com (2603:10a6:20b:b2:cafe::e5) by AM6PR08CA0021.outlook.office365.com (2603:10a6:20b:b2::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.13 via Frontend Transport; Tue, 19 Jul 2022 06:16:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.73) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.73 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.73; helo=hybrid.siemens.com; pr=C Received: from hybrid.siemens.com (194.138.21.73) by VE1EUR01FT097.mail.protection.outlook.com (10.152.3.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Tue, 19 Jul 2022 06:16:43 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SNA.ad011.siemens.net (194.138.21.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Tue, 19 Jul 2022 08:16:43 +0200 Received: from random.ppmd.siemens.net (139.25.68.25) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Tue, 19 Jul 2022 08:16:42 +0200 From: Adriaan Schmidt To: CC: Adriaan Schmidt , Felix Moessbauer Subject: [PATCH 2/3] isar-sstate: refactor exit codes and error messages Date: Tue, 19 Jul 2022 08:16:27 +0200 Message-ID: <20220719061628.192078-3-adriaan.schmidt@siemens.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220719061628.192078-1-adriaan.schmidt@siemens.com> References: <20220719061628.192078-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Originating-IP: [139.25.68.25] X-ClientProxiedBy: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9b7cebce-03b7-4ab2-4c68-08da694e4067 X-MS-TrafficTypeDiagnostic: PAXPR10MB5160:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FIESHYkl8SwUoRtu4Vk1W2o6hf3CF6J71KxYteV/dqwcsP9BRxePV5bamd8lIgGWEojbta+A3Zb0xUR0kJxNL/sS2eHfTBhREbL0vwJ5P39ieIbpZ3vyJAl4JyreWCzhgA8C9mibiFquwqRF1T59HwVWsjQIZtRAF/6I/brO6FgqTinMc9Ex/MhD4kX8jxT6XNkmfB44/NLyaQYLgRTaUdd5Sk2Nn96j5YiLyZOBZyR1+6mpYMqfLD/493Fgbj0s0hUqEJx6WH70MSwLE7wFOkXk1al3u6DHeTXt8R7Dg+f8SHWsQmiRg11HzwlS2P9Wk6EKXawjrTYxMv+4oMfDVnSuJf5gizjSaBMO79Lp05eYi3herb41OhEDoDXdeg4zdQdhxIH6a0x/0sE0EfU5lwUaWFjP1U5V1ZVMpIUhG8HoKb6cwzrjGW86oxLDdye299hw5TIfKABdjMMP3U5Eo1GXBKbIPSUIvO9I3WZSoGR2NPSwdoVgGKfD7OqH1zCDbRLz5PgOVViQ7i9hWrIYhDsmyKd11Sdpd/4BunElV5/RBEwsEMfxEIqp1x7YiAL/l6iVNxc5cCY6Aa/xF5WvAFn+jNHTEEiJtmOvCtQ+EmeSSbnE6FBzE752tqjhKfcIKoKYxkZ47zFJzuQGeCYDg2OWXf+wPRPbZVzjvkqVNixnrrmXIpI+2xtAY4L5CUWWPL50ETqB2IFIhuK3d/H/pLCO2gDg8q5ume5KJQd/Gn8qIkmhmFkmfCcDQJRs9s4KQc3ZGbAN0OAlAHTORGnkIIvz2ps6+gzS71GSBWQ0wX5ydN0ct/RTf/yFTGLTEg/Q64xkUIimzSDaT1+cHQYIKA== X-Forefront-Antispam-Report: CIP:194.138.21.73; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:hybrid.siemens.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230016)(4636009)(396003)(346002)(376002)(136003)(39860400002)(40470700004)(36840700001)(46966006)(8936002)(5660300002)(44832011)(70586007)(70206006)(8676002)(40480700001)(4326008)(40460700003)(2906002)(82310400005)(336012)(81166007)(82740400003)(36860700001)(956004)(47076005)(36756003)(82960400001)(356005)(6666004)(41300700001)(478600001)(86362001)(26005)(54906003)(6916009)(316002)(16526019)(2616005)(107886003)(1076003)(83380400001)(186003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 06:16:43.4754 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b7cebce-03b7-4ab2-4c68-08da694e4067 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; Ip=[194.138.21.73]; Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT097.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR10MB5160 X-Original-Sender: adriaan.schmidt@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=N7Cwfn87; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.20.68 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com 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-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-getmail-retrieved-from-mailbox: INBOX The behavior of isar-sstate in error conditions is not consistent. This patch tries to fix that: - If an operation cannot be performed because source/target cannot be accessed it's a WARNING (useful when running in CI, so scripts can continue). - The exit code returned by the script is either 0 (no error), or 1 (error), but never -1. - Issues found be the lint operation are not returned as WARNINGS. Signed-off-by: Adriaan Schmidt Signed-off-by: Felix Moessbauer --- scripts/isar-sstate | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/scripts/isar-sstate b/scripts/isar-sstate index 9f5c17b0..b62aec47 100755 --- a/scripts/isar-sstate +++ b/scripts/isar-sstate @@ -602,10 +602,9 @@ def sstate_upload(source, target, verbose, **kwargs): if not os.path.isdir(source): print(f"WARNING: source {source} does not exist. Not uploading.") return 0 - if not target.exists() and not target.create(): - print(f"ERROR: target {target} does not exist and could not be created.") - return -1 + print(f"WARNING: target {target} does not exist and could not be created. Not uploading.") + return 0 print(f"INFO: uploading {source} to {target}") os.chdir(source) @@ -636,8 +635,7 @@ def sstate_clean(target, max_age, max_sig_age, verbose, **kwargs): seconds_per_unit = {'s': 1, 'm': 60, 'h': 3600, 'd': 86400, 'w': 604800} m = re.match(r'^(\d+)(w|d|h|m|s)?', x) if m is None: - print(f"ERROR: cannot parse MAX_AGE '{max_age}', needs to be a number followed by w|d|h|m|s") - sys.exit(-1) + return None unit = m.group(2) if unit is None: print("WARNING: MAX_AGE without unit, assuming 'days'") @@ -645,12 +643,15 @@ def sstate_clean(target, max_age, max_sig_age, verbose, **kwargs): return int(m.group(1)) * seconds_per_unit[unit] max_age_seconds = convert_to_seconds(max_age) + if max_age_seconds is None: + print(f"ERROR: cannot parse MAX_AGE '{max_age}', needs to be a number followed by w|d|h|m|s") + return 1 if max_sig_age is None: max_sig_age = max_age max_sig_age_seconds = max(max_age_seconds, convert_to_seconds(max_sig_age)) if not target.exists(): - print(f"INFO: cannot access target {target}. Nothing to clean.") + print(f"WARNING: cannot access target {target}. Nothing to clean.") return 0 print(f"INFO: scanning {target}") @@ -679,7 +680,7 @@ def sstate_clean(target, max_age, max_sig_age, verbose, **kwargs): def sstate_info(target, verbose, **kwargs): if not target.exists(): - print(f"INFO: cannot access target {target}. No info to show.") + print(f"WARNING: cannot access target {target}. No info to show.") return 0 print(f"INFO: scanning {target}") @@ -720,11 +721,11 @@ def sstate_info(target, verbose, **kwargs): def sstate_analyze(source, target, **kwargs): if not os.path.isdir(source): - print(f"ERROR: source {source} does not exist. Nothing to analyze.") - return -1 + print(f"WARNING: source {source} does not exist. Nothing to analyze.") + return 0 if not target.exists(): - print(f"ERROR: target {target} does not exist. Nothing to analyze.") - return -1 + print(f"INFO: target {target} does not exist. Nothing to analyze.") + return 0 source = SstateFileTarget(source) target.enable_cache() @@ -795,8 +796,8 @@ def sstate_analyze(source, target, **kwargs): def sstate_lint(target, verbose, sources_dir, build_dir, exit_code, **kwargs): ADDITIONAL_IGNORED_VARNAMES = 'PP'.split() if not target.exists(): - print(f"ERROR: target {target} does not exist. Nothing to analyze.") - return -1 + print(f"WARNING: target {target} does not exist. Nothing to analyze.") + return 0 cache_sigs = {s.hash: s for s in target.list_all() if s.suffix.endswith('.siginfo')} @@ -839,7 +840,7 @@ def sstate_lint(target, verbose, sources_dir, build_dir, exit_code, **kwargs): if sum_hits == 0: print(f'no cachability issues found (scanned {len(cache_sigs)} signatures)') else: - print(f'warning: found cachability issues (scanned {len(cache_sigs)} signatures)') + print(f'found cachability issues (scanned {len(cache_sigs)} signatures)') print(f'-> absolute paths: sources-dir {hits_srcdir}, build-dir {hits_builddir}, other {hits_other}') if exit_code is not None: return exit_code From patchwork Mon Jul 18 22:16:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 1989 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 19 Jul 2022 08:16:56 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-yb1-f183.google.com (mail-yb1-f183.google.com [209.85.219.183]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 26J6Gtjc013787 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Jul 2022 08:16:56 +0200 Received: by mail-yb1-f183.google.com with SMTP id a8-20020a25a188000000b0066839c45fe8sf10265967ybi.17 for ; Mon, 18 Jul 2022 23:16:56 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1658211410; cv=pass; d=google.com; s=arc-20160816; b=ua0SQspViDyrp4D+Htjt18NzennVOMqxMVs5qkqT4LELfU64n+eEAJBDmS0W5dROKg +cQ3oycSsZJsU54mSlYH9eQSm/vdX5lJBK9wZ7bZuDlgI0TVhzWqI7U4P0oW35glEuXf EBx0dPky9EAiXCzKmO1bWb5MHQ5uOLs+bHHk1dtX/hG/XfjQYqGcUBDFBTSWBRRLeciM rJgZ3+b1t6AO7tusuJ4EuCMsYn83p4ttKF/rBeg80MUz03tihXvAr+8XiwbWYCMinU1N Q2OD6y2cCOfkJTzCim+4BM5lBw5DCb3syhpmuwzu9CtWvj3kA7h/AjAHEWDb+r/fCdZ+ mFXQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=EQ65NRb7xEwRteQ3SMFoVkum3TcOMFYpxlFGAaRcJLo=; b=oMdgjlOuZhEvBP3jTIamFwRhtO5AZgAT1GDxlWPbfuEayyxSEPzLhS5JKS/kJmCSai UKEggQe2cdEy4xm7tLuHNYphCHIcv6NO0AatmcKru5xIbM3WBxxd1MXVk9dHZeN5hwoo 0CNxBGaVm8k63EXges2uNCDTCFDozGPbeweljXm34FdX6uA8DmRWAkq4Nz5R2c2lZgRs y1wzKfxQqGMhlsu0h/cVVHlTVHDMluh04wJgalDbRjHe2/6gpkmUqOJ4EEFUajsTrODN gUsV7DC7ILBByDd4LeOfbH5GW5GHYmd0fra9uiHY9mCgNuCOffkkNQ6AoTzQms6DazkT g3dw== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=NHK+UoxF; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.6.52 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=EQ65NRb7xEwRteQ3SMFoVkum3TcOMFYpxlFGAaRcJLo=; b=iBGTm45YUmaTXvlU8Xjw6CE6tqsCRe8dzAvg7rgG6d02QY0Gf87xW5mtt1NpHv/NMK +aODGEIIZHoXsi3t/mJYWXotLDXZalccxC2oxcaaHcNygOXPT3ag9baMhjAnX6U6eks1 aTidsgVQGL4wnCXRbaoEBsv/XbCOKvYFksJVP1kFctueP7VBI7SjbAmTG+cQ7ppSTASX 9rp8/eXV7VUy6LWWm7RiQDk0EHiABsUX794ZR0SzZgqypsfP8GK/9hVBUhlvMaiSHJl1 I0KNgmuIoEly5hcP5eqgh0xhQmBbYCHXCZFMRfGnHfDxFK3BWEvT1D1gDT6JJnNiiN2c P5WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=EQ65NRb7xEwRteQ3SMFoVkum3TcOMFYpxlFGAaRcJLo=; b=2QaBVlcU7nAFRrIRfX9gNyXhXJEB8g0a6BmeKdjNdprHY+CQseFxjvky3H5NvK1vUu KnXp1ZuszDRXerNTwjhuB4nuGVhu/ZQcSXqqbtyLUtgr5FL3CVQQ19h+edULovYFI3pq bh7puHp1sGmRbgPR/F2nS0fCs+wVzpp+MBhLwmfpCUyPgHl32crrVtnjHmHSZYvfKGQL S7aHfr8NLqXl/BVCIEzoUnOZGca4NzHl8P4QcyKWA8FQ3tYmqbQONilaz6fu2ROj3mbD Ole9pad9B2Nsyz+/JkdWX4CxnfvaQ/0AfDU1B2MfieAcvv6xheCrwUlgYH72ajhnHbFz zbAQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AJIora8+V0jchpYCru6QxwIaoTNXeYr7gS/Z27g3jqgSpKoM248RDGBI auAyqeQWn/qYAGBNOKZDIEA= X-Google-Smtp-Source: AGRyM1uUWMdcMutShiq3hd87J84p5sLqRfeu6NJqcLiPHF0CBJqOQXOFSzhOZ3i6U/tIqAsVNJCQ7w== X-Received: by 2002:a0d:d8d6:0:b0:31d:44f:e04b with SMTP id a205-20020a0dd8d6000000b0031d044fe04bmr35347232ywe.296.1658211409831; Mon, 18 Jul 2022 23:16:49 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:690c:291:b0:318:41eb:7951 with SMTP id bf17-20020a05690c029100b0031841eb7951ls538630ywb.7.-pod-prod-gmail; Mon, 18 Jul 2022 23:16:49 -0700 (PDT) X-Received: by 2002:a81:a08a:0:b0:31d:565:e2dc with SMTP id x132-20020a81a08a000000b0031d0565e2dcmr33668245ywg.331.1658211409412; Mon, 18 Jul 2022 23:16:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658211409; cv=pass; d=google.com; s=arc-20160816; b=mkkOTtsmMuKcMp5fqYHLktDGd4NtlN+Z6e1H11pVFgJTnHfqg60ellK+/NuzwzRNfA +5ce8+V7qdZq7mxrFf+mAMNI2w5ZHhlV/sfMENFUgMyMekNQChz2ccL/R/AxcP0KKI7V uY98XhvI6EfPI6a8hs9i0nsadNLMv+MlhHoIe9m8g36YdEZ9jj42NplRX3W166iOxlXa m+YiqmdLFyXwNqHS1nJHHCLTJfPXNM0m2caMdj2CeIZqMBu3HHs50t95WLmTbrpH88+h mcclk7ak8rcY4Si7bjoFWB8WR7aKf/aCoYSIEh+3fWftsXo4jrQMlr3+adQILfsEEPKf AgOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=2YRyZ9xvdEeYArbDIY3lUoy2WkY8VwRRIyoXhyL1GcI=; b=wSQlrp2ra7OGhwOt+1m0+SByCDuD01ZdSjKToe1+WJMeFqFXowaA8iw0lwifhQaFNL 2Ncvu1O57arCU1zb7UiscNzWoN0tqeSXEydlbVrBMh69cDR+IwJjeUU/mrMynnNqg7ky g6hppUB/dkIsE026UygQCTQ73SiUJh3d2OYu+SvzWUF2jbTlKAjBfvQ0Mz9ymXrhGcoU mGfVGP27UOWNkll5hhF7hjlin/Pf0SCZqN1Tp6wlysgD0rv/qMv0wY6ynbAVyEnDI/f0 ahEzaoDDBteiGx3W167/eA/Jzk7I5+tUXb9k5SKQ04ajQtpxiX25zdE2+j6W69Qozyva VXbw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=NHK+UoxF; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.6.52 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60052.outbound.protection.outlook.com. [40.107.6.52]) by gmr-mx.google.com with ESMTPS id h6-20020a25d006000000b006707d1436bfsi86630ybg.3.2022.07.18.23.16.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2022 23:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.6.52 as permitted sender) client-ip=40.107.6.52; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CiisojLXyU9kSKWi95rFprnVL8mCDuVN+hp10z87UAURmMXxXj7q9pLvMnxbjLvLh6kUogjvBD3ZJjjRUGbk4+h1P282I/H6nNlZlFiLOXiVZlO5xB/pRit4mpr4/APkBdw1a7LXPhnjRPhSrW98Yad/Kpiz4exLx2WN+XW0rZ18zNWyORp7IKqk4ZOJSXc401paM6ljriGyV7WRBCh1nnIbO7IM27PeaXfZB8OOaIL4p7JooKLI50AbY7PNFI1LK9sZnaLgo0zebxIKojax6l/2gfP8bhMPsfQRmkk+aFdcAeOh3/F5MC0VFElsJOCtpYMcG/4KUlmlx5ayPFVbmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2YRyZ9xvdEeYArbDIY3lUoy2WkY8VwRRIyoXhyL1GcI=; b=DyWK8ljqlh4Yc7Ixa1qgbNI+Ztv9dvGD7sG5tQjClIKlGR/UZboKbI8xg+H/XyRbCkG3Q4Pa2bkNl24dmgMDecfYhE4COD/emNi6vNtctoftei7VkTfOd0oMZBt6Uo0/krk6lFeRRoQEKPkr057oRhddaUPZFveAtDQKfoLGeBfE+6pJFkteAYDp4l7SMaT6CfO3dQ3MKa2VTU41XfDfQixAbpO+RYz12S42BIdfIF7+pTp77F9XvrgPYk9QhAK6e94V5MFpa9GQeIXemT9I+yD7NbZlZg/Hr63a4RvEEJhXAcKMYd6KXHnDuN2TcGsMdTMnBP7BlxYs5M0nFB001w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.73) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none Received: from AM6PR08CA0015.eurprd08.prod.outlook.com (2603:10a6:20b:b2::27) by DU0PR10MB5946.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:3b5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.23; Tue, 19 Jul 2022 06:16:44 +0000 Received: from VE1EUR01FT097.eop-EUR01.prod.protection.outlook.com (2603:10a6:20b:b2:cafe::5b) by AM6PR08CA0015.outlook.office365.com (2603:10a6:20b:b2::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Tue, 19 Jul 2022 06:16:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.73) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.73 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.73; helo=hybrid.siemens.com; pr=C Received: from hybrid.siemens.com (194.138.21.73) by VE1EUR01FT097.mail.protection.outlook.com (10.152.3.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Tue, 19 Jul 2022 06:16:44 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SNA.ad011.siemens.net (194.138.21.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Tue, 19 Jul 2022 08:16:43 +0200 Received: from random.ppmd.siemens.net (139.25.68.25) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Tue, 19 Jul 2022 08:16:43 +0200 From: Adriaan Schmidt To: CC: Adriaan Schmidt Subject: [PATCH 3/3] docs(isar-sstate): update documentation of lint command Date: Tue, 19 Jul 2022 08:16:28 +0200 Message-ID: <20220719061628.192078-4-adriaan.schmidt@siemens.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220719061628.192078-1-adriaan.schmidt@siemens.com> References: <20220719061628.192078-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Originating-IP: [139.25.68.25] X-ClientProxiedBy: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4acbbd07-5437-4d05-0bff-08da694e40c9 X-MS-TrafficTypeDiagnostic: DU0PR10MB5946:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nDxv66MNFA3hH9I4+MxzyqRLgsDUszXXiwiMcp1d62tSk9yoXZFdRhTliqWPH+Pve6DDU382p9I5+GL0RJS2vxwG1T3QDNcthDxdXidg0TJH3ImlAAVD19ADP7V/E49RrV//UKlFL3RzkJxiy9JIgquk05FJncDSg4lbB+mGQKgwdfhPOmcbGEBWoiY+xxR4EXwrISB0NKrLsIHbtEi6K2uqok2CZwVEgtGODAcsoNy/i7kpU+5mzgy2xoU/NNA1bOiobqJY2WapSFsYsNhezGbrlNtNYg7UBB4r7934ASmFLFiRp7IWEZc9ORYddZCcHXrcy7QsvbBkKejal+VxeU/F1+h+mm1DjLYhjo/Eaz5KVIOSC6x5NjT9rVr1R8qM8gmKPOYWbYAUitX+Shrr9NuOhoyTpNTl1Xq9uQbonfvLozMPjOBVyzaDyDtNYP7TchSGq1hOQpz3A9Pl7WHGMgfgRUhRq2zsW4gxPVzNWmCzw2V8DjZaL2q2DVphJ2hfkRP+rHrzt8AgiM7VRtbV5Bn2s1rdHBYb6I5qpymZ/nsAC9lE9Y7u/+Tx+P/OknX5m/DUFeY83vIrpZwYBc8LvgS7E4LcFh3AzeUh8IsuqVa29v0bDw7F1KfFcyi4LRJl/hgVFCOkE+2MCFLOst8nl47t+ITKXOu5YStye05iW66BlR3oTpcQPoKXaEUhbpY1btscRIsnu1JTqx+KYK5hNVkABAWVR82yIRpoDDxweltgplgWBQPWJf5p8h9j5e8cqM6EqV0pyLMUPe1XpKJGagJg0wsaPI2acOR4AinFljZwfpi8K/J75/pIGqWx6SCwHbblsjEY4AXad0tWBUKdIQ== X-Forefront-Antispam-Report: CIP:194.138.21.73; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:hybrid.siemens.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230016)(4636009)(346002)(136003)(396003)(39860400002)(376002)(40470700004)(36840700001)(46966006)(8936002)(5660300002)(36860700001)(81166007)(2906002)(478600001)(82960400001)(356005)(86362001)(82310400005)(82740400003)(44832011)(36756003)(26005)(316002)(186003)(16526019)(1076003)(107886003)(2616005)(6666004)(41300700001)(6916009)(956004)(40480700001)(83380400001)(40460700003)(70206006)(8676002)(70586007)(4326008)(336012)(47076005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 06:16:44.1160 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4acbbd07-5437-4d05-0bff-08da694e40c9 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; Ip=[194.138.21.73]; Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT097.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR10MB5946 X-Original-Sender: adriaan.schmidt@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=NHK+UoxF; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.6.52 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com 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-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, 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-getmail-retrieved-from-mailbox: INBOX Signed-off-by: Adriaan Schmidt --- scripts/isar-sstate | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/isar-sstate b/scripts/isar-sstate index b62aec47..c462a5cb 100755 --- a/scripts/isar-sstate +++ b/scripts/isar-sstate @@ -22,7 +22,7 @@ sstate cache: `SSTATE_DIR`. To share them, you need to explicitly upload them to the shared location, which is what isar-sstate is for. -isar-sstate implements four commands (upload, clean, info, analyze), +isar-sstate implements five commands (upload, clean, info, analyze, lint), and supports three remote backends (filesystem, http/webdav, AWS S3). ## Commands @@ -64,8 +64,10 @@ format as `bitbake-diffsigs`. ### lint -The `lint` command searches form common flaws that reduce the -cachability of a layer. +The `lint` command searches for common flaws that reduce the cachability +of a layer, e.g., signatures containing absolute paths from the host +environment. Issues found this way usually indicate errors in recipes +or in Isar itself. ## Backends