* [PATCH 0/1] Hob: fix 2098
@ 2012-03-23 16:01 Shane Wang
2012-03-23 16:05 ` [PATCH 1/1] Hob: add build status labels in the build details screen to make it more close to the visual design Shane Wang
2012-03-25 11:14 ` [PATCH 0/1] Hob: fix 2098 Richard Purdie
0 siblings, 2 replies; 3+ messages in thread
From: Shane Wang @ 2012-03-23 16:01 UTC (permalink / raw)
To: bitbake-devel
This patch is to fix bug 2098 to make the build progress clear.
The following changes since commit 8350c03eeca3f5d70984797ef784f29c71cbbb3b:
gst-plugins: remove obsolete orcc hack (2012-03-23 12:13:09 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib shane/hob-fixes-1
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=shane/hob-fixes-1
Shane Wang (1):
Hob: add build status labels in the build details screen to make it
more close to the visual design
bitbake/lib/bb/ui/crumbs/builddetailspage.py | 17 +++++++++++--
bitbake/lib/bb/ui/crumbs/builder.py | 3 ++
bitbake/lib/bb/ui/crumbs/runningbuild.py | 33 +++++++++++++------------
3 files changed, 34 insertions(+), 19 deletions(-)
--
1.7.6
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] Hob: add build status labels in the build details screen to make it more close to the visual design
2012-03-23 16:01 [PATCH 0/1] Hob: fix 2098 Shane Wang
@ 2012-03-23 16:05 ` Shane Wang
2012-03-25 11:14 ` [PATCH 0/1] Hob: fix 2098 Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Shane Wang @ 2012-03-23 16:05 UTC (permalink / raw)
To: bitbake-devel
This patch is to add build status (incl. "Running task XX of XX: XXXXXX") in the build details screen,
in order to provide clear information about task in progress and make the GUI close to the visual design.
[Yocto #2098]
Signed-off-by: Shane Wang <shane.wang@intel.com>
---
bitbake/lib/bb/ui/crumbs/builddetailspage.py | 17 +++++++++++--
bitbake/lib/bb/ui/crumbs/builder.py | 3 ++
bitbake/lib/bb/ui/crumbs/runningbuild.py | 33 +++++++++++++------------
3 files changed, 34 insertions(+), 19 deletions(-)
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
index 3605ee1..e82ccf3 100755
--- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
@@ -46,12 +46,17 @@ class BuildDetailsPage (HobPage):
# create visual elements
self.vbox = gtk.VBox(False, 12)
- self.progress_box = gtk.HBox(False, 6)
+ self.progress_box = gtk.VBox(False, 12)
+ self.task_status = gtk.Label()
+ self.task_status.set_alignment(0.0, 0.5)
+ self.progress_box.pack_start(self.task_status, expand=False, fill=False)
+ self.progress_hbox = gtk.HBox(False, 6)
+ self.progress_box.pack_end(self.progress_hbox, expand=True, fill=True)
self.progress_bar = HobProgressBar()
- self.progress_box.pack_start(self.progress_bar, expand=True, fill=True)
+ self.progress_hbox.pack_start(self.progress_bar, expand=True, fill=True)
self.stop_button = HobAltButton("Stop")
self.stop_button.connect("clicked", self.stop_button_clicked_cb)
- self.progress_box.pack_end(self.stop_button, expand=False, fill=False)
+ self.progress_hbox.pack_end(self.stop_button, expand=False, fill=False)
self.notebook = HobNotebook()
self.config_tv = BuildConfigurationTreeView()
@@ -82,6 +87,12 @@ class BuildDetailsPage (HobPage):
self.back_button.connect("clicked", self.back_button_clicked_cb)
self.button_box.pack_start(self.back_button, expand=False, fill=False)
+ def update_build_status(self, tsk_msg):
+ self.task_status.set_markup(tsk_msg)
+
+ def reset_build_status(self):
+ self.task_status.set_markup("")
+
def show_issues(self):
self.num_of_issues += 1
self.notebook.show_indicator_icon("Issues", self.num_of_issues)
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 5a292e7..8fb9fa0 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -533,6 +533,7 @@ class Builder(gtk.Window):
elif self.current_step == self.PACKAGE_GENERATING:
fraction = 0
self.build_details_page.update_progress_bar("Build Started: ", fraction)
+ self.build_details_page.reset_build_status()
self.build_details_page.reset_issues()
def build_succeeded(self):
@@ -600,6 +601,8 @@ class Builder(gtk.Window):
elif message["eventname"] == "runQueueTaskStarted":
fraction = 0.2 + 0.8 * fraction
self.build_details_page.update_progress_bar(title + ": ", fraction)
+ self.build_details_page.update_build_status(
+ "<span weight=\'bold\'>Running task %s of %s:</span> %s" % (message["current"], message["total"], message["task"]))
def handler_build_failure_cb(self, running_build):
self.build_details_page.show_issues()
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py
index 4c3fe2c..f38e9d4 100644
--- a/bitbake/lib/bb/ui/crumbs/runningbuild.py
+++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py
@@ -69,24 +69,24 @@ class RunningBuildModel (gtk.TreeStore):
class RunningBuild (gobject.GObject):
__gsignals__ = {
- 'build-started' : (gobject.SIGNAL_RUN_LAST,
- gobject.TYPE_NONE,
+ 'build-started' : (gobject.SIGNAL_RUN_LAST,
+ gobject.TYPE_NONE,
()),
- 'build-succeeded' : (gobject.SIGNAL_RUN_LAST,
- gobject.TYPE_NONE,
+ 'build-succeeded' : (gobject.SIGNAL_RUN_LAST,
+ gobject.TYPE_NONE,
+ ()),
+ 'build-failed' : (gobject.SIGNAL_RUN_LAST,
+ gobject.TYPE_NONE,
+ ()),
+ 'build-complete' : (gobject.SIGNAL_RUN_LAST,
+ gobject.TYPE_NONE,
+ ()),
+ 'task-started' : (gobject.SIGNAL_RUN_LAST,
+ gobject.TYPE_NONE,
+ (gobject.TYPE_PYOBJECT,)),
+ 'log-error' : (gobject.SIGNAL_RUN_LAST,
+ gobject.TYPE_NONE,
()),
- 'build-failed' : (gobject.SIGNAL_RUN_LAST,
- gobject.TYPE_NONE,
- ()),
- 'build-complete' : (gobject.SIGNAL_RUN_LAST,
- gobject.TYPE_NONE,
- ()),
- 'task-started' : (gobject.SIGNAL_RUN_LAST,
- gobject.TYPE_NONE,
- (gobject.TYPE_PYOBJECT,)),
- 'log-error' : (gobject.SIGNAL_RUN_LAST,
- gobject.TYPE_NONE,
- ()),
}
pids_to_task = {}
tasks_to_iter = {}
@@ -319,6 +319,7 @@ class RunningBuild (gobject.GObject):
message["current"] = num_of_completed
message["total"] = event.stats.total
message["title"] = ""
+ message["task"] = event.taskstring
self.emit("task-started", message)
return
--
1.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 0/1] Hob: fix 2098
2012-03-23 16:01 [PATCH 0/1] Hob: fix 2098 Shane Wang
2012-03-23 16:05 ` [PATCH 1/1] Hob: add build status labels in the build details screen to make it more close to the visual design Shane Wang
@ 2012-03-25 11:14 ` Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-03-25 11:14 UTC (permalink / raw)
To: Shane Wang; +Cc: bitbake-devel
On Sat, 2012-03-24 at 00:01 +0800, Shane Wang wrote:
> This patch is to fix bug 2098 to make the build progress clear.
>
> The following changes since commit 8350c03eeca3f5d70984797ef784f29c71cbbb3b:
>
> gst-plugins: remove obsolete orcc hack (2012-03-23 12:13:09 +0000)
>
> are available in the git repository at:
> git://git.pokylinux.org/poky-contrib shane/hob-fixes-1
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=shane/hob-fixes-1
>
> Shane Wang (1):
> Hob: add build status labels in the build details screen to make it
> more close to the visual design
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-25 11:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-23 16:01 [PATCH 0/1] Hob: fix 2098 Shane Wang
2012-03-23 16:05 ` [PATCH 1/1] Hob: add build status labels in the build details screen to make it more close to the visual design Shane Wang
2012-03-25 11:14 ` [PATCH 0/1] Hob: fix 2098 Richard Purdie
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.