From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7101979564966936576 X-Received: by 2002:a05:6512:3ca9:b0:478:5a79:2497 with SMTP id h41-20020a0565123ca900b004785a792497mr24026827lfv.597.1653656393521; Fri, 27 May 2022 05:59:53 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:b1c:b0:472:38f0:bc75 with SMTP id w28-20020a0565120b1c00b0047238f0bc75ls1165248lfu.0.gmail; Fri, 27 May 2022 05:59:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYmbCzN80SSSrIO4sgxMxriO5NR9VvaUtTaWCsqLtp6Gj3r4NC5j44HMGvFKqpAfkL9QxK X-Received: by 2002:a05:6512:ba1:b0:478:5ab6:e752 with SMTP id b33-20020a0565120ba100b004785ab6e752mr23533512lfv.524.1653656392038; Fri, 27 May 2022 05:59:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653656392; cv=pass; d=google.com; s=arc-20160816; b=RxWICpXGNjrG7yGw7qx60UBccAukbmvlPtjtsFSlytLZPy3N2b4kgPRD5x1eZVRBec DjZ0hROPufu7fktuTJ95+hlZPH96SlIoSiii5J6O/hzn1yyKPOl4mKrwj4+UnE2FeyU+ 0GDu/SWGnF5s8jatL92o0OFM8D/Ldb2FUd1EmlvAaRoyKcyoKCVDrdRSfDaWQ6MdZTV8 1iTvnUJuSeRAYvvIUUkEyB+lkifOtT7fksk79pZBrq5ImrEsF25rmZWihFhQfyjbOSiJ XNj56YX/jqPcbzbWtEPDGEufEaGLpET33bE3mG6ZSgxSF3rQIsujAp99PuG01g7K4WB/ RT9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=pJmUc1vpgLdjK410AwOye59o6qYR7ITXsoVm78ceS9A=; b=oNpF7ZRFSznuISENVMmMjFTVdx/dn+AZmxLXMFNTRgrQh8UvCwkdYcvNsnpVxpWtK3 QhHN0S0D5X3mpwDh6ymFlbysAO28RqIf7hFr7BEOFm979Y180w0hq79TUwlNK5gCfg8P dbad7nFbFY3L6O7dJI/8JAmWjsndHGtvEEfmL/ykKznhOwhnpHPISDG0TqLd+gisnWwj 5WoQEp2xZ+vVtvdCE20rG7EVGEh1tAp4BNE4Z98G+CnfhGnwnWsSVjRMQsbrCU4lIHIz QRMjyAh2PkkQtoAUDEM4m7MV60YrnfU0X7ULkl6unWCAQTlWx32PAgst2ea28DRG/3ta Irmg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=n7SiOZlM; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe1a::61c as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2061c.outbound.protection.outlook.com. [2a01:111:f400:fe1a::61c]) by gmr-mx.google.com with ESMTPS id k22-20020a2ea276000000b0024da01a8c6dsi187607ljm.1.2022.05.27.05.59.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 May 2022 05:59:51 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe1a::61c as permitted sender) client-ip=2a01:111:f400:fe1a::61c; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=n7SiOZlM; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f400:fe1a::61c as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RoOl+M3QNjZaPsE6drjcOlyipk/fJ0rSyBL3yPdUVPCjBn56DJkVRaPAdcdu4h7YgKu3VpDe+9J/J2ZJvI3KKxnlCBoQPzpQlXeaW91Oi1rSgCdAoCpZ2/oKykXqYu+hclix770hTkHOQy8C4tUdAvaus6sdXEGL250XcuKZoojAirRBIU3qevofu3+pE2QlITPu3dp5F47fKMmP8bAIhB3e5uHGZBJbb4we0NI39GRUffViG1nhj2PJ0To+IKEZTel5r5y5Bd7CMqjpC9T7cNWEN5ehhb1RRcBhrgLwfg2ML//x9cQmlvkFWvuhXwr0bEqXsi6Wi//EfW1nxYdvdA== 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=pJmUc1vpgLdjK410AwOye59o6qYR7ITXsoVm78ceS9A=; b=XVnecQvIo0f0ZoByyWuptamUuGB2ak78RQvcZHaulnHhIeeaHZMq+9Qp9vrq2DEKXsPjGvLcul3pFEp/LnhherIk9MFQpjjaqwy1eyvoelK/G898roH1f4RiAxEdHj8oISBuaL/dTC+fuplOiwLCG5FPG7cjlG8gCaVZtNieIfs/ef7H6yQwG2GiR/j/9lmrMBLVILJurqj2Z2IhBvd4Q3wvm9SdkER0zNVZaAmtIhskgPMiSuy5fcQtECgM9HwoXjXu5SqZvbptMJ5YFscrcXZcwyqBqvJCdRQ+m5EAqXxOFLmPi/yECKluwK+3eAb4cgoNYpYoNbHy99JPmZ/lOA== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pJmUc1vpgLdjK410AwOye59o6qYR7ITXsoVm78ceS9A=; b=n7SiOZlMI6EDaWSX7WEedDJCC4fO05XxUjMFudmaW0nk6q6MTAAgjhdcHo23V5PNq5MbdWYEu9y08xqBRH2i7j6x7J/fV/QmOichmRtvMJYzESi8Ev+2AOCptlO1GMb4EwH/QzPGi+6Zi1Vj5Hgik8DPj0tWFN3rcwZl77pB+6xs8VjShxukOtEH2pBU/IOqkkigtIMBcfevPVrYixMjY3FL0JCJhhm93axxLL5NpKa1CPOcxmi/1X7F0Abo+UKRE8EFqF0yrLQzK6DF1gbiR3wOMesIXVE0ITQgEIHKTf1jJOIwEAZxYHvH5enTHFIwBrRTFQOhVS2TVZ1o/yjIaA== Received: from DU2PR04CA0355.eurprd04.prod.outlook.com (2603:10a6:10:2b4::34) by AM7PR10MB3974.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:13e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13; Fri, 27 May 2022 12:59:50 +0000 Received: from DB5EUR01FT102.eop-EUR01.prod.protection.outlook.com (2603:10a6:10:2b4:cafe::36) by DU2PR04CA0355.outlook.office365.com (2603:10a6:10:2b4::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.15 via Frontend Transport; Fri, 27 May 2022 12:59:50 +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 DB5EUR01FT102.mail.protection.outlook.com (10.152.5.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13 via Frontend Transport; Fri, 27 May 2022 12:59:50 +0000 Received: from DEMCHDC89XA.ad011.siemens.net (139.25.226.103) 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; Fri, 27 May 2022 14:59:49 +0200 Received: from [139.22.107.133] (139.22.107.133) by DEMCHDC89XA.ad011.siemens.net (139.25.226.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.24; Fri, 27 May 2022 14:59:49 +0200 Message-ID: Date: Fri, 27 May 2022 14:59:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] utils: Ensure shell function failure in python logging is correct Content-Language: en-US To: References: <20220526094739.6340-1-amikan@ilbers.de> From: Jan Kiszka In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-Path: jan.kiszka@siemens.com X-Originating-IP: [139.22.107.133] X-ClientProxiedBy: DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) To DEMCHDC89XA.ad011.siemens.net (139.25.226.103) X-TM-AS-Product-Ver: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-AS-Result: No-10--17.275500-8.000000 X-TMASE-MatchedRID: MWBePzxHDOw5QaOxwNGfvo9bHfxDWoibcjlZPhT8y9dwsULORIYX49St 27HtxY07LgjSK0d6aTq3pHdi19A6SNN+fPgG07Wf3x2xK1d6+JEaPxeMMHjQbtqLN7nigLBU7Go M1XXx8D9uwe1DQn3m1GeoO+CLycXkyNg6YeLmuDQ8J+pfovFCT7KRmD27FFbqyqVHp2cvsp6cql CdrhyhQPn6214PlHOFz0dbndAEvQDoeMOL9cwaKaHH5LBtNwbQ8OQl6AP/Q/tjVtAwIy+afjsY2 /UEG7fke3hrNe/ZbVmPwvzg9P77IQPFkIfJKyyMLxxHBMdDc7oy7wvC8Uc6Hfbta0OAYFzyfS0I p2eEHny+qryzYw2E8CKveQ4wmYdMJgb3dwKNrjoLbigRnpKlKSBuGJWwgxAra7leoU/OMhNYsCa awSIuKfFdB5x7Ui/BbabkFpysPkKoggZ0PJ3LmyRrDH1A7ZfaftwZ3X11IV0= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--17.275500-8.000000 X-TMASE-Version: SMEX-14.0.0.3080-8.6.1018-26680.007 X-TM-SNTS-SMTP: 8DBC908E6B8DCE3EC824B313647804EBF54FDE910A2F3AD348D98DD9D07A8E922000:8 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b544895d-2481-427a-7d03-08da3fe0c904 X-MS-TrafficTypeDiagnostic: AM7PR10MB3974:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qOzv4RV5mQq4G5LS0kKY5Kt7NZmMWDsSjyClzTsUTUpd6IDaMz0PTgubNqrTl/vv2nwdk8H9+1loXlUZsh/n1GtJDTXrpHyt1L6/Spw4S2EmdBsWtByez8RjF+cYpXC20GIcejokGGzbZK0uQup+TxNh3nquSdqHWjc2/Ru86flUbFv22Ql4mEEAvcfKInCWif+0LyqAOya1H5rCdEv4OOLf4OQ5bWFD1fImTO3YzEJLeuergLLiQfhoFqP3upXKKSBv3+uCaRHiNcMnLzSqQAkrozQr7vMqiwO7z/PjJt2WMJCAYzYqlYQVhCjiL67p2poG+DX+YMZysurQXe/6ffR/T4vpRuDZzaGySORh1bz7e38K5OakATICbnMbWiHgPkkEbjXSsb2jEFUkXqVg2f17lmWcfoh53I+B/inViY99YmvjMpfPMt/n0SCwqeFNC7+UFF3Op13GUQmEXLMtjIbymgZwPXbSNOXPPPGI+VYVXzsqZytU7jXhA73rIyh4YXo3/AN+EcwFbJYwcX+r8s9F/oTbb1VPJUePNBKXGPPtDC8ieSXvgA/iSUs1rvcbjjba07sleaeJYYBhwQC5Hxm61LufKYIskWeK1B7QBYsOfiM8MDZVYFvPOUbM/VV009WKfU6GZh3XmWwy/7UZbA4azOby9/m4VJSgm0H6Ng1hta+p/rohp0JKuvOUvLMzmzv5gMTjbsj5ny0dVy0WHWDaM+r6SF7ZXJ8iGZ45sIoWXgJn/52NSIsy/czcFIhQI4phedqDbTG+IlgxeLd15E8GD2khdOreNNMweGYo3plSJsHIzkgaSKcTI3imdNbMdB5fx6R2AS2/h+TcNIER5o/6AbwAqTa6g995LdMmBqc= 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:(13230001)(4636009)(36840700001)(46966006)(40470700004)(70206006)(70586007)(86362001)(36756003)(8676002)(31696002)(316002)(16576012)(6916009)(6706004)(36860700001)(82310400005)(47076005)(82960400001)(508600001)(2906002)(2616005)(6666004)(956004)(966005)(40460700003)(5660300002)(44832011)(53546011)(26005)(356005)(83380400001)(8936002)(336012)(81166007)(186003)(16526019)(31686004)(3940600001)(43740500002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2022 12:59:50.2991 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b544895d-2481-427a-7d03-08da3fe0c904 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: DB5EUR01FT102.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR10MB3974 X-TUID: hs3HsFdyee0f On 27.05.22 10:07, Baurzhan Ismagulov wrote: > On Fri, May 27, 2022 at 09:53:24AM +0200, Florian Bezdeka wrote: >> On 26.05.22 11:47, Anton Mikanovich wrote: >>> If a python function exec_func() calls a shell task, the logging wasn't working >>> correctly in all cases since the exception was turned into a BBHandledException() >>> and the logfile piece was lost which is handled at the top task level. >>> >>> The easiest way to avoid this is to allow the ExecutionError exceptions to >>> be raised to a higher level, we don't need the traceback for them. >> >> Upstream first? Why can't we ask bitbake guys to do the backport and >> lift our bitbake version afterwards? Is that already ongoing? > > We had checked https://wiki.yoctoproject.org/wiki/Releases: > > * 1.50 is EOL > * 1.52 is untested with Isar and its support ends on Tue > > That is why I think the optimal next step is to migrate to bitbake 2.0 after > the upcoming Isar release. This patch addresses the request to get the problem > fixed ASAP before the release. If anyone volunteers to drive the upstream > discussion -- I don't have anything against it, but I'd be reluctant to delay > the Isar release if it takes longer. > Agreed, we will very likely not have the power to re-active an EOL branch of bitbake. Jan -- Siemens AG, Technology Competence Center Embedded Linux