From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: Sakib Sajal <sakib.sajal@windriver.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] buildstats.bbclass: collect host data only when do_testimage fails
Date: Mon, 30 Aug 2021 21:21:59 +0100 [thread overview]
Message-ID: <30c543029b88d5e5be590cb37aeef864cdcd404f.camel@linuxfoundation.org> (raw)
In-Reply-To: <20210827193210.349031-1-sakib.sajal@windriver.com>
On Fri, 2021-08-27 at 15:32 -0400, Sakib Sajal wrote:
> Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
> ---
> meta/classes/buildstats.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
> index 0de605200a..874d30b292 100644
> --- a/meta/classes/buildstats.bbclass
> +++ b/meta/classes/buildstats.bbclass
> @@ -250,7 +250,7 @@ python run_buildstats () {
> except subprocess.CalledProcessError as err:
> bb.warn("Failed to get rootfs size: %s" % err.output.decode('utf-8'))
>
> - elif isinstance(e, bb.build.TaskFailed):
> + elif isinstance(e, bb.build.TaskFailed) and e.task == "do_testimage":
> # Can have a failure before TaskStarted so need to mkdir here too
> bb.utils.mkdirhier(taskdir)
> write_task_data("failed", os.path.join(taskdir, e.task), e, d)
Doesn't this remove all failure handling rather than just host data? That
probably isn't what we want and isn't what the commit message says.
Cheers,
Richard
prev parent reply other threads:[~2021-08-30 20:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-27 19:32 [PATCH] buildstats.bbclass: collect host data only when do_testimage fails Sakib Sajal
2021-08-30 20:21 ` Richard Purdie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30c543029b88d5e5be590cb37aeef864cdcd404f.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
--cc=sakib.sajal@windriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox