runqueue: Add further debug information
PATCH 1/3 runqueue: Add further debug information
Further testing shows we should test some extra datastructures to help pinpoint logic errors more precisely. This adds some further data structure sanity checks.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/runqueue.py | 11 +++++++++++ 1 file changed, 11 insertions(+)
lib/bb/runqueue.py +11 -0
@@ -1918,6 +1918,17 @@ class RunQueueExecute: logger.error("Scenequeue had holdoff tasks: %s" % pprint.pformat(self.holdoff_tasks)) err = True + for tid in self.rqdata.runq_setscene_tids: + if tid not in self.scenequeue_covered and tid not in self.scenequeue_notcovered: + err = True + logger.error("Setscene Task %s was never marked as covered or not covered" % tid) + if tid not in self.sq_buildable: + err = True + logger.error("Setscene Task %s was never marked as buildable" % tid) + if tid not in self.sq_running: + err = True + logger.error("Setscene Task %s was never marked as running" % tid) + for x in self.rqdata.runtaskentries: if x not in self.tasks_covered and x not in self.tasks_notcovered: logger.error("Task %s was never moved from the setscene queue" % x)
Signature · 1 line
2.20.1
PATCH 2/3 runqueue: Add missing setscene task corner case
We weren't marking this special case of setscene task as buildable leading to runqueue task failures.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/runqueue.py | 2 ++ 1 file changed, 2 insertions(+)
lib/bb/runqueue.py +2 -0
@@ -2294,6 +2294,8 @@ class RunQueueExecute: if self.sqdata.sq_revdeps[tid].issubset(self.scenequeue_covered | self.scenequeue_notcovered): if tid not in self.sq_buildable: self.sq_buildable.add(tid) + if len(self.sqdata.sq_revdeps[tid]) == 0: + self.sq_buildable.add(tid) if tid in self.sqdata.outrightfail: self.sqdata.outrightfail.remove(tid)
Signature · 1 line
2.20.1
PATCH 3/3 runqueue: Ensure we clear the stamp cache
In reply to Richard PurdieWhen the task hashes change we need to ensure the stampcache is cleared out else tasks don't rerun when they should as we're basing decisions on stale cache data.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/runqueue.py | 3 +++ 1 file changed, 3 insertions(+)
lib/bb/runqueue.py +3 -0
@@ -2307,6 +2307,9 @@ class RunQueueExecute: (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) self.sqdata.stamps[tid] = bb.build.stampfile(taskname + "_setscene", self.rqdata.dataCaches[mc], taskfn, noextra=True) + if tid in self.stampcache: + del self.stampcache[tid] + if tid in self.build_stamps: del self.build_stamps[tid]
Signature · 1 line
2.20.1