Skip to contentSkip to conversation

[2.8][PATCH 0/1] Patch review

bitbake Steve Sakoman 1 participant 2 messages May 20, 2024

lore
Share & tools
lore
#0 lore raw

Please review this change for scarthgap and have comments back by end of day Wednesday, May 22

Passed a-full on autobuilder:

https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6937

The following changes since commit 8f90d10f9efc9a32e13f6bd031992aece79fe7cc:

cooker: Use hash client to ping upstream server (2024-05-02 16:07:18 +0100)

are available in the Git repository at:

https://git.openembedded.org/bitbake-contrib stable/2.8-nut
https://git.openembedded.org/bitbake-contrib/log/?h=stable/2.8-nut

joshua Watt (1):
cooker: Handle ImportError for websockets

 lib/bb/cooker.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
#1 lore raw

[bitbake][scarthgap][2.8][PATCH 1/1] cooker: Handle ImportError for websockets

From: joshua Watt <[email protected]>

Handles ImportError when creating a hash equivalence to ping the server. This notifies user earlier with a more precise error if websockets can't be used, and also prevents passing a known bad upstream value to the local server

(cherry picked from commit aa80b3cfc5d16dfba13ca7fb9b78bae179ce3b74)
---
 lib/bb/cooker.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
lib/bb/cooker.py +2 -1
index 25b614f1e..939a99997 100644
@@ -318,9 +318,10 @@ class BBCooker:
                     try:
                         with hashserv.create_client(upstream) as client:
                             client.ping()
-                    except ConnectionError as e:
+                    except (ConnectionError, ImportError) as e:
                         bb.warn("BB_HASHSERVE_UPSTREAM is not valid, unable to connect hash equivalence server at '%s': %s"
                                  % (upstream, repr(e)))
+                        upstream = None
 
                 self.hashservaddr = "unix://%s/hashserve.sock" % self.data.getVar("TOPDIR")
                 self.hashserv = hashserv.create_server(
Signature · 1 line
2.34.1