Skip to content

Commit

Permalink
experimental: delete docker images after runs (#497)
Browse files Browse the repository at this point in the history
otherwise the storage is getting eaten too fast

---------

Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored Jul 17, 2024
1 parent 6c95cab commit 4e3798e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions experimental/c-cpp/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,15 @@ def run_on_targets(target,
build_heuristics=build_heuristics,
generator_heuristics=generator_heuristics)

# Cleanup the OSS-Fuzz docker image
clean_up_cmd = [
'docker', 'image', 'rm', f'gcr.io/oss-fuzz/{worker_project_name}'
]
try:
subprocess.check_call(' '.join(clean_up_cmd), shell=True)
except subprocess.CalledProcessError:
pass

if semaphore is not None:
semaphore.release()

Expand Down

0 comments on commit 4e3798e

Please sign in to comment.