Thread (4 messages) 4 messages, 2 authors, 2021-11-04
STALE1725d

[PATCH 1/2] sstate.bbclass: exceptions on mirror fetcher is not fatal

From: Jose Quaresma <hidden>
Date: 2021-10-29 23:13:16
Subsystem: the rest · Maintainer: Linus Torvalds

An exceptions in sstate_checkhashes sstate mirror fetcher
is not fatal for the build and it can be a warning.

If we can't check status in the fetcher we can assume that sstate
file don't exist on the mirror and build it from sources, ignoring
the sstate cache.

Signed-off-by: Jose Quaresma <redacted>
---
 meta/classes/sstate.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 6e4eb09f8e..54d38ed42d 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -995,7 +995,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
                 missed.add(tid)
                 bb.debug(2, "SState: Unsuccessful fetch test for %s (%s)" % (srcuri, e))
             except Exception as e:
-                bb.error("SState: cannot test %s: %s" % (srcuri, e))
+                bb.warn("SState: cannot test file %s from mirrors '%s': (%s)" % (srcuri, mirrors, e))
             if len(tasklist) >= min_tasks:
                 bb.event.fire(bb.event.ProcessProgress(msg, len(tasklist) - thread_worker.tasks.qsize()), d)
 
-- 
2.33.1

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help