summaryrefslogtreecommitdiff
path: root/buildscripts/generate_compile_expansions_shared_cache.py
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2021-01-25 14:39:19 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-03 23:19:50 +0000
commit343e140eb4dc3817835b53bad60b1906579919ce (patch)
treec61e84a5915b3c48e49407ce8056b09ec3d1f3cf /buildscripts/generate_compile_expansions_shared_cache.py
parent844655c76b8ce2cfdaa11306679c1749ab754014 (diff)
downloadmongo-343e140eb4dc3817835b53bad60b1906579919ce.tar.gz
SERVER-53978 Allow patch builds to push to the cache
Diffstat (limited to 'buildscripts/generate_compile_expansions_shared_cache.py')
-rwxr-xr-xbuildscripts/generate_compile_expansions_shared_cache.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/buildscripts/generate_compile_expansions_shared_cache.py b/buildscripts/generate_compile_expansions_shared_cache.py
index e2aa879b596..685eedb629f 100755
--- a/buildscripts/generate_compile_expansions_shared_cache.py
+++ b/buildscripts/generate_compile_expansions_shared_cache.py
@@ -99,14 +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, 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)
- else:
- expansions["scons_cache_args"] = "--cache={0} --cache-dir='{1}'".format(
- scons_cache_mode, default_cache_path)
+ expansions["scons_cache_args"] = "--cache={0} --cache-dir='{1}'".format(
+ scons_cache_mode, default_cache_path)
# Local shared cache - host-based
elif os.getenv("SCONS_CACHE_SCOPE") == "local":