[Bf-blender-cvs] [7860fc95399] master: Codesign: Wait for unsigned directory to appear

Sergey Sharybin noreply at git.blender.org
Tue Jun 30 11:22:00 CEST 2020


Commit: 7860fc953991983795fba6440364a255cab8dc18
Author: Sergey Sharybin
Date:   Tue Jun 30 11:21:00 2020 +0200
Branches: master
https://developer.blender.org/rB7860fc953991983795fba6440364a255cab8dc18

Codesign: Wait for unsigned directory to appear

Solves problem with different order of codesign server startup and
mount of network shares: avoids exception happening when server is
started prior to the mounts are ready.

===================================================================

M	build_files/buildbot/codesign/base_code_signer.py

===================================================================

diff --git a/build_files/buildbot/codesign/base_code_signer.py b/build_files/buildbot/codesign/base_code_signer.py
index 079f7aef54c..dca771cdbaf 100644
--- a/build_files/buildbot/codesign/base_code_signer.py
+++ b/build_files/buildbot/codesign/base_code_signer.py
@@ -337,6 +337,11 @@ class BaseCodeSigner(metaclass=abc.ABCMeta):
 
         # TOOD(sergey): Support graceful shutdown on Ctrl-C.
 
+        logger_server.info(
+            f'Waiting for a request directory {self.unsigned_storage_dir} to appear.')
+        while not self.unsigned_storage_dir.exists():
+            time.sleep(1)
+
         logger_server.info(
             'Waiting for a READY indicator of any signing request.')
         request_id = None



More information about the Bf-blender-cvs mailing list