Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 9eac38f

Browse files
committed
build: Use random UUID as mspdbsrv endpoint
Prevent any chance of `mspdbsrv` endpoint collisions between consecutive builds of the same commit.
1 parent ae5a76c commit 9eac38f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

buildbot.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import platform as _platform
3131
import shutil
3232
import tarfile
33+
import uuid
3334

3435
# LiveCode build configuration script
3536
import config
@@ -80,9 +81,6 @@ def get_buildtype():
8081
def get_build_edition():
8182
return os.environ.get('BUILD_EDITION', 'community')
8283

83-
def get_git_commit():
84-
return subprocess.check_output(['git','rev-parse','HEAD']).strip()
85-
8684
################################################################
8785
# Defer to buildbot.mk
8886
################################################################
@@ -160,8 +158,7 @@ def exec_make(target):
160158
# even if a Python exception causes a non-local exit.
161159
class UniqueMspdbsrv(object):
162160
def __enter__(self):
163-
os.environ['_MSPDBSRV_ENDPOINT_'] = '{}-{}-{}'.format(
164-
get_build_edition(), get_git_commit()[0:8], get_buildtype())
161+
os.environ['_MSPDBSRV_ENDPOINT_'] = str(uuid.uuid4())
165162

166163
mspdbsrv_exe = os.path.join(config.get_program_files_x86(),
167164
'Microsoft Visual Studio 10.0\\Common7\\IDE\\mspdbsrv.exe')

0 commit comments

Comments
 (0)