runqueue: Fix runall option for setscene tasks
PATCH 1/2 runqueue: Fix runall option for setscene tasks
If --runall is used with setscene tasks, it will still skip them if it can. By marking the tasks as targets, this avoids that skipping and means --runall deploy_source_date_epoch works as expected for example.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/runqueue.py | 1 + 1 file changed, 1 insertion(+)
lib/bb/runqueue.py +1 -0
@@ -1021,6 +1021,7 @@ class RunQueueData: for tid in list(runall_tids): mark_active(tid, 1) + self.target_tids.append(tid) if self.cooker.configuration.force: invalidate_task(tid, False)
Signature · 1 line
2.39.2
PATCH 2/2 runqueue: Fix errors when using -S printdiff
When running printdiff, messages like:
"Can't find a task we're supposed to have written out?"
might be shown. This happens when hashequivalence is enabled and is due to the use of "hash" when "unihash" should be used (which defaults back to hash). Changing this fixed various errors oe-selftest highlighted.
Also print the task ID when erroring about a missing task as it aids debugging.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/runqueue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/bb/runqueue.py +2 -2
@@ -1767,14 +1767,14 @@ class RunQueue: for tid in invalidtasks: (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) pn = self.rqdata.dataCaches[mc].pkg_fn[taskfn] - h = self.rqdata.runtaskentries[tid].hash + h = self.rqdata.runtaskentries[tid].unihash matches = bb.siggen.find_siginfo(pn, taskname, [], self.cooker.databuilder.mcdata[mc]) match = None for m in matches: if h in m: match = m if match is None: - bb.fatal("Can't find a task we're supposed to have written out? (hash: %s)?" % h) + bb.fatal("Can't find a task we're supposed to have written out? (hash: %s tid: %s)?" % (h, tid)) matches = {k : v for k, v in iter(matches.items()) if h not in k} if matches: latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1]
Signature · 1 line
2.39.2