Skip to content

Commit ef0858c

Browse files
committed
Disable cache for execution stage only
1 parent 217079e commit ef0858c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

experiment/builder_runner.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -923,19 +923,19 @@ def build_and_run_cloud(
923923
f'--real_project={project_name}',
924924
]
925925

926-
if oss_fuzz_checkout.ENABLE_CACHING and (
927-
oss_fuzz_checkout.is_image_cached(project_name, 'address') and
928-
oss_fuzz_checkout.is_image_cached(project_name, 'coverage')):
929-
logger.info('Using cached image for %s', project_name)
930-
command.append('--use_cached_image')
931-
932-
# Overwrite the Dockerfile to be caching friendly
933-
# We hardcode 'address' here, but this is irrelevant and will be
934-
# overridden later via a Docker argument.
935-
oss_fuzz_checkout.rewrite_project_to_cached_project(
936-
project_name, generated_project, 'address')
937-
oss_fuzz_checkout.prepare_build(project_name, 'address',
938-
generated_project)
926+
# if oss_fuzz_checkout.ENABLE_CACHING and (
927+
# oss_fuzz_checkout.is_image_cached(project_name, 'address') and
928+
# oss_fuzz_checkout.is_image_cached(project_name, 'coverage')):
929+
# logger.info('Using cached image for %s', project_name)
930+
# command.append('--use_cached_image')
931+
932+
# # Overwrite the Dockerfile to be caching friendly
933+
# # We hardcode 'address' here, but this is irrelevant and will be
934+
# # overridden later via a Docker argument.
935+
# oss_fuzz_checkout.rewrite_project_to_cached_project(
936+
# project_name, generated_project, 'address')
937+
# oss_fuzz_checkout.prepare_build(project_name, 'address',
938+
# generated_project)
939939

940940
if cloud_build_tags:
941941
command += ['--tags'] + cloud_build_tags

0 commit comments

Comments
 (0)