Lines Matching refs:tid
78 def get_unihash(self, tid): argument
79 return self.taskhash[tid]
81 def prep_taskhash(self, tid, deps, dataCaches): argument
84 def get_taskhash(self, tid, deps, dataCaches): argument
85 self.taskhash[tid] = hashlib.sha256(tid.encode("utf-8")).hexdigest()
86 return self.taskhash[tid]
209 tid = fn + ":" + task
210 if not ignore_mismatch and tid in self.basehash and self.basehash[tid] != basehash[tid]:
211 …adata is not deterministic and this needs to be fixed." % (tid, self.basehash[tid], basehash[tid]))
218 self.basehash[tid] = basehash[tid]
277 def prep_taskhash(self, tid, deps, dataCaches): argument
279 (mc, _, task, fn) = bb.runqueue.split_tid_mcfn(tid)
281 self.basehash[tid] = dataCaches[mc].basetaskhash[tid]
282 self.runtaskdeps[tid] = []
283 self.file_checksum_values[tid] = []
286 self.tidtopn[tid] = recipename
300 self.runtaskdeps[tid].append(dep)
308 self.file_checksum_values[tid].append((f,cs))
313 if tid in self.taints and self.taints[tid].startswith("nostamp:"):
319 self.taints[tid] = "nostamp:" + taint
323 self.taints[tid] = taint
324 logger.warning("%s is tainted from a forced run" % tid)
328 def get_taskhash(self, tid, deps, dataCaches): argument
330 data = self.basehash[tid]
331 for dep in self.runtaskdeps[tid]:
334 for (f, cs) in self.file_checksum_values[tid]:
340 if tid in self.taints:
341 if self.taints[tid].startswith("nostamp:"):
342 data += self.taints[tid][8:]
344 data += self.taints[tid]
347 self.taskhash[tid] = h
365 tid = fn + ":" + task
370 elif runtime and tid in self.taskhash:
371 sigfile = stampbase + "." + task + ".sigdata" + "." + self.get_unihash(tid)
373 sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[tid]
383 data['basehash'] = self.basehash[tid]
393 if runtime and tid in self.taskhash:
394 data['runtaskdeps'] = self.runtaskdeps[tid]
396 for f,cs in self.file_checksum_values[tid]:
404 data['taskhash'] = self.taskhash[tid]
405 data['unihash'] = self.get_unihash(tid)
411 if runtime and tid in self.taints:
412 if 'nostamp:' in self.taints[tid]:
413 data['taint'] = self.taints[tid]
416 if computed_basehash != self.basehash[tid]:
417 … bb.error("Basehash mismatch %s versus %s for %s" % (computed_basehash, self.basehash[tid], tid))
418 if runtime and tid in self.taskhash:
420 if computed_taskhash != self.taskhash[tid]:
421 … bb.error("Taskhash mismatch %s versus %s for %s" % (computed_taskhash, self.taskhash[tid], tid))
422 sigfile = sigfile.replace(self.taskhash[tid], computed_taskhash)
441 tid = fn + ":" + task
442 mc = bb.runqueue.mc_from_tid(tid)
443 if tid not in self.taskhash:
445 if dataCaches[mc].basetaskhash[tid] != self.basehash[tid]:
446 … bb.error("Bitbake's cached basehash does not match the one we just generated (%s)!" % tid)
447 …or("The mismatched hashes were %s and %s" % (dataCaches[mc].basetaskhash[tid], self.basehash[tid]))
453 def get_stampfile_hash(self, tid): argument
454 if tid in self.taskhash:
455 return self.taskhash[tid]
458 return self.basehash[tid]
462 tid = fn + ":" + taskname[:-9]
464 tid = fn + ":" + taskname
468 h = self.get_stampfile_hash(tid)
508 def get_stampfile_hash(self, tid): argument
509 if tid in self.taskhash:
513 unihash = self._get_unihash(tid)
517 return super().get_stampfile_hash(tid)
519 def set_unihash(self, tid, unihash): argument
520 (mc, fn, taskname, taskfn) = bb.runqueue.split_tid_mcfn(tid)
521 key = mc + ":" + self.tidtopn[tid] + ":" + taskname
522 self.unitaskhashes[key] = (self.taskhash[tid], unihash)
523 self.unihash[tid] = unihash
525 def _get_unihash(self, tid, checkkey=None): argument
526 if tid not in self.tidtopn:
528 (mc, fn, taskname, taskfn) = bb.runqueue.split_tid_mcfn(tid)
529 key = mc + ":" + self.tidtopn[tid] + ":" + taskname
533 checkkey = self.taskhash[tid]
539 def get_unihash(self, tid): argument
540 taskhash = self.taskhash[tid]
543 if self.setscenetasks and tid not in self.setscenetasks:
544 self.unihash[tid] = None
549 unihash = self._get_unihash(tid)
551 self.unihash[tid] = unihash
571 if tid in self.extramethod:
572 method = method + self.extramethod[tid]
573 data = self.client().get_unihash(method, self.taskhash[tid])
579 …askhash], 'Found unihash %s in place of %s for %s from %s' % (unihash, taskhash, tid, self.server))
581 … hashequiv_logger.debug2('No reported unihash for %s:%s from %s' % (tid, taskhash, self.server))
585 self.set_unihash(tid, unihash)
586 self.unihash[tid] = unihash
597 tid = fn + ':do_' + task
598 key = tid + ':' + taskhash
600 if self.setscenetasks and tid not in self.setscenetasks:
604 if taskhash != self.taskhash[tid]:
608 cache_unihash = self._get_unihash(tid, checkkey=taskhash)
648 if tid in self.extramethod:
649 method = method + self.extramethod[tid]
657 self.set_unihash(tid, new_unihash)
675 def report_unihash_equiv(self, tid, taskhash, wanted_unihash, current_unihash, datacaches): argument
679 if tid in self.extramethod:
680 method = method + self.extramethod[tid]
683 …hashequiv_logger.verbose('Reported task %s as unihash %s to %s (%s)' % (tid, wanted_unihash, self.…
692 … hashequiv_logger.verbose('Task %s unihash %s unchanged by server' % (tid, finalunihash))
694 …hashequiv_logger.verbose('Task %s unihash changed %s -> %s as wanted' % (tid, current_unihash, fin…
695 self.set_unihash(tid, finalunihash)
699 … hashequiv_logger.verbose('Task %s unihash reported as unwanted hash %s' % (tid, finalunihash))