All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Du Dengke <pinganddu90@gmail.com>, bitbake-devel@lists.openembedded.org
Subject: Re: bitbake-worker: where the data come from in handle_runtask?
Date: Fri, 03 Mar 2017 10:00:16 +0000	[thread overview]
Message-ID: <1488535216.24526.128.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAKHP1dvb0zhmV=FgYWuyMUMpLHxEX+8a=MrZ0+WyEvzKocfBtg@mail.gmail.com>

On Fri, 2017-03-03 at 16:41 +0800, Du Dengke wrote:
> In file bitbake-worker, the function handle_runtask:
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> fn, task, taskname, quieterrors, appends, taskdepdata, dry_run_exec =
> pickle.loads(data)
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> why the "pickle.loads(data)" return 7 results, before this commit:
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 58f08429 (Paul Eggleton      2016-12-16 07:09:13 +1300 428)
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> it returns 6 results:
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> fn, task, taskname, quieterrors, appends, taskdepdata =
> pickle.loads(data)
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> where the data come from, I want to forcus on the taskdepdata.

In the commit you mention, you'll see this piece:

-                self.rq.worker[mc].process.stdin.write(b"<runtask>" + pickle.dumps((taskfn, task, taskname, False, self.cooker.collection.get_file_appends(taskfn), taskdepdata)) + b"</runtask>")
+                self.rq.worker[mc].process.stdin.write(b"<runtask>" + pickle.dumps((taskfn, task, taskname, False, self.cooker.collection.get_file_appends(taskfn), taskdepdata, self.rqdata.setscene_enforce)) + b"</runtask>")

This is the change which means "data" now has seven elements instead of
six since self.rqdata.setscene_enforce was added.

Cheers,

Richard




      reply	other threads:[~2017-03-03 10:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-03  8:41 bitbake-worker: where the data come from in handle_runtask? Du Dengke
2017-03-03 10:00 ` 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=1488535216.24526.128.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=pinganddu90@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.