diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-08 15:54:56 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-24 14:35:48 +0000 |
commit | 947c2ad65e4c59d01c603f767f11f9aa86b69264 (patch) | |
tree | b268f3237895053261517d0db00f9473182baad3 | |
parent | 0a61f86a8da5356ce0d894ef2ffb96ac6a219db5 (diff) | |
download | bitbake-contrib-947c2ad65e4c59d01c603f767f11f9aa86b69264.tar.gz |
runqueue: Add setscene task overlap sanity check
We've seen hard to debug issues where a task ends up in both the
covered and notcovered list. Add a sanity check to ensure if this
happens in future, we see it in the logs.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6e001410854792f9bb66a0409a2ac176171b0507)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | lib/bb/runqueue.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index e22ca72ce..acc128ec4 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1942,6 +1942,10 @@ class RunQueueExecute: logger.error("Scenequeue had holdoff tasks: %s" % pprint.pformat(self.holdoff_tasks)) err = True + for tid in self.scenequeue_covered.intersection(self.scenequeue_notcovered): + # No task should end up in both covered and uncovered, that is a bug. + logger.error("Setscene task %s in both covered and notcovered." % tid) + for tid in self.rqdata.runq_setscene_tids: if tid not in self.scenequeue_covered and tid not in self.scenequeue_notcovered: err = True |