diff mbox series

[RFC,wrynose,1/5] checklayer: Improve debug output

Message ID 20261124171356.951415-2-jose.quaresma@oss.qualcomm.com
State New
Headers show
Series yocto-check-layer runtime improvements | expand

Commit Message

Jose Quaresma Nov. 24, 2026, 5:13 p.m. UTC
From: Richard Purdie <richard.purdie@linuxfoundation.org>

When tasks don't match, the printdiff output alone can be misleading about
which tasks didn't match. Print the mismatches explicitly to aid debugging.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a2e37fab7c7f8aac4a5b1bcfb696a3fe263326bc)
Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
---
 scripts/lib/checklayer/__init__.py | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py
index 274dc7578f..aa19a8e2ae 100644
--- a/scripts/lib/checklayer/__init__.py
+++ b/scripts/lib/checklayer/__init__.py
@@ -422,6 +422,9 @@  def compare_signatures(old_sigs, curr_sigs):
     if not sig_diff:
         return None
 
+    for task in sig_diff:
+        print("%s changed %s -> %s" % (task, sig_diff[task][0], sig_diff[task][1]))
+
     # Beware, depgraph uses task=<pn>.<taskname> whereas get_signatures()
     # uses <pn>:<taskname>. Need to convert sometimes. The output follows
     # the convention from get_signatures() because that seems closer to