* [PATCH 0/3] Minor sstate-related fixes
@ 2011-02-28 14:37 Paul Eggleton
2011-02-28 14:38 ` [PATCH 1/3] sstate.bbclass: avoid deleting unrelated stamp files Paul Eggleton
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Paul Eggleton @ 2011-02-28 14:37 UTC (permalink / raw)
To: poky
From: Paul Eggleton <paul.eggleton@linux.intel.com>
These patches fix two potential sources of problems with sstate stamp file
handling and one error message issue for setscene tasks. They are not urgent
for the 1.0 release but may be desirable.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: paule/sstate-fixes
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=paule/sstate-fixes
Thanks,
Paul Eggleton <paul.eggleton@linux.intel.com>
---
Paul Eggleton (3):
sstate.bbclass: avoid deleting unrelated stamp files
sstate.bbclass: always delete stamp files in sstate_clean
bitbake/runqueue: show correct task name for setscene task failure
bitbake/lib/bb/runqueue.py | 14 +++++++++++---
meta/classes/sstate.bbclass | 20 ++++++++++----------
2 files changed, 21 insertions(+), 13 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] sstate.bbclass: avoid deleting unrelated stamp files
2011-02-28 14:37 [PATCH 0/3] Minor sstate-related fixes Paul Eggleton
@ 2011-02-28 14:38 ` Paul Eggleton
2011-02-28 14:38 ` [PATCH 2/3] sstate.bbclass: always delete stamp files in sstate_clean Paul Eggleton
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2011-02-28 14:38 UTC (permalink / raw)
To: poky
From: Paul Eggleton <paul.eggleton@linux.intel.com>
Avoid deleting stamp files whose names contain the current task's name as a
substring. This will be especially important for example if do_package_write
is ever made an sstate task (as it would previously have deleted the stamps
here for do_package_write_ipk etc.)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/classes/sstate.bbclass | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 6f836a6..722e3c4 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -241,7 +241,9 @@ def sstate_clean(ss, d):
for lock in locks:
bb.utils.unlockfile(lock)
- oe.path.remove(d.getVar("STAMP", True) + ".do_" + ss['task'] + "*")
+ stfile = d.getVar("STAMP", True) + ".do_" + ss['task']
+ oe.path.remove(stfile)
+ oe.path.remove(stfile + ".*")
CLEANFUNCS += "sstate_cleanall"
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] sstate.bbclass: always delete stamp files in sstate_clean
2011-02-28 14:37 [PATCH 0/3] Minor sstate-related fixes Paul Eggleton
2011-02-28 14:38 ` [PATCH 1/3] sstate.bbclass: avoid deleting unrelated stamp files Paul Eggleton
@ 2011-02-28 14:38 ` Paul Eggleton
2011-02-28 14:38 ` [PATCH 3/3] bitbake/runqueue: show correct task name for setscene task failure Paul Eggleton
2011-03-15 13:21 ` [PATCH 0/3] Minor sstate-related fixes Richard Purdie
3 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2011-02-28 14:38 UTC (permalink / raw)
To: poky
From: Paul Eggleton <paul.eggleton@linux.intel.com>
For safety, always delete the stamp files in sstate_clean regardless of
whether the manifest file exists or not.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/classes/sstate.bbclass | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 722e3c4..b91c0b0 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -229,17 +229,15 @@ def sstate_clean(ss, d):
manifest = bb.data.expand("${SSTATE_MANFILEPREFIX}.%s" % ss['name'], d)
- if not os.path.exists(manifest):
- return
+ if os.path.exists(manifest):
+ locks = []
+ for lock in ss['lockfiles']:
+ locks.append(bb.utils.lockfile(lock))
- locks = []
- for lock in ss['lockfiles']:
- locks.append(bb.utils.lockfile(lock))
+ sstate_clean_manifest(manifest, d)
- sstate_clean_manifest(manifest, d)
-
- for lock in locks:
- bb.utils.unlockfile(lock)
+ for lock in locks:
+ bb.utils.unlockfile(lock)
stfile = d.getVar("STAMP", True) + ".do_" + ss['task']
oe.path.remove(stfile)
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] bitbake/runqueue: show correct task name for setscene task failure
2011-02-28 14:37 [PATCH 0/3] Minor sstate-related fixes Paul Eggleton
2011-02-28 14:38 ` [PATCH 1/3] sstate.bbclass: avoid deleting unrelated stamp files Paul Eggleton
2011-02-28 14:38 ` [PATCH 2/3] sstate.bbclass: always delete stamp files in sstate_clean Paul Eggleton
@ 2011-02-28 14:38 ` Paul Eggleton
2011-03-15 13:21 ` [PATCH 0/3] Minor sstate-related fixes Richard Purdie
3 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2011-02-28 14:38 UTC (permalink / raw)
To: poky
From: Paul Eggleton <paul.eggleton@linux.intel.com>
If a setscene task failed previously it was showing an incorrect task
name in the error line. This patch ensures we show the correct name, also
including the "_setscene" suffix.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
bitbake/lib/bb/runqueue.py | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 172e591..834b9d5 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -204,9 +204,9 @@ class RunQueueData:
ret.extend([nam])
return ret
- def get_user_idstring(self, task):
+ def get_user_idstring(self, task, task_name_suffix = ""):
fn = self.taskData.fn_index[self.runq_fnid[task]]
- taskname = self.runq_task[task]
+ taskname = self.runq_task[task] + task_name_suffix
return "%s, %s" % (fn, taskname)
def get_task_id(self, fnid, taskname):
@@ -1483,7 +1483,7 @@ class RunQueueExecuteScenequeue(RunQueueExecute):
def task_fail(self, task, result):
self.stats.taskFailed()
index = self.rqdata.runq_setscene[task]
- bb.event.fire(runQueueTaskFailed(task, self.stats, result, self), self.cfgData)
+ bb.event.fire(sceneQueueTaskFailed(index, self.stats, result, self), self.cfgData)
self.scenequeue_notcovered.add(task)
self.scenequeue_updatecounters(task)
@@ -1616,6 +1616,14 @@ class runQueueTaskFailed(runQueueEvent):
runQueueEvent.__init__(self, task, stats, rq)
self.exitcode = exitcode
+class sceneQueueTaskFailed(runQueueTaskFailed):
+ """
+ Event notifing a setscene task failed
+ """
+ def __init__(self, task, stats, exitcode, rq):
+ runQueueTaskFailed.__init__(self, task, stats, exitcode, rq)
+ self.taskstring = rq.rqdata.get_user_idstring(task, "_setscene")
+
class runQueueTaskCompleted(runQueueEvent):
"""
Event notifing a task completed
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] Minor sstate-related fixes
2011-02-28 14:37 [PATCH 0/3] Minor sstate-related fixes Paul Eggleton
` (2 preceding siblings ...)
2011-02-28 14:38 ` [PATCH 3/3] bitbake/runqueue: show correct task name for setscene task failure Paul Eggleton
@ 2011-03-15 13:21 ` Richard Purdie
3 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2011-03-15 13:21 UTC (permalink / raw)
To: Paul Eggleton; +Cc: poky
On Mon, 2011-02-28 at 14:37 +0000, Paul Eggleton wrote:
> From: Paul Eggleton <paul.eggleton@linux.intel.com>
>
> These patches fix two potential sources of problems with sstate stamp file
> handling and one error message issue for setscene tasks. They are not urgent
> for the 1.0 release but may be desirable.
>
> Pull URL: git://git.pokylinux.org/poky-contrib.git
> Branch: paule/sstate-fixes
> Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=paule/sstate-fixes
>
> Thanks,
> Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
>
>
> Paul Eggleton (3):
> sstate.bbclass: avoid deleting unrelated stamp files
> sstate.bbclass: always delete stamp files in sstate_clean
> bitbake/runqueue: show correct task name for setscene task failure
>
> bitbake/lib/bb/runqueue.py | 14 +++++++++++---
> meta/classes/sstate.bbclass | 20 ++++++++++----------
> 2 files changed, 21 insertions(+), 13 deletions(-)
I've merged these patches, thanks!
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-03-15 13:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 14:37 [PATCH 0/3] Minor sstate-related fixes Paul Eggleton
2011-02-28 14:38 ` [PATCH 1/3] sstate.bbclass: avoid deleting unrelated stamp files Paul Eggleton
2011-02-28 14:38 ` [PATCH 2/3] sstate.bbclass: always delete stamp files in sstate_clean Paul Eggleton
2011-02-28 14:38 ` [PATCH 3/3] bitbake/runqueue: show correct task name for setscene task failure Paul Eggleton
2011-03-15 13:21 ` [PATCH 0/3] Minor sstate-related fixes 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.