0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-54732 fixed validate cachedir debug type issue and turn on globally.

This commit is contained in:
Daniel Moody 2021-04-21 16:43:01 +00:00 committed by Evergreen Agent
parent 574020b007
commit 44e6740a3f
4 changed files with 18 additions and 8 deletions

View File

@ -95,7 +95,8 @@ def generate_scons_cache_expansions():
scons_cache_mode = "nolinked"
if os.getenv("USE_SCONS_CACHE") not in (None, False, "false", ""):
expansions["scons_cache_args"] = "--cache={0} --cache-dir={1}".format(
expansions[
"scons_cache_args"] = "--cache={0} --cache-signature-mode=validate --cache-dir={1}".format(
scons_cache_mode, shlex.quote(default_cache_path))
return expansions

View File

@ -100,7 +100,8 @@ def generate_scons_cache_expansions():
shared_mount_root = '/efs'
default_cache_path = os.path.join(shared_mount_root, system_uuid, "scons-cache")
expansions["scons_cache_path"] = default_cache_path
expansions["scons_cache_args"] = "--cache={0} --cache-dir={1}".format(
expansions[
"scons_cache_args"] = "--cache={0} --cache-signature-mode=validate --cache-dir={1}".format(
scons_cache_mode, shlex.quote(default_cache_path))
# Local shared cache - host-based
@ -113,7 +114,8 @@ def generate_scons_cache_expansions():
default_cache_path = os.path.join(default_cache_path_base, system_uuid)
expansions["scons_cache_path"] = default_cache_path
expansions["scons_cache_args"] = "--cache={0} --cache-dir={1}".format(
expansions[
"scons_cache_args"] = "--cache={0} --cache-signature-mode=validate --cache-dir={1}".format(
scons_cache_mode, shlex.quote(default_cache_path))
# No cache
else:

View File

@ -12417,7 +12417,7 @@ buildvariants:
display_name: "~ Shared Library RHEL 8.0 (visibility test)"
expansions:
<<: *enterprise-rhel-80-64-bit-dynamic-required-expansions
compile_flags: --ssl MONGO_DISTMOD=rhel80 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars --link-model=dynamic --experimental-visibility-support=on --cache-signature-mode=validate
compile_flags: --ssl MONGO_DISTMOD=rhel80 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars --link-model=dynamic --experimental-visibility-support=on
- name: windows-dynamic-visibility-test
display_name: "~ Shared Library Windows (visibility test)"

View File

@ -134,7 +134,14 @@ class CacheDirValidate(SCons.CacheDir.CacheDir):
return False
def CacheDebug(self, fmt, target, cachefile):
super().CacheDebug(fmt, target, cachefile + self.get_ext())
# The target cachefile will live in a directory with the special
# extension for this cachedir class. Check if this cachefile is
# in a directory like that and customize the debug logs.
cksum_cachefile = str(pathlib.Path(cachefile).parent)
if cksum_cachefile.endswith(self.get_ext()):
super().CacheDebug(fmt, target, cksum_cachefile)
else:
super().CacheDebug(fmt, target, cachefile)
def print_cache_issue(self, node, msg):