checkout: Increase repo sync -j Increase the number of workers repo sync is allowed to use. It's not a CPU-intensive process so it should be able to go beyond the CPU count. Change-Id: If57845dc2d83469292a6b4438a920e1c1d3b294a Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/421472
diff --git a/recipe_modules/checkout/api.py b/recipe_modules/checkout/api.py index c88c4ab..1be4550 100644 --- a/recipe_modules/checkout/api.py +++ b/recipe_modules/checkout/api.py
@@ -1199,7 +1199,7 @@ self.m.repo.sync( force_sync=True, current_branch=True, - jobs=self.m.platform.cpu_count, + jobs=self.m.platform.cpu_count * 3 // 2, **kwargs, ) self.m.repo.start('base')
diff --git a/recipe_modules/checkout/tests/repo.expected/ci.json b/recipe_modules/checkout/tests/repo.expected/ci.json index 7a41980..07e21b2 100644 --- a/recipe_modules/checkout/tests/repo.expected/ci.json +++ b/recipe_modules/checkout/tests/repo.expected/ci.json
@@ -884,7 +884,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/feature_branches_ci.json b/recipe_modules/checkout/tests/repo.expected/feature_branches_ci.json index 85e271e..40a522c 100644 --- a/recipe_modules/checkout/tests/repo.expected/feature_branches_ci.json +++ b/recipe_modules/checkout/tests/repo.expected/feature_branches_ci.json
@@ -704,7 +704,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/feature_branches_try.json b/recipe_modules/checkout/tests/repo.expected/feature_branches_try.json index 67f5670..ab49c16 100644 --- a/recipe_modules/checkout/tests/repo.expected/feature_branches_try.json +++ b/recipe_modules/checkout/tests/repo.expected/feature_branches_try.json
@@ -819,7 +819,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/feature_branches_try_multiple_features.json b/recipe_modules/checkout/tests/repo.expected/feature_branches_try_multiple_features.json index 4f9b440..b90b4e9 100644 --- a/recipe_modules/checkout/tests/repo.expected/feature_branches_try_multiple_features.json +++ b/recipe_modules/checkout/tests/repo.expected/feature_branches_try_multiple_features.json
@@ -948,7 +948,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/feature_branches_try_no_matching.json b/recipe_modules/checkout/tests/repo.expected/feature_branches_try_no_matching.json index ed4829f..9d6a9a3 100644 --- a/recipe_modules/checkout/tests/repo.expected/feature_branches_try_no_matching.json +++ b/recipe_modules/checkout/tests/repo.expected/feature_branches_try_no_matching.json
@@ -833,7 +833,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/no_trigger.json b/recipe_modules/checkout/tests/repo.expected/no_trigger.json index 7a41980..07e21b2 100644 --- a/recipe_modules/checkout/tests/repo.expected/no_trigger.json +++ b/recipe_modules/checkout/tests/repo.expected/no_trigger.json
@@ -884,7 +884,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/prefix.json b/recipe_modules/checkout/tests/repo.expected/prefix.json index 62abc99..e3cc199 100644 --- a/recipe_modules/checkout/tests/repo.expected/prefix.json +++ b/recipe_modules/checkout/tests/repo.expected/prefix.json
@@ -759,7 +759,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/try-multiple-cqdeps.json b/recipe_modules/checkout/tests/repo.expected/try-multiple-cqdeps.json index 5b4acac..ed01080 100644 --- a/recipe_modules/checkout/tests/repo.expected/try-multiple-cqdeps.json +++ b/recipe_modules/checkout/tests/repo.expected/try-multiple-cqdeps.json
@@ -1072,7 +1072,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/try-multiple-onenotapplied.json b/recipe_modules/checkout/tests/repo.expected/try-multiple-onenotapplied.json index 77fa59f..8bb5abb 100644 --- a/recipe_modules/checkout/tests/repo.expected/try-multiple-onenotapplied.json +++ b/recipe_modules/checkout/tests/repo.expected/try-multiple-onenotapplied.json
@@ -928,7 +928,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/try-multiple.json b/recipe_modules/checkout/tests/repo.expected/try-multiple.json index bafed48..1ab53c8 100644 --- a/recipe_modules/checkout/tests/repo.expected/try-multiple.json +++ b/recipe_modules/checkout/tests/repo.expected/try-multiple.json
@@ -843,7 +843,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/try.json b/recipe_modules/checkout/tests/repo.expected/try.json index 9b508fb..cb4c61a 100644 --- a/recipe_modules/checkout/tests/repo.expected/try.json +++ b/recipe_modules/checkout/tests/repo.expected/try.json
@@ -761,7 +761,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/try_manifest.json b/recipe_modules/checkout/tests/repo.expected/try_manifest.json index 3230cbb..e3c44bf 100644 --- a/recipe_modules/checkout/tests/repo.expected/try_manifest.json +++ b/recipe_modules/checkout/tests/repo.expected/try_manifest.json
@@ -1396,7 +1396,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipe_modules/checkout/tests/repo.expected/try_repo_not_in_manifest.json b/recipe_modules/checkout/tests/repo.expected/try_repo_not_in_manifest.json index e0415da..7e58b67 100644 --- a/recipe_modules/checkout/tests/repo.expected/try_repo_not_in_manifest.json +++ b/recipe_modules/checkout/tests/repo.expected/try_repo_not_in_manifest.json
@@ -759,7 +759,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",
diff --git a/recipes/target_to_cipd.expected/success.json b/recipes/target_to_cipd.expected/success.json index 3a5285b..de4bea5 100644 --- a/recipes/target_to_cipd.expected/success.json +++ b/recipes/target_to_cipd.expected/success.json
@@ -1139,7 +1139,7 @@ "--force-sync", "--current-branch", "--jobs", - "8", + "12", "--verbose" ], "cwd": "[START_DIR]/co",