diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-21 12:31:27 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-22 15:28:27 +0000 |
commit | 09da786273e56225aaf35ec33975e6674c7dec70 (patch) | |
tree | 56ca461a302d1c94c1feb4ab8e1f10db757f2c63 /bitbake/lib/bb/runqueue.py | |
parent | ecc93c24b2a2c0341274e69837b0c8f9a3407626 (diff) | |
download | poky-09da786273e56225aaf35ec33975e6674c7dec70.tar.gz |
bitbake: runqueue: Add further debug for sstate reuse issues
Even after enabling all our debugging, we had a reproducible test case
where sstate wasn't being reused and it was unclear from the logs why.
This patch adds debugging on the possible codepaths that were breaking
and allowed the issue to be debugged and fixed.
(Bitbake rev: 9233ad685b9b5e9eeb775fc71761712aaf0e876c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 595a58883e..bcaaf70abd 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -2555,6 +2555,7 @@ class RunQueueExecute: | |||
2555 | if tid in self.sqdata.valid and not origvalid: | 2555 | if tid in self.sqdata.valid and not origvalid: |
2556 | hashequiv_logger.verbose("Setscene task %s became valid" % tid) | 2556 | hashequiv_logger.verbose("Setscene task %s became valid" % tid) |
2557 | if harddepfail: | 2557 | if harddepfail: |
2558 | logger.debug2("%s has an unavailable hard dependency so skipping" % (tid)) | ||
2558 | self.sq_task_failoutright(tid) | 2559 | self.sq_task_failoutright(tid) |
2559 | 2560 | ||
2560 | if changed: | 2561 | if changed: |
@@ -2954,11 +2955,13 @@ def update_scenequeue_data(tids, sqdata, rqdata, rq, cooker, stampcache, sqrq, s | |||
2954 | if noexec: | 2955 | if noexec: |
2955 | sqdata.noexec.add(tid) | 2956 | sqdata.noexec.add(tid) |
2956 | sqrq.sq_task_skip(tid) | 2957 | sqrq.sq_task_skip(tid) |
2958 | logger.debug2("%s is noexec so skipping setscene" % (tid)) | ||
2957 | continue | 2959 | continue |
2958 | 2960 | ||
2959 | if stamppresent: | 2961 | if stamppresent: |
2960 | sqdata.stamppresent.add(tid) | 2962 | sqdata.stamppresent.add(tid) |
2961 | sqrq.sq_task_skip(tid) | 2963 | sqrq.sq_task_skip(tid) |
2964 | logger.debug2("%s has a valid stamp, skipping" % (tid)) | ||
2962 | continue | 2965 | continue |
2963 | 2966 | ||
2964 | tocheck.add(tid) | 2967 | tocheck.add(tid) |
@@ -2979,6 +2982,7 @@ def update_scenequeue_data(tids, sqdata, rqdata, rq, cooker, stampcache, sqrq, s | |||
2979 | if tid in sqrq.sq_deferred: | 2982 | if tid in sqrq.sq_deferred: |
2980 | continue | 2983 | continue |
2981 | sqdata.outrightfail.add(tid) | 2984 | sqdata.outrightfail.add(tid) |
2985 | logger.debug2("%s already handled (fallthrough), skipping" % (tid)) | ||
2982 | 2986 | ||
2983 | class TaskFailure(Exception): | 2987 | class TaskFailure(Exception): |
2984 | """ | 2988 | """ |