summaryrefslogtreecommitdiff
path: root/buildscripts/generate_compile_expansions_shared_cache.py
diff options
context:
space:
mode:
authorDavid Bradford <david.bradford@mongodb.com>2019-11-18 20:54:52 +0000
committerevergreen <evergreen@mongodb.com>2019-11-18 20:54:52 +0000
commit837196d77bed9a7c242d2a4945c9c67e93761098 (patch)
treef82a4a54227622629e8fe9dffc015afe9c2bd4da /buildscripts/generate_compile_expansions_shared_cache.py
parentb7aab5359c680cef0de3ba2a665b7c70c659ffb6 (diff)
downloadmongo-837196d77bed9a7c242d2a4945c9c67e93761098.tar.gz
SERVER-44144: Enable commit-queue to populate shared scons cache
Diffstat (limited to 'buildscripts/generate_compile_expansions_shared_cache.py')
-rwxr-xr-xbuildscripts/generate_compile_expansions_shared_cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/generate_compile_expansions_shared_cache.py b/buildscripts/generate_compile_expansions_shared_cache.py
index 1fbfdfb6aec..2c6436d1bec 100755
--- a/buildscripts/generate_compile_expansions_shared_cache.py
+++ b/buildscripts/generate_compile_expansions_shared_cache.py
@@ -99,8 +99,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
- # Patches are read only
- if os.getenv("IS_PATCH"):
+ # Patches are read only, unless they are for a commit queue merge.
+ if os.getenv("IS_PATCH") and os.getenv("IS_COMMIT_QUEUE") != "true":
expansions[
"scons_cache_args"] = "--cache={0} --cache-dir='{1}' --cache-readonly".format(
scons_cache_mode, default_cache_path)