[Android compile] Half number of sync/compile jobs
Experimenting to see if this prevents the afternoon slowdown
Bug: skia:8688
Change-Id: I61e1532b6e9c7aee385955e4cb27fc4090cbd24b
Reviewed-on: https://skia-review.googlesource.com/c/184884
Commit-Queue: Ravi Mistry <rmistry@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
Auto-Submit: Ravi Mistry <rmistry@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
diff --git a/android_compile/compile.sh b/android_compile/compile.sh
index b8484b7..c2ac668 100755
--- a/android_compile/compile.sh
+++ b/android_compile/compile.sh
@@ -52,7 +52,7 @@
IFS=',' read -ra mmma_targets_arr <<< "$mmma_targets"
for i in "${mmma_targets_arr[@]}"; do
- mmma_cmd="time mmma -j50 $i"
+ mmma_cmd="time mmma -j25 $i"
log_step "Running $mmma_cmd"
eval $mmma_cmd
done
diff --git a/android_compile/go/android_compile/checkouts.go b/android_compile/go/android_compile/checkouts.go
index ceeb40d..caf2811 100644
--- a/android_compile/go/android_compile/checkouts.go
+++ b/android_compile/go/android_compile/checkouts.go
@@ -290,7 +290,7 @@
// Sync the current branch, only fetch projects fixed to sha1 if revision
// does not exist locally, and delete refs that no longer exist on server.
- if _, err := sk_exec.RunCwd(ctx, checkoutPath, repoToolPath, "sync", "-c", "-j50", "--optimized-fetch", "--prune", "-f"); err != nil {
+ if _, err := sk_exec.RunCwd(ctx, checkoutPath, repoToolPath, "sync", "-c", "-j25", "--optimized-fetch", "--prune", "-f"); err != nil {
errMsg := fmt.Sprintf("Failed to sync the repo at %s: %s", checkoutBase, err)
sklog.Errorln(errMsg)
return errors.New(errMsg)