From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Alex DAMIAN <alexandru.damian@intel.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 6/7] bitbake: event: adding events to allow bbclasses to push custom info
Date: Mon, 16 Sep 2013 14:46:47 +0100 [thread overview]
Message-ID: <1379339207.3484.304.camel@ted> (raw)
In-Reply-To: <389466a059c3e6ba345bec88bb710f9dd3311189.1379338189.git.alexandru.damian@intel.com>
On Mon, 2013-09-16 at 14:33 +0100, Alex DAMIAN wrote:
> From: Alexandru DAMIAN <alexandru.damian@intel.com>
>
> We add a new event that will be triggered by the
> package-building class, containing the information
> about the currently built package.
>
> Adding an event that will passi information about the
> content of each package file that gets built.
>
> Knotty UI will ignore these events by default.
>
> Maybe a mechanism for using a single generic event is in order ?
>
> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
> ---
> bitbake/lib/bb/event.py | 16 ++++++++++++++++
> bitbake/lib/bb/ui/knotty.py | 2 ++
> 2 files changed, 18 insertions(+)
>
> diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
> index 67cfcea..7dd9236 100644
> --- a/bitbake/lib/bb/event.py
> +++ b/bitbake/lib/bb/event.py
> @@ -589,6 +589,22 @@ class PackageInfo(Event):
> Event.__init__(self)
> self._pkginfolist = pkginfolist
>
> +class SinglePackageInfo(Event):
> + """
> + Single Package Information sent on emit_pkgdata
> + """
> + def __init__(self, data):
> + Event.__init__(self)
> + self._data = data
> +
> +class PackageFileSizes(Event):
> + """
> + Event that contains information about the file sizes contained in a package.
> + """
> + def __init__(self, data):
> + Event.__init__(self)
> + self._data = data
> +
> class SanityCheck(Event):
> """
Your explanation in the commit message isn't as detailed as it could
be.
I'm guessing but I suspect the problem we have is that the event cannot
be rebuilt on the other side of an XMLRPC connection without having the
event class in a common namespace?
This is therefore a hack to allow the event to exist in all the client
side namespaces.
Ideally we should really have an API which allows the classes themselves
to declare their event formats and not require adding to event.py every
time a new piece of code/event is added.
Presumably there is some change required to OE-Core in order for this
get used to?
Is the PackageFileSizes not contained in the other event data?
I appreciate we allowed PackageInfo in but I didn't like it at the time,
I like it even less now I see we're just going to keep doing this :(.
> Event to issue sanity check
> diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
> index 0211b50..03baa75 100644
> --- a/bitbake/lib/bb/ui/knotty.py
> +++ b/bitbake/lib/bb/ui/knotty.py
> @@ -477,6 +477,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
>
> # ignore
> if isinstance(event, (bb.event.BuildBase,
> + bb.event.PackageFileSizes,
> + bb.event.SinglePackageInfo,
> bb.event.StampUpdate,
> bb.event.ConfigParsed,
> bb.event.RecipeParsed,
Given the event masking that is now in knotty, do we need to do this?
Can't we remove this block?
Cheers,
Richard
next prev parent reply other threads:[~2013-09-16 13:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-16 13:32 [PATCH v3 0/7] webhob related changes in bitbake, version 3 Alex DAMIAN
2013-09-16 13:33 ` [PATCH 1/7] bitbake: cooker: clean up code and avoid duplication Alex DAMIAN
2013-09-16 13:33 ` [PATCH 2/7] bitbake: event: send the task dependency tree to UI Alex DAMIAN
2013-09-16 15:32 ` Richard Purdie
2013-09-16 13:33 ` [PATCH 3/7] bitbake: runqueue: add runQueueTaskSkipped event Alex DAMIAN
2013-09-16 14:24 ` Richard Purdie
2013-09-16 14:32 ` Damian, Alexandru
2013-09-16 15:23 ` Richard Purdie
2013-09-16 13:33 ` [PATCH 4/7] bitbake: cooker: add extra recipe information Alex DAMIAN
2013-09-16 14:10 ` Richard Purdie
2013-09-16 13:33 ` [PATCH 5/7] bitbake: cooker, command: add a command to return global data Alex DAMIAN
2013-09-16 13:54 ` Richard Purdie
2013-09-16 13:33 ` [PATCH 6/7] bitbake: event: adding events to allow bbclasses to push custom info Alex DAMIAN
2013-09-16 13:46 ` Richard Purdie [this message]
2013-09-16 13:56 ` Damian, Alexandru
2013-09-16 15:20 ` Richard Purdie
2013-09-16 13:33 ` [PATCH 7/7] bitbake: runqueue: add task hash to Queue events Alex DAMIAN
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=1379339207.3484.304.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=alexandru.damian@intel.com \
--cc=bitbake-devel@lists.openembedded.org \
/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.