From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7101979564966936576 X-Received: by 2002:ac5:cdec:0:b0:358:269a:8a24 with SMTP id v12-20020ac5cdec000000b00358269a8a24mr3438015vkn.22.1653558885338; Thu, 26 May 2022 02:54:45 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6102:f91:b0:337:971e:6a89 with SMTP id e17-20020a0561020f9100b00337971e6a89ls3265683vsv.1.gmail; Thu, 26 May 2022 02:54:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiW5Q5Kco9fYGAefGCW0G6CDxlxEoGxzexoLq5ioc02V189evEfGNVQngCbXX3cYMscoio X-Received: by 2002:a05:6102:559f:b0:337:cd03:5fbc with SMTP id dc31-20020a056102559f00b00337cd035fbcmr7286820vsb.23.1653558884756; Thu, 26 May 2022 02:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653558884; cv=none; d=google.com; s=arc-20160816; b=qik12xT3Jsl17lLq7DJJMefEmTt7GzJTctYz/I9lxpcS3EaqQ+TgRp4zDjkt9EhVus tdsRy0c/Rug1Q3IA9fCyKfHzDnQr/HpjbtAbAkChM0xBjN0aaUYA5i+PmIajMKEsP1ad 4BAXF/lV4GJJ0iCrdKI2QoKUkUjNhRD/5sjhiaL0PtGA8wnYvXrC1P6lnOgZ1GHfi2jT obqrGmozPVljUx0tgqp9qgb4gdm39y4UXrryyWpQ1cw3fZq6Kbv0ADKfokMX/Hhav8UZ 9wyzncItTiOa16v2lAnKdkTj52+xMOM/YV+FdkVIvpYqtbqUdq5SL+vgX5HuzHwbzyY6 b3tg== ARC-Message-Signature: i=1; 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; bh=+lEuFeUEjZVZSpyz3m9HjB0YumZZqieQ2n9ErA1sDLs=; b=h2Frk1E+9NSOkir4VX4ubVichqQv+ma2uNg06LKOv3vGWgLj4dV06wOt+noRpl2gwF RM7FC8KdFdj1dOcV88YMlC5FAyWkh6H71/OqxQhA57oJh+VYGpRD9THwE/q9PVlt0QiB phSZCJyjoTFEHxIDUri+OVDvXSGa8MtLCN2l5tBUw7mNxWiNEZt6ec9bdm52dH8sG5s9 7GzFjIpsdaHfetdAGNMV3fXHl9ZeVwr8LUHF98lLgF8tmzNFm56bv986EXRWAGC8H2Hh /vpmqH7FXM36SrDC1hkEGT3sfFNr0P0wvhbxO0xDz3NvPHULzBaRLcIULl7HblUejwWV YSaw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 19-20020a056122081300b0032cd88afa9asi40204vkj.3.2022.05.26.02.54.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 May 2022 02:54:44 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 24Q9sebh007007 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 May 2022 11:54:41 +0200 Message-ID: <6a0a98bb-2381-7378-90d7-482159b4065b@ilbers.de> Date: Thu, 26 May 2022 12:54:40 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] utils: Ensure shell function failure in python logging is correct Content-Language: en-US To: isar-users , Jan Kiszka , Baurzhan Ismagulov References: <20220526094739.6340-1-amikan@ilbers.de> From: Anton Mikanovich In-Reply-To: <20220526094739.6340-1-amikan@ilbers.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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-TUID: NzXznRGFlQ2o 26.05.2022 12: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. > > Backported from Bitbake 2.0 upstream branch: > https://git.openembedded.org/bitbake/commit/?id=7cae11f558f9ff5fd05ef23b789aaef92fb5a327 > > Signed-off-by: Anton Mikanovich This is temporary backport until we will migrate to the new Bitbake version (requires override syntax fix for all the layers). We are using 1.50 Bitabake branch which is already in 'End of life' state. Branch 1.52 includes the fix, but will be EOL this month. So we should migrate to Bitbake 2.0 branch which is LTS and will be supported for the next 2 years minimum.