SdkService/Clean: Stop using safe.
Safe cleans the devserver static files. On builders where there isn't
supposed to be an SDK, that is currently entering and creating one.
Replace safe with a few of the larger items enabled by safe.
BUG=b:212587066
TEST=run_tests
Change-Id: Ida49d74bec6a7e8ff9fe9587ef0f059a9087ecc5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/3400065
Reviewed-by: George Engelbrecht <engeg@google.com>
Reviewed-by: Tim Bain <tbain@google.com>
Commit-Queue: Alex Klein <saklein@chromium.org>
Tested-by: Alex Klein <saklein@chromium.org>
diff --git a/api/controller/sdk.py b/api/controller/sdk.py
index 8a3d12b..67e7e3a 100644
--- a/api/controller/sdk.py
+++ b/api/controller/sdk.py
@@ -119,7 +119,14 @@
def Clean(input_proto, _output_proto, _config):
"""Clean unneeded files from a chroot."""
chroot = controller_util.ParseChroot(input_proto.chroot)
- sdk.Clean(chroot, safe=True, sysroots=True)
+ sdk.Clean(
+ chroot,
+ images=True,
+ sysroots=True,
+ tmp=True,
+ cache=True,
+ logs=True,
+ workdirs=True)
@faux.all_empty