[fiddle] Remove duplicate skia checkout from fiddler's release
This caused the build to slow down.
Bug: skia:12816
Change-Id: Ic954977a000de38a6877bfb36f7dd42dae4e370e
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/494217
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
diff --git a/fiddlek/BUILD.bazel b/fiddlek/BUILD.bazel
index b8df68e..01a0858 100644
--- a/fiddlek/BUILD.bazel
+++ b/fiddlek/BUILD.bazel
@@ -103,9 +103,12 @@
run_commands_skia = [
# Builds will use libs from SwiftShader.
"git clone https://swiftshader.googlesource.com/SwiftShader /tmp/swiftshader",
- # Move the skia checkout into the dir used by the fiddler k8s config.
+ # Copy the skia checkout into the dir used by the fiddler k8s config.
+ # We cannot do a move because we get a "Permission denied".
"mkdir /tmp/skia",
"cp -r /usr/local/share/fiddler/skia /tmp/skia/",
+ # Cleanup the old skia checkout location in /usr/local/share/fiddler/skia
+ "rm -rf /usr/local/share/fiddler/skia/*",
# Build again so that first runs are fast in the new container.
"/tmp/depot_tools/ninja -C /tmp/skia/skia/out/Static",
],