This is an automated email from the ASF dual-hosted git repository.

akitouni pushed a commit to branch abderrahim/re-investigation
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit c4336fd12db061980a5d6fde00e2aa10aabb2e4f
Author: Abderrahim Kitouni <[email protected]>
AuthorDate: Tue Jun 20 06:29:08 2023 +0100

    _sandboxremote: Print out status updates
---
 src/buildstream/sandbox/_sandboxremote.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/buildstream/sandbox/_sandboxremote.py 
b/src/buildstream/sandbox/_sandboxremote.py
index 2c2391285..dfdcac9f7 100644
--- a/src/buildstream/sandbox/_sandboxremote.py
+++ b/src/buildstream/sandbox/_sandboxremote.py
@@ -84,6 +84,14 @@ class SandboxRemote(SandboxREAPI):
                     operation_iterator = stub.WaitExecution(request)
 
                 for operation in operation_iterator:
+                    metadata = remote_execution_pb2.ExecuteOperationMetadata()
+                    operation.metadata.Unpack(metadata)
+
+                    context = self._get_context()
+                    context.messenger.status("Waiting for remote execution",
+                                             
element_name=self._get_element_name(),
+                                             detail=str(metadata))
+
                     if not self.operation_name:
                         self.operation_name = operation.name
                     if operation.done:

Reply via email to