From patchwork Tue Jul 19 04:35:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 1992 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 14:35:35 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ej1-f60.google.com (mail-ej1-f60.google.com [209.85.218.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 26JCZZgL014966 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Jul 2022 14:35:35 +0200 Received: by mail-ej1-f60.google.com with SMTP id hr24-20020a1709073f9800b0072b57c28438sf2993506ejc.5 for ; Tue, 19 Jul 2022 05:35:35 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1658234130; cv=pass; d=google.com; s=arc-20160816; b=ddCriQjCbxgJoJNaGKsXh2xox+tZuA5JM3cLrwZkJoLudBMsnzFYE8fVNTdcaK0A4h IEkZSyn/SW8I7FdxLKDoEFt2QTe5rKL1tC5D6/l1pmYl3kdze3YKHYbAsEcQnVGDVVQ2 OYVNYpbbqxnUMXYbzUibszEaLaggzltH5ic/NIFlX7IzrYvfFSntOcsAbz9QCmN9C9gc Y5gihpJQAwc9kTq+cB/JhdP8HPfmLSeaJyEqELyLCPd1dQNPPm8bn6pYZKeEQyg9p2AR tQtanphl12+zGprNLRI4rhyHvzlqOlzdXKSXUiq2HPYMFE9zAedpf1sCCqSlj0KFILqo 0Grg== 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=pW8DZPXL0yDnA9IKnS/BIrKEk5x3Vf6FLIpZJ0PvpHc=; b=oM2stVaR4ngE7i35NOdX6iq1s/f8qbRGXR94aaJ/+YhJ2imYYxKXV365Btl/qVy5HK BBT9BvEgh1qpjqb/zBKVBewSjktSq5M+o289lBJgH3GzlVweWk6VYJWSMn0+jsWIO1E4 vdgMafiFS0M1bH1jQI8b/aQ9DUQmYkAhXoEUA6D8tCpozEf5UtM7RCNbEN2v0IbfGabC MsL2C5XOl6KUzfGb080oGTiH713MeHYUcPI+sXIgTBKRhnotl29h0f1jmz3b4qKTWqrx N9PVkgAT7kCjz4T/jJRQ8wqJUPkzg3mXkLYxRW5R95fsCEK0yKzCTpAhBNX4K4ygPXQY n4rQ== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=sNkf5at5; 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.1.48 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=pW8DZPXL0yDnA9IKnS/BIrKEk5x3Vf6FLIpZJ0PvpHc=; b=fSkc3+aOUK2wy9L+Ph0kb0irrdTpgzPs9YAi9TH1K5Y8GNdaNZaU0mdVcEjH21pW6s BmBvw4tVSULf4yPhciGUka1U/IBjxLmGO1dJa+eep9A9wVqXDG6aDqZVBMWFdCLbUKJX ZuQpzyQU0AfFh/hQAmmlsHQoc9FXdwOdFmmwBaf+OvP3RpGk/kUFLb38RMTfnagR1EBY UnwQkVNTXlsHbkOFvdOqZepHNcx06Oti30NRK5PpAHXkcmCWZv4oj8KQnkRoDY8COARV OERFZOdeYdbpj0Hbcs4eMt+Jgz8PHiFb6jVekFW4J28URXB7OriBIqZXD77qbdW2Tu2H LtPg== 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=pW8DZPXL0yDnA9IKnS/BIrKEk5x3Vf6FLIpZJ0PvpHc=; b=M3hQK/+Owy+arzjXOgPAgY1zMk3DjcRtj6prI6KkV/hW0uk3vmjw1vuQ6xNRlU075T CMrQNMjCdQYCcTBqWO70sB9HFoqXPrcdI3Bt15iup7SYfDZy33mkVbnI8cT/DO9tcsKL zBMlZPzN4ShyAhJuV0WCF3UzIzO9FYPL/1soq9aoJYmbPlUbMrmYdNOLs+Tr+Hoo5ubJ w/o6UFcvvqjaNYHIGf//6ydlAnSwbQgWiqexNrrDhFeMrhqbIYe/+b3qaBZ9tVUq0Ll5 Yl5r3kmdpVKgJk+ZAQstvobcMjPZwe7heD5ZyNs/XELNGSZWhsVsQRahNtwKc/2pbQ6Y JC3A== Sender: isar-users@googlegroups.com X-Gm-Message-State: AJIora8GCAbz+aC+KoX1rMugqT2atBr9nInUZJqJvnQCq0LVbf19uz8R EoOVVP0/22D8JVoj+rpMKcY= X-Google-Smtp-Source: AGRyM1s8Q/Me0bpVNmz86u/uW+seMOQdR8/C98RgAg+4HkzMU5zLTcANoZCBmwn4GN3n7bJYJf+B3w== X-Received: by 2002:a17:906:7482:b0:722:edf9:e72f with SMTP id e2-20020a170906748200b00722edf9e72fmr30438008ejl.92.1658234129768; Tue, 19 Jul 2022 05:35:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a50:d0da:0:b0:43a:77a6:b0d with SMTP id g26-20020a50d0da000000b0043a77a60b0dls108158edf.3.-pod-prod-gmail; Tue, 19 Jul 2022 05:35:28 -0700 (PDT) X-Received: by 2002:adf:cf0a:0:b0:21e:2970:bade with SMTP id o10-20020adfcf0a000000b0021e2970bademr4668190wrj.455.1658234128739; Tue, 19 Jul 2022 05:35:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658234128; cv=pass; d=google.com; s=arc-20160816; b=gOXOBN1UveQX9p0Fsn+EX1WhYUljUPZ/xozQBVMmTp8UuSZgAMEghlvTBR4msxUUhV 6s+X0EcLXjffus5NE8SQD+MklCapxMwfvX4YXbVW38OQl0Zkv0Ukuoex2tKSjA48bhaQ TFvP5mdIYgEfPnCaahNWGUlcIGx9J1mWjFqrUwY0rNzdWtr022VLYAzixH2fzLPCdGXL CgS5I/RdeA1ihdoDQ0dHmLgl0RVFj0Hswf4yJGiHbu4nNZ+jcb/Cvw0vvTlAcc+M2p8N VZ7dOte2Jcg0b20sPAIaWzKFAllzE2vi8o/DsfH7Ovtfv/G/qtmkiOG0RIpBgmWUcGb3 rw0Q== 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=Bmt9vqRYp3GnI4pi3EwnVAfTftJGEZ/Y1cokhfqaJT8=; b=B0wAKNNSJ8pL2quExq9mfPst/vmfWK5ndZ+fEcQh6trPXKKs4n6xR+02lQQM8HXeWG 7wu4GFR7XDJ09xI776THHfgJyGGnTfy1x3xohKmL3FSK+QqIWWVb0SMOBEZkxLQ6zKkD VMWz+ELgZG3ThgR56InUXWAzX8Uzk7BuUb2YEvmF1gA7NLMwFszFOQI+ChQaWSxnwZ2/ fuuQLHe8JpbHl3k7nbNF89h59twUf8nMMm9IKh+LNekH1NP9anX4ZGsls3+YR7tx/SQV kYcZwwl+pTCWhieKMniTnT2REeV7GFA1y0/o8ceQB/KP6ulQTe/UgG1YwQZP28BvXXFz rVpg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=sNkf5at5; 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.1.48 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10048.outbound.protection.outlook.com. [40.107.1.48]) by gmr-mx.google.com with ESMTPS id u10-20020a7bcb0a000000b003a2ca59af2dsi365547wmj.1.2022.07.19.05.35.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jul 2022 05:35:28 -0700 (PDT) Received-SPF: pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.1.48 as permitted sender) client-ip=40.107.1.48; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nBsX1Ctw6z8LIkg65Q2MYxeBDH4uf7Iam/ZXx50W+fpE4g/k/ZCNxvfg0p8cy4i12kKCuNqIW2ZFHuW3gB0HsjT6mW0t5VEjmwGQ/W7vxKfdG6CDlOr89oUiM+4C9mOeosuzE10MSsmr7lQ04foDOIduaT2+sFaQrr4arzOCekYAT8jRpXwIVvXk1n4W2VxyudYHBzAYRxDjn1FpTvBeDOa8abw2XiTQ3X/atsG0kK5QVJ5DWU/cEvoTVsZlQxV01X88RcZqw2wBcNMJdmr/pleCqj1ydjNXq7uIt+SIUu9QItHQ8jFg1DVv9tvnwBivk3s7jd28Fw4yDpnE0bVhtA== 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=Bmt9vqRYp3GnI4pi3EwnVAfTftJGEZ/Y1cokhfqaJT8=; b=cpGA+dXhObdTDFN60V7RgafOjC37hICyo2ppY2yYTqGiKp6IQp0j5LF+qehZGizBascmRAuh82TCN9wc0SixcnYroNn1nn5bIDNUrb/jpvQcpbjg8j3+QFOt90IGz+kwH4cNAcDsmJkvTUR0Ol/6bzFbTpKQJvVGE6DD/cHrT6g+N1CSVhMMxbNolb1Uag9vSLBjGNP43FmE8/50baWMNsNRGUYSj/iAICy8ilWm1SZmonmmr5oLBaUcOSn8VMA05ZmtEbXvSHpGL+7INz91vrIDdv50gyKzWbDTcNi8sYiS5NYVCod/9jZ2RGJqfLwEtXA5D4HkII3BtVXoxlmlkQ== 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 DB3PR08CA0022.eurprd08.prod.outlook.com (2603:10a6:8::35) by AS8PR10MB6032.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:53b::12) 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 12:35:27 +0000 Received: from DB5EUR01FT098.eop-EUR01.prod.protection.outlook.com (2603:10a6:8:0:cafe::5f) by DB3PR08CA0022.outlook.office365.com (2603:10a6:8::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.14 via Frontend Transport; Tue, 19 Jul 2022 12:35:27 +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 DB5EUR01FT098.mail.protection.outlook.com (10.152.5.86) 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 12:35:27 +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 14:35:26 +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 14:35:26 +0200 From: Adriaan Schmidt To: CC: Adriaan Schmidt Subject: [PATCH v2 1/3] fix(isar-sstate): catch errors during signature reading Date: Tue, 19 Jul 2022 14:35:07 +0200 Message-ID: <20220719123509.308439-2-adriaan.schmidt@siemens.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220719123509.308439-1-adriaan.schmidt@siemens.com> References: <20220719123509.308439-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Originating-IP: [139.25.68.25] X-ClientProxiedBy: DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 51d9b3d2-150f-4068-6a27-08da698328e2 X-MS-TrafficTypeDiagnostic: AS8PR10MB6032:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uYExq/eB7BCXKFZvjOc9eadTB/I68e4UEYnw8gahEmuiX5vY6Gs+7T2Xpz2Er35ltJAnrIh9Pbg/bLM15XjHiZQ4EkYSDv/nlXRUodPWVKUfdOGQwegTZg1ZFO7B1E24Rtbo/rNaCIFoNuVaVLaB/7m27SuZVtAjud3cfwQGYaErA/t+D8roqHK/9j+ban9aaKRWTeG5lUS10aV1ChnZnsa/dUxqGY08RuO4Z75YnUsWLO8aANmZFGwhg6OMLVj7+kJ96nTVQP5c69l1wcmiEg2+p6CESXCFjxvbq71mIPlf0Xtvm4RmPSsk/0tbkHriXo6rXkB7Dh9xJDlW6YM1Rrv0Onkqf+tU56/CDaBYi7tb3tqd3HCy7fjtjIF2qOAGoffYr4r+hRv+wVcq5tIo88P5SOKHv/bS/vn8wQ0MUX5RqP5TW3epPao1Eei4URlQMWUnJNUNWNGqffs2qnPq+HmOxV7JYISkmAY1PB2mAU+8p0nfrDp5rJPoxBmCjRaboo/ci58QSc7JmifkOObMiuy/eOJIhI7OZK7ol0uIvivw6CNGqz2c3crYnKeDjnSdFcIlJr5kNFQXGrS1uf00qX7Q0OZ1alqhuWD+g/5pPwy/7OXzNTLlaxksL2R4jMaJxR3OI0zXa3FToYzI8SVCEmLGFX7btHICbybB5D2qc4umF8jdQUbjTetFJ0ZNAlicK6ErTEZEIYL1D1N4PVkTt4Yeoll4vAnf26RafjJ2gkhBDia33cbt86tBt36hNMJgWsWaUw9oxSoQ7n68MwVwg4Chknppwn/5nfdu/oRYzMaMgj96fN91aMHV+ls857Oc66NFwBVg3TODWLQoWLLMaw== 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)(376002)(396003)(39860400002)(36840700001)(46966006)(40470700004)(41300700001)(6666004)(5660300002)(26005)(83380400001)(44832011)(47076005)(336012)(16526019)(40480700001)(186003)(107886003)(2616005)(1076003)(82310400005)(478600001)(40460700003)(956004)(316002)(6916009)(4326008)(70206006)(8676002)(81166007)(70586007)(8936002)(86362001)(82740400003)(82960400001)(2906002)(36756003)(356005)(36860700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 12:35:27.3280 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 51d9b3d2-150f-4068-6a27-08da698328e2 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: DB5EUR01FT098.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR10MB6032 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=sNkf5at5; 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.1.48 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 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 | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/isar-sstate b/scripts/isar-sstate index 8ea85edc..5c47b479 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 @@ -803,8 +806,12 @@ def sstate_lint(target, verbose, sources_dir, build_dir, exit_code, **kwargs): for sig in cache_sigs.values(): sig_file = target.download(sig.path) with open(sig_file, 'rb') as f: - sigdata_raw = pickle.Unpickler(f) - sigdata = sigdata_raw.load() + try: + sigdata_raw = pickle.Unpickler(f) + sigdata = sigdata_raw.load() + except: + # invalid file or format... never mind + continue pn_issues = [] for name, val in sigdata['varvals'].items(): From patchwork Tue Jul 19 04:35:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 1995 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 14:35:40 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ot1-f62.google.com (mail-ot1-f62.google.com [209.85.210.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 26JCZd2J014975 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Jul 2022 14:35:40 +0200 Received: by mail-ot1-f62.google.com with SMTP id f95-20020a9d03e8000000b0061c75d3deaasf8230635otf.12 for ; Tue, 19 Jul 2022 05:35:40 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1658234133; cv=pass; d=google.com; s=arc-20160816; b=bEDftrAPnM7P7yTr3ZJlDNbKfkk924spIJRUP5jMVLvtM16/DZgjaYGlE5MHeZVteo gLmOIriNc+JPs+zn55tEGO2BPZkWr+0U+79r3dHjM33VqsQ/Iz/dxP6TfDthFPXXIsqD dL7+MBvgJ5b9mmsC/Iz7SK631zo1sbvKmO5JU8UEU6CKbeXRY644I8zs1R9aI/ugba9o HnUszGHkHMJWToU3dJJ6ZJTsMKWNFPGvW7KscY3wHxDWvCNgvZcCThEpCUv+BzZjU/qs bjyVjEFY69sNrb2kQzybRyWM7J2I2/1YedU2BURa5JpYsjwnYO+B3OiDKPok7ybjNvYC VAew== 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=WxG/Ynkit6jflx1FNM7IPt5VFQdkHE+9Nf3ElijlJlQ=; b=XDNMcJY10M8Z8LeyePZiEUc1aUNtt9ZYvyLYtYov74kGW9y+tQ0jPkb7FBZDoN/HHb gVBCU0+ZX28Z39TC/OHqbOJjvnH/Wcj8vvz9HSMKzG4/nQOrbsfI+1EbN0AVLyJ/j5YK UgQ30O1xJ/sFKdO91JKChUa2Pn71ufAqDvenZ63CNw54sllwUqyL0lDeFR7hBYxQyjp4 9qH1VyFvHWgIZsv054TLLhf2eOk++4ZrIXuqnbbaekz7zwGDFSz27LWVRehUpok/M8nZ eQv1kNHLO4a4HEodUrrCXpXPreO4WlVsF0+YkQxTXdI/40xiRlTZFIjmRs/g/jxV0Yc5 CA2g== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=dhnT6wlQ; 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.7.72 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=WxG/Ynkit6jflx1FNM7IPt5VFQdkHE+9Nf3ElijlJlQ=; b=C+P1XCbqMc5aOLqZZ06hNgCb4yNhtbWAp2KFGGwHDQODly0Nw21vnDBYKzV5GHsi4n DoHYkbYl9VLLGf2/MjWvlbnV9+Tz+brPRyF12o0MqJBpIpRe3mkApRNB6+l2XF4mpt9z HCeBOgavGmvVwxr30bLVq7BSyhgQ5loHxKWQ2oprkGAG9nwjtI51bOaJdqu/BlD/Qeh+ BPhsFBq6wYUA/FENUSycuz8UpxyUTic/QDPhMlMobPNfW6+JVGiHg34RstVCd6B2/MO4 rhSNtJn1Gh+g0m6hPe2cdEsyAy3nRXdTNA02Z11nQG0VwrK36eOeEfzDqbJTuY7neWZm v2HA== 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=WxG/Ynkit6jflx1FNM7IPt5VFQdkHE+9Nf3ElijlJlQ=; b=cIf7BF2vsKC270edwufjDvH3b5DiBNM/8H0ychOoxSSdc0VfEFlyLpvykAIyauRjBi 7i0zxLnA0baSvmGWQBJCG+SEnaWVcJ0lMLGxyZSVn1+i3hmlkSCt53Ci+XMQBKawnMUD Nj45WaMF7NamtzJLo5Sbwi7lXyoCNFoi/X8w0BtZiXFvwCF2x8dEEvv5TNwJIv62RSol yRdCTtnrrRV4yY5YC0+AxVVwOleECtYo9X4+T45HlErJztaEgwDmn1upoWzFSd6UT+SW BdbYIUsYq7P19PrISSaNGCNc+BZDUfS1msL+1A60TB/t9716uZA6qaJOhOeJ0GelrlER bLYw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AJIora+Zg9vW/QuCBR+SM/fY7iboLGqtahhwh/yPtgaVMhpn36AOT8YN mXm5Nf9CE4SEaC9mULc+eXI= X-Google-Smtp-Source: AGRyM1tIav4iz558ltHxnUgaLY4Ion+/R7APTyuz+nEhTONa1putrz+YjYiElVdnVL3f34rlMy1uHw== X-Received: by 2002:a05:6870:888d:b0:10d:6b96:2074 with SMTP id m13-20020a056870888d00b0010d6b962074mr1599083oam.218.1658234133749; Tue, 19 Jul 2022 05:35:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aca:c155:0:b0:33a:322:8c2e with SMTP id r82-20020acac155000000b0033a03228c2els163292oif.0.-pod-prod-gmail; Tue, 19 Jul 2022 05:35:33 -0700 (PDT) X-Received: by 2002:a05:6808:3097:b0:33a:4534:c845 with SMTP id bl23-20020a056808309700b0033a4534c845mr11531437oib.184.1658234133266; Tue, 19 Jul 2022 05:35:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658234133; cv=pass; d=google.com; s=arc-20160816; b=FyTOoQoRYYegOkTxqa2PFbkYnurlQP/RfCjQvIF7Akf1iTAxAtW9IM6bYWC8rWkm2Y 6xFR7OGnwN5D27ZCQPxU2eMOA85aVMvwlmeoveHq+LpuLpEVXxc4qgPs7O2YmidXOJJS Kxn+cvX/BdREyqhiwUpw0kQIFk6V/Zw5TMfWiR+wSQKisfaNwYUafz335+HudobHA975 zJA5R/UCXJqm/gPPAdSziW4gYIrzcH0kU+576t4mxdUu/dZcF5MtDgTxsxLexL2zldW5 BFLA9VSjt8OBZLsIoZI6EhHJ24vTGfHC59RaRC1pb2pU/ssJ4J5ha2Goxpfkbc6JtaYk pMfg== 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=nEBCqCtuSDFw8+W1GSN6KM8DCuQwwuJ7VKrXUf8VftY=; b=qFIrV24Q4HYBlpxabvJ0yytZVkri92YlqkZviam4vaJrSZdWs6iJawwO8LO50w3tMa xXjU1qYLgCrd5R22kHYk9uIymlwdwtexGrza12+vvp/3jLpKwrM+hSGY/c6G4jFXhSKG YJEOvxB288iGePtN1F8vSIKf3FW+/8AqauPcRYqHMuKjyDv1UAJKXLc2FHX/gkod7qhA LsUpEy//HoIIDzxGdQ12Fj9m/U3BBq/mB/9XDb0222/kIdfPWFJrJtvB8ZBMKNttXhtx H1WkJPIRKNUl78rQiWh86mOJ1mVlIUKi53MOKhOgPguHM8ESdlTqP9ZqwBrsHzT2bvtY SrbQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=dhnT6wlQ; 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.7.72 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70072.outbound.protection.outlook.com. [40.107.7.72]) by gmr-mx.google.com with ESMTPS id z14-20020a056870e30e00b000ddac42441esi1584565oad.0.2022.07.19.05.35.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jul 2022 05:35:33 -0700 (PDT) Received-SPF: pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.7.72 as permitted sender) client-ip=40.107.7.72; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hg2YKtt3Yo882NUtYvHVrwmeYfTO5j7LPWbTo2EyNrgnhPyBmq0t1pnH/EQDitlPxfD5KfojLUZ+t36F9F6x2sjau4Ixk8D0UvAD9bjBKFeYNDkpKd0vZo2KL5tgjfKnU2cHJWk5FX2dKhOl9wYMrLAvk1GAyIJ6h3YSy3/fvuMVACJXkkmA5uCQN4zkFy1mfuUfRT21+7LS1OWrlyq0J6iyD3dbAokHwDMoxgdgWQL/kmVjR/2ITJmlb8rw+9c64kSJdTecAcYGNZVKQnAa6TMcyknb0jRMk3P1aqGztSSOO0A58LkL/dl7J3u2ipCwbLGO0BlJp+C7VvHUj1qAPw== 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=nEBCqCtuSDFw8+W1GSN6KM8DCuQwwuJ7VKrXUf8VftY=; b=RMRqDO9FIamZOcQMDDkzkRrQq9WaCGL5epWOv9L9bIMPlMB7mBXDi+l6hDyw3yUnRIOLZQxm6fOzAx5/5zd9qlsLFTa5nlskt2hY8GN28HMWadbENp26VkDGPRvmMG2VwXkUtPBImT/PwIRn3lnzX9W57aCzj2I3DWxACekB6LRnjEDUSZivAuA7HYIwVAxTvyh7VBo47Vwi17q2+aEK+ZS0NbSiIsLI2D3YyghkeF2AEfdfrlcWf4nbu64G1n6/0NnPuTaeFCXyPQD0B5ApsLaAd7/Zw+e3rAuqpuX6NiSsd+GnseI1AX15w2MTiqGEvjQH0SRyguVI9W2BGtK9lw== 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 DB3PR08CA0007.eurprd08.prod.outlook.com (2603:10a6:8::20) by AM4PR1001MB1268.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:200:90::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Tue, 19 Jul 2022 12:35:27 +0000 Received: from DB5EUR01FT098.eop-EUR01.prod.protection.outlook.com (2603:10a6:8:0:cafe::8) by DB3PR08CA0007.outlook.office365.com (2603:10a6:8::20) 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 12:35:27 +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 DB5EUR01FT098.mail.protection.outlook.com (10.152.5.86) 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 12:35:27 +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 14:35:26 +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 14:35:26 +0200 From: Adriaan Schmidt To: CC: Adriaan Schmidt , Felix Moessbauer Subject: [PATCH v2 2/3] isar-sstate: refactor exit codes and error messages Date: Tue, 19 Jul 2022 14:35:08 +0200 Message-ID: <20220719123509.308439-3-adriaan.schmidt@siemens.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220719123509.308439-1-adriaan.schmidt@siemens.com> References: <20220719123509.308439-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Originating-IP: [139.25.68.25] X-ClientProxiedBy: DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5d0e8950-9a56-4ba9-dd24-08da69832916 X-MS-TrafficTypeDiagnostic: AM4PR1001MB1268:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OgcevIKhu9GQMTIx5i64aTjHCzrI+5/g6+w4IOxt4ywjMxppdnZLN923Z44l2+kp6tFATarpkVWBnzi7Fm7bG6vJExQFJ4I0qzfWvoMGhGXYGcf6sE0juuAsrzgBtk9wX2n0xRNIn8mGljuZPzL3f90kbzPC8KkS6YkFNKLGBa0jXDlVNLscYBg0fP4E7DBnse6uzeGIuYCQuZBCyEwyYBRycq3ez1YFC+oECZaT122nQuu/rn5jlWcZYc20xjvPhNCZ42zMoIyFKmWIDpDpvUqSSEDLzE+sYI0t+xQNH6K797HA66+POgeAdYSJVJTR09kTLl4VjxgYwgPhf5gX2ovifKLY9Uv4pXGdSF0bNftLBhr3nBbJSVR8ZRBQdtGiHHjNOSvwig0tzwudEzLe5uQyvBRY7VZ2uGqa8+6UgCXj6NWoW494tUCyiqrI6LDT/HkGQM2Mr4cwpXt3ZRYM6Xy6cgVAv8RN2uberWfoavNRvmprX2TKVQJw1mGvRFQWaNso8ZqjQkJ++bq6gKc84up1ArMQjhUX3rOYEbx6/Xno77EFnbCk8705iEdzgdEaEjtLOdjXJIHUrkKaXDRVGajkouqGUuXDKu3YBk3tjOPhAx3I7S2nXvVXUO5nGyyNJd5vpiEQ+B8UpRjFkWfgeCrncnQTAzun4DW+LLr++5YQf2sFLyRlLIBYBAGy1Pro33H9RddAlP8G/APvMW2kbaLUGX6oUcU6hPxOpyxQLH+ey+lD9YHYBQHuPAqXIc1o8/W1U6C9mILRifKeuBFiVkMwsBNxkzjPbR/XZkVLtbmukRiphDJh+SNRvZqmc23nqcwvyclMlTD7p+UCWqpfGg== 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)(39860400002)(396003)(136003)(346002)(376002)(40470700004)(36840700001)(46966006)(956004)(2616005)(5660300002)(86362001)(1076003)(2906002)(41300700001)(82310400005)(107886003)(26005)(6666004)(478600001)(82740400003)(356005)(82960400001)(8936002)(44832011)(70586007)(81166007)(40460700003)(83380400001)(186003)(336012)(36860700001)(47076005)(40480700001)(16526019)(4326008)(54906003)(6916009)(316002)(8676002)(36756003)(70206006)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 12:35:27.6561 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5d0e8950-9a56-4ba9-dd24-08da69832916 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: DB5EUR01FT098.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR1001MB1268 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=dhnT6wlQ; 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.7.72 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 5c47b479..76bae544 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')} @@ -843,7 +844,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 Tue Jul 19 04:35:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 1993 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 14:35:37 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f57.google.com (mail-lf1-f57.google.com [209.85.167.57]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 26JCZapV014969 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Jul 2022 14:35:36 +0200 Received: by mail-lf1-f57.google.com with SMTP id k25-20020a195619000000b00489e6a6527esf5282940lfb.8 for ; Tue, 19 Jul 2022 05:35:36 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1658234130; cv=pass; d=google.com; s=arc-20160816; b=KZ5ipNk/7eKYXrxn68/zJXestRg1mZiJ7owAH6Juq+AmtgIm/4HDzGqmMISuXv9i4J 7T8nUPUnWFE4Y78bnNSI3JYxCMlFDMaokMay3kYM9mGRw+3Wb9a4/0zz+MdI9o4nYho/ 76v53gtNYTk59dTg9rLKVhAtn6LjdiXUl7dwIHVShLBujGTPCiacRQvd+AsU1emLODKS ClYVSmUMLcZMeIumYJHljlazhGAGYNCs1lXdxyei2UGBOCbwljSNk4GN+t6qGoi1YCPd vFTyyph4Tycuwzc+hz4vcrEkFugZmPRjvIAqoGlmaNiAOwjWHr6a7OCrpvJipiIVHqK7 JoIQ== 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=oIb1jAHcFZ7X4Tsrux4vXX1OW2cTUmnzZ9JX/lDpJYs=; b=mAwXr1H7sKJCH9I/8DhCGbuHrorjDR42z1bwyEgi4ULg6KntWKCb590oOBth035JBS h5rhWGA1bYRwobG9Ja4+7DdlRcMqEbPpepreIXjSgtHA/jhzBGVURDopRxFU0cW6Ycs4 Fwdac20x9ZYWEmrBAgF8cYmzwzSo2T3QzhSDX4rmisVsbDcLOwM+EDZoGOFChWHYc4CB Eq8jz/9S4X7SMsJy0+xOoQAteWoGecdGnsn0z3B14fhIpzqYrSrW/KrYtxq7k1P403PQ lJFgQSqI7ragRWwerVGmJ/w27bNvTdcw6HfnBnX1lYvZVXbTJULd9BC0AWrXdNHYp+2T Btpw== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=of8TrP47; 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.22.56 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=oIb1jAHcFZ7X4Tsrux4vXX1OW2cTUmnzZ9JX/lDpJYs=; b=DtV2Px4RKwonmmzk250e5luOh3qtWAIN+eD/0JTvLCFQRvQknpdYmDqm/OqzzDOB1W bv6q1M2tCKt/6gEjXNtNG9bB7r+cSFVcpoYFQ83zrBPvDBfmoOwBG5CAoiefeZN7GJra 4hk8PUuSyn1Q7LU9fgVZeIGHxPnEzgKKR5FOvFZ4830q7lCMNx4Id5mKQPSTh1HMht3X vD5tG3spalmk8rNLgb47+ldtpuO61U9MiW5SM4gSeR2il0NHmPzRB+LgoAB5uPf1lY2+ bWoy1BjJKomgdNgZzy2JMuuK7zQ81MZ86Lm8Ek+vyQOpAtX5vafQryL0zlLvZpkCoyPF yDcw== 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=oIb1jAHcFZ7X4Tsrux4vXX1OW2cTUmnzZ9JX/lDpJYs=; b=sFhRrYx7+WSJpXbhudPPF9MJA6qTju0jDC+MAEg40IlEhxhrtZ6k1z4xM8FIfC+Kd/ wn50wZ9B6m2nsUQJwew30UX4ZNoydRnbxmsebbDlZOp14E9vutSebLeJEWJiyZrCpXQ7 k7ix5PueM6UcBaVbyskFiSYFW9bEE1MEQbt9AArl1nsfRk7JOTno1lw6VUtGvd8NwGia QuzH7kA7/Cz2UelnQfRrSDfQ0JY6e/MqXQDCz2JJZOa75S7mSZWmxHMNKiStkL51UeYE sT3g+7Cdm4h5lzqsuqIh/IGG/c1Hcrltv0X9SqgOjHVneQJqvfgbFZIiW1b7BXVdnQ7S NWCQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AJIora8O8/PKOd+0w1eiLG2g1qXGg5cfCEZ83S70iOjo/NREqrFFbBaE VTOFTbfX110v32nEZROlocA= X-Google-Smtp-Source: AGRyM1ujPchtZue5RbJ2t8i1X31vTdYrmpZEP5I5jdM1cwYwUTJeA8oRLJArtpeDgftFde9zL9t1Sw== X-Received: by 2002:a2e:8008:0:b0:25d:7a5c:d8a0 with SMTP id j8-20020a2e8008000000b0025d7a5cd8a0mr14389569ljg.414.1658234130434; Tue, 19 Jul 2022 05:35:30 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:3ac:b0:488:e12b:17e9 with SMTP id v12-20020a05651203ac00b00488e12b17e9ls2318126lfp.2.gmail; Tue, 19 Jul 2022 05:35:29 -0700 (PDT) X-Received: by 2002:a05:6512:a8f:b0:489:e797:d2d6 with SMTP id m15-20020a0565120a8f00b00489e797d2d6mr16642398lfu.29.1658234129298; Tue, 19 Jul 2022 05:35:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658234129; cv=pass; d=google.com; s=arc-20160816; b=Ai1vHJRKmVJqM5KDQ/WxXvpO8OPhObZdpbfO7Ge0yZOCLoE24C4Yad7XSTaVbcRHK/ S/enBSFwrFJxamShGWw3yTAzX+jmV6ELN0mglXg4fc1fHUY8Zo8ssC45xlbOzHzXe4cu TWgMbne+g/wysg6WWHE+RT+rrJS3A+KPCLZpIeD70u4EGnzb0oM6ZqJ0flYP50rLp1po SAfST4YyhyfoQE5+qX9evJP7qPvfYygjq3w5OhC/FH2oTDWvRi+YuGPtdkU+qoGvrgZA YLgigjQdy430i3PryVcJaXNeyBgBagi+RsZ0HfTILbJ8jiRJG+4JyBAHCBhqTPdSmF/S uNeg== 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=w4iheYdGrC3H0Egb93/8tgrcr4cKHzYUMNxoIiEwoCo=; b=0U2xsaUaRbCEBAVV1tmxAXFgOiSgE9UoA5ZUsIAc0PIip4rHxJEN2tUXlDqQ8QIXJW tWsNzJiBozPjb8pcrnx0euqMit7y164WZ9meaW/1N5NYPsoQpRCV6zQ/mc/JQLl6Ci3t 97cfeZ3eZhjTc75YvhKKLdHJ2Ae2+Umic9BTeOqdVauhKG/Gk1mK9nIDNfTIMeQXgMtZ Y2K7ISNe0uotKM9+5Q87OSyJmMyGg702AZ1VnoNmPdvy1CpQLk/zUYAM2H46yQk95NVY EQTxrPKTYsB+IAGePWPNT1GZe8/TAuW74IP7G58W8MTXzHfqwfd2vdzCe6kiBstcS8g6 dHfw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=of8TrP47; 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.22.56 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2056.outbound.protection.outlook.com. [40.107.22.56]) by gmr-mx.google.com with ESMTPS id z20-20020a05651c11d400b0025a8d717b7dsi393873ljo.5.2022.07.19.05.35.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jul 2022 05:35:29 -0700 (PDT) Received-SPF: pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.22.56 as permitted sender) client-ip=40.107.22.56; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ALY38Eu96ndU6MggX4pHfnB9Bwn+WyRuFW629EgGfCkZek4E6vM9XGuAzDQDJUAtYg++AxjCoYEx2cVlFL72ynOkeGmzQrtvsnhkpDxCip31cFOkayZCzIEBqJTUgWIQQKOMhb7B4RnlfBYY8gLm+fdkrMxWzNeJZQ6t/7hPLoYtKOEWZQCO9fJjZYJJDHgvi9sQGB/NmQzJ8csGnZi6Mysbjb+Ynk3ARUCOGgn4K7t98E7zbXnTf1OlAVMbYqVuxirLj5ZN87rk08W7xqxsA4Ywm2WGJNRoZFDuk/ElVWK4+DBHAf0CQ1R8qCHdobit8qG5DT7kPPZ79+/3rG8ctg== 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=w4iheYdGrC3H0Egb93/8tgrcr4cKHzYUMNxoIiEwoCo=; b=IQZQlCE/E6j78JylnUU2LNdocA+X0LKpX/ACdz0H4tYx6Ox9yWllhcuyZk5B4tSEclWCyEnFBOtgmv+39jF5ZC62j7SLhqzvDRZXkdTNCGymUYOzZ8GC2RG14cif/mnZzXoLiZ/QR7MYr6WvpOvJy3vgqQ4xbxLdo18s9zGLcCQLkg62My9t+pY0abSMpQqB+a6W90WEwGDXH673aVZovmtHc2eryIDTXxQw44r3X8e1BIXXqeDgkR5hYsAsj76vRohdnQN4xZrpJ1kJvaznngF+dZ6IXwZ5GZm5zWl1pddi4Zmqv69CpKD3VIqHa4dx/UOQf1Yg/Q9ciZ0PDRHcgA== 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 DB3PR08CA0006.eurprd08.prod.outlook.com (2603:10a6:8::19) by PAXPR10MB5688.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:247::19) 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 12:35:28 +0000 Received: from DB5EUR01FT098.eop-EUR01.prod.protection.outlook.com (2603:10a6:8:0:cafe::5b) by DB3PR08CA0006.outlook.office365.com (2603:10a6:8::19) 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 12:35:28 +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 DB5EUR01FT098.mail.protection.outlook.com (10.152.5.86) 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 12:35:27 +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 14:35:27 +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 14:35:26 +0200 From: Adriaan Schmidt To: CC: Adriaan Schmidt Subject: [PATCH v2 3/3] docs(isar-sstate): update documentation of lint command Date: Tue, 19 Jul 2022 14:35:09 +0200 Message-ID: <20220719123509.308439-4-adriaan.schmidt@siemens.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220719123509.308439-1-adriaan.schmidt@siemens.com> References: <20220719123509.308439-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Originating-IP: [139.25.68.25] X-ClientProxiedBy: DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0ab08f6d-1459-4030-ee27-08da69832948 X-MS-TrafficTypeDiagnostic: PAXPR10MB5688:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NIwvoMlJDsrWa5/BNhEX5cwVI14BL4Bxow3LS0q7MIMNPVqGfZXGJsKyCwXt8WFL6AFTpsDHyTN8NFVIuHeHOy4jI363r0byGbKKHXKNA8VXedqtyuuXOmTX1uTJpHsrG/ok8Kkd5jyGMDDNSXRPjZAdrFGO4neUAGkVzEskYHMJwhJntwfGrlDCG75KGC4pjjffdnZaQ9A2G97wCcO3NisV7RVfVyMqShNY3WTrx58XA3fnmknAx5P+slG1sWwiTNb4zZot1CYXUolWS1AMI+s6LLMUE2z4D3pWVqVGRVBe/wHVKWRRRoQ9E7wtcWt0xa7q2304hE13t90xdEQtLWLZK8TRtFAtoApcMjpTdtX1TzfvUZXBMRT1A977cMISHJ0Sp5ummRTATMRS0kINQ//xXiDZJIOvOAWLIDzriMnZyeRxh1t9IzvHksULv1Ecqi4QLTVRbkAyd9PL59nJHJ2rG3O4RSq1okjQubk4G4JM7/tRy9eAepthbdEkhy5N9ApaFYRj1sgEtIe7E0Vzdd1R4D2FIPLqik8Xv7gSQa6Tyw3Nbj37Imx9OfN693raYdlagQ337lyh7PyrV8Iyp0cHsn/7fgmMsV6TC6fm2qf9QiN0pNZbm8O/3e2S6SJ44pZzr+S1a08Pu8bK0qKXtzkdV8+0KLBMTXArcinlUKzFcNoyAMUXQ179b5laqOWv6rFEcA6iZ1IJ1FwylVVbsIS3Vs0eFpIKQHJsu9SivSGqkV93y11opyvju8VyYTdUmNCA6GL9PTSkENdaT9rSUQq3WXViEYCsICIFlPuGrwP/5J4UvmA6Hx7kRTFikX66a1akj0cgJHsSDwwVfGyfeQ== 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)(39860400002)(136003)(376002)(346002)(396003)(46966006)(40470700004)(36840700001)(44832011)(2906002)(478600001)(316002)(107886003)(82960400001)(2616005)(956004)(36756003)(86362001)(26005)(8936002)(6916009)(70206006)(70586007)(4326008)(5660300002)(186003)(8676002)(336012)(82310400005)(82740400003)(1076003)(47076005)(40460700003)(40480700001)(83380400001)(16526019)(36860700001)(41300700001)(6666004)(356005)(81166007)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 12:35:27.9842 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0ab08f6d-1459-4030-ee27-08da69832948 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: DB5EUR01FT098.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR10MB5688 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=of8TrP47; 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.22.56 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,RCVD_IN_MSPIKE_H2,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 76bae544..3a1945e7 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