From a01816b0bae90d983e18bcd54893e5f0cb4c4aab Mon Sep 17 00:00:00 2001 From: Josip Sokcevic Date: Mon, 13 Apr 2020 22:25:09 +0000 Subject: [PATCH] Set git low speed detection on bot_update Recipe-Nontrivial-Roll: build Recipe-Nontrivial-Roll: build_limited Recipe-Nontrivial-Roll: build_limited_scripts_slave Recipe-Nontrivial-Roll: infra Recipe-Nontrivial-Roll: release_scripts Recipe-Nontrivial-Roll: skia Change-Id: Iacf276bd53fdca37994b6d6fe1e5db71f844a3fe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2147833 Reviewed-by: Edward Lesmes Reviewed-by: Anthony Polito Commit-Queue: Josip Sokcevic --- recipes/README.recipes.md | 10 +++++----- recipes/recipe_modules/bot_update/api.py | 12 ++++++++++-- .../bot_update/examples/full.expected/basic.json | 4 ++++ .../examples/full.expected/basic_luci.json | 4 ++++ .../full.expected/basic_with_branch_heads.json | 4 ++++ .../bot_update/examples/full.expected/clobber.json | 8 ++++++++ .../deprecated_got_revision_mapping.json | 8 ++++++++ .../full.expected/gerrit_no_rebase_patch_ref.json | 8 ++++++++ .../examples/full.expected/gerrit_no_reset.json | 8 ++++++++ .../input_commit_with_id_without_repo.json | 8 ++++++++ .../examples/full.expected/multiple_patch_refs.json | 8 ++++++++ .../full.expected/no_apply_patch_on_gclient.json | 8 ++++++++ .../examples/full.expected/no_cp_checkout_HEAD.json | 4 ++++ .../full.expected/no_cp_checkout_a_branch_head.json | 4 ++++ .../no_cp_checkout_a_specific_commit.json | 4 ++++ .../full.expected/no_cp_checkout_master.json | 4 ++++ .../bot_update/examples/full.expected/refs.json | 8 ++++++++ .../full.expected/reset_root_solution_revision.json | 8 ++++++++ .../resolve_chromium_fixed_version.json | 4 ++++ .../examples/full.expected/tryjob_fail.json | 4 ++++ .../examples/full.expected/tryjob_fail_patch.json | 4 ++++ .../full.expected/tryjob_fail_patch_download.json | 4 ++++ .../examples/full.expected/tryjob_gerrit_angle.json | 8 ++++++++ .../full.expected/tryjob_gerrit_branch_heads.json | 8 ++++++++ .../full.expected/tryjob_gerrit_feature_branch.json | 8 ++++++++ .../tryjob_gerrit_v8_feature_branch.json | 8 ++++++++ .../examples/full.expected/tryjob_gerrit_webrtc.json | 8 ++++++++ .../bot_update/examples/full.expected/tryjob_v8.json | 8 ++++++++ .../full.expected/tryjob_v8_head_by_default.json | 8 ++++++++ .../examples/full.expected/with_manifest_name.json | 4 ++++ .../bot_update/examples/full.expected/with_tags.json | 8 ++++++++ .../fetch_end_to_end_test.expected/basic.json | 4 ++++ 32 files changed, 203 insertions(+), 7 deletions(-) diff --git a/recipes/README.recipes.md b/recipes/README.recipes.md index c77d862bf..8de3e2dc0 100644 --- a/recipes/README.recipes.md +++ b/recipes/README.recipes.md @@ -58,12 +58,12 @@ Recipe module to ensure a checkout is consistent on a bot. Wrapper for easy calling of bot_update. -— **def [deapply\_patch](/recipes/recipe_modules/bot_update/api.py#505)(self, bot_update_step):** +— **def [deapply\_patch](/recipes/recipe_modules/bot_update/api.py#513)(self, bot_update_step):** Deapplies a patch, taking care of DEPS and solution revisions properly. -— **def [ensure\_checkout](/recipes/recipe_modules/bot_update/api.py#68)(self, gclient_config=None, suffix=None, patch=True, update_presentation=True, patch_root=None, with_branch_heads=False, with_tags=False, no_fetch_tags=False, refs=None, patch_oauth2=None, oauth2_json=None, use_site_config_creds=None, clobber=False, root_solution_revision=None, rietveld=None, issue=None, patchset=None, gerrit_no_reset=False, gerrit_no_rebase_patch_ref=False, disable_syntax_validation=False, manifest_name=None, patch_refs=None, ignore_input_commit=False, set_output_commit=False, step_test_data=None, \*\*kwargs):** +— **def [ensure\_checkout](/recipes/recipe_modules/bot_update/api.py#76)(self, gclient_config=None, suffix=None, patch=True, update_presentation=True, patch_root=None, with_branch_heads=False, with_tags=False, no_fetch_tags=False, refs=None, patch_oauth2=None, oauth2_json=None, use_site_config_creds=None, clobber=False, root_solution_revision=None, rietveld=None, issue=None, patchset=None, gerrit_no_reset=False, gerrit_no_rebase_patch_ref=False, disable_syntax_validation=False, manifest_name=None, patch_refs=None, ignore_input_commit=False, set_output_commit=False, step_test_data=None, \*\*kwargs):** Args: gclient_config: The gclient configuration to use when running bot_update. @@ -89,7 +89,7 @@ Args: step_test_data: a null function that returns test bot_update.py output. Use test_api.output_json to generate test data. -— **def [get\_project\_revision\_properties](/recipes/recipe_modules/bot_update/api.py#482)(self, project_name, gclient_config=None):** +— **def [get\_project\_revision\_properties](/recipes/recipe_modules/bot_update/api.py#490)(self, project_name, gclient_config=None):** Returns all property names used for storing the checked-out revision of a given project. @@ -105,9 +105,9 @@ Returns (list of str): All properties that'll hold the checked-out revision — **def [initialize](/recipes/recipe_modules/bot_update/api.py#22)(self):** -  **@property**
— **def [last\_returned\_properties](/recipes/recipe_modules/bot_update/api.py#36)(self):** +  **@property**
— **def [last\_returned\_properties](/recipes/recipe_modules/bot_update/api.py#44)(self):** -— **def [resolve\_fixed\_revision](/recipes/recipe_modules/bot_update/api.py#432)(self, bot_update_json, name):** +— **def [resolve\_fixed\_revision](/recipes/recipe_modules/bot_update/api.py#440)(self, bot_update_json, name):** Set a fixed revision for a single dependency using project revision properties. diff --git a/recipes/recipe_modules/bot_update/api.py b/recipes/recipe_modules/bot_update/api.py index 763ab8033..670081584 100644 --- a/recipes/recipe_modules/bot_update/api.py +++ b/recipes/recipe_modules/bot_update/api.py @@ -30,8 +30,16 @@ class BotUpdateApi(recipe_api.RecipeApi): bot_update_path = self.resource('bot_update.py') kwargs.setdefault('infra_step', True) - with self.m.depot_tools.on_path(): - return self.m.python(name, bot_update_path, cmd, **kwargs) + # If a Git HTTP request is constantly below GIT_HTTP_LOW_SPEED_LIMIT + # bytes/second for GIT_HTTP_LOW_SPEED_TIME seconds then such request will be + # aborted. Otherwise, it would wait for global timeout to be reached. + env = { + 'GIT_HTTP_LOW_SPEED_LIMIT': '102400', # in bytes + 'GIT_HTTP_LOW_SPEED_TIME': 300, # in seconds + } + with self.m.context(env=env): + with self.m.depot_tools.on_path(): + return self.m.python(name, bot_update_path, cmd, **kwargs) @property def last_returned_properties(self): diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/basic.json b/recipes/recipe_modules/bot_update/examples/full.expected/basic.json index 4faffbe17..e29ab3ffd 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/basic.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/basic.json @@ -20,6 +20,10 @@ "refs/heads/master", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/basic_luci.json b/recipes/recipe_modules/bot_update/examples/full.expected/basic_luci.json index 4faffbe17..e29ab3ffd 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/basic_luci.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/basic_luci.json @@ -20,6 +20,10 @@ "refs/heads/master", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json b/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json index d0b552c01..578b4d7af 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json @@ -21,6 +21,10 @@ "--with_branch_heads", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json b/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json index 876fccdc4..144c9a0a3 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json @@ -19,6 +19,10 @@ "--clobber", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -122,6 +126,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json b/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json index f0c927869..dee6dbe8b 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json @@ -62,6 +62,10 @@ "src@HEAD", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -128,6 +132,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json b/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json index 633a2b3ae..507376536 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json @@ -19,6 +19,10 @@ "--gerrit_no_rebase_patch_ref", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -122,6 +126,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json b/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json index a49589828..9bdf0f811 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json @@ -19,6 +19,10 @@ "--gerrit_no_reset", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -122,6 +126,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/input_commit_with_id_without_repo.json b/recipes/recipe_modules/bot_update/examples/full.expected/input_commit_with_id_without_repo.json index b57e5608a..242e07471 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/input_commit_with_id_without_repo.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/input_commit_with_id_without_repo.json @@ -18,6 +18,10 @@ "src@aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -121,6 +125,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/multiple_patch_refs.json b/recipes/recipe_modules/bot_update/examples/full.expected/multiple_patch_refs.json index da7de9af7..6177e4b90 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/multiple_patch_refs.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/multiple_patch_refs.json @@ -22,6 +22,10 @@ "src@HEAD", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -125,6 +129,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/no_apply_patch_on_gclient.json b/recipes/recipe_modules/bot_update/examples/full.expected/no_apply_patch_on_gclient.json index 5e2ea87cf..08297509c 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/no_apply_patch_on_gclient.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/no_apply_patch_on_gclient.json @@ -64,6 +64,10 @@ "src/third_party/angle@HEAD", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -172,6 +176,10 @@ "src/third_party/angle@fac9503c46405f77757b9a728eb85b8d7bc6080c", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_HEAD.json b/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_HEAD.json index aec6ebe0c..f96802396 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_HEAD.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_HEAD.json @@ -22,6 +22,10 @@ "refs/heads/master", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_a_branch_head.json b/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_a_branch_head.json index da0105139..4cde20f22 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_a_branch_head.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_a_branch_head.json @@ -22,6 +22,10 @@ "refs/branch-heads/x", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_a_specific_commit.json b/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_a_specific_commit.json index f9a6f3a86..7533cec3b 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_a_specific_commit.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_a_specific_commit.json @@ -22,6 +22,10 @@ "refs/heads/master", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_master.json b/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_master.json index f18130934..ea8173117 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_master.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_master.json @@ -22,6 +22,10 @@ "refs/heads/master", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/refs.json b/recipes/recipe_modules/bot_update/examples/full.expected/refs.json index 780d27410..992b8a046 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/refs.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/refs.json @@ -20,6 +20,10 @@ "+refs/change/1/2/333", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -123,6 +127,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json b/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json index 3f9d8a5e6..241917dd5 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json @@ -18,6 +18,10 @@ "src@revision", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -121,6 +125,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/resolve_chromium_fixed_version.json b/recipes/recipe_modules/bot_update/examples/full.expected/resolve_chromium_fixed_version.json index 4faffbe17..e29ab3ffd 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/resolve_chromium_fixed_version.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/resolve_chromium_fixed_version.json @@ -20,6 +20,10 @@ "refs/heads/master", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json index cf0341d08..c041d5e0b 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json @@ -62,6 +62,10 @@ "src@HEAD", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json index 717a3a651..784b946fd 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json @@ -62,6 +62,10 @@ "src@HEAD", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json index a42112fc9..8ff93870e 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json @@ -62,6 +62,10 @@ "src@HEAD", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json index 5e2ea87cf..08297509c 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json @@ -64,6 +64,10 @@ "src/third_party/angle@HEAD", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -172,6 +176,10 @@ "src/third_party/angle@fac9503c46405f77757b9a728eb85b8d7bc6080c", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_branch_heads.json b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_branch_heads.json index 67a66749b..a5d254930 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_branch_heads.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_branch_heads.json @@ -64,6 +64,10 @@ "refs/branch-heads/67", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -169,6 +173,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json index 047f77e1a..75ab03f71 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json @@ -64,6 +64,10 @@ "refs/heads/experimental/feature", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -169,6 +173,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json index d56f7441a..721cac47c 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json @@ -64,6 +64,10 @@ "src/v8@refs/heads/experimental/feature", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -172,6 +176,10 @@ "src/v8@801ada225ddc271c132c3a35f03975671d43e399", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_webrtc.json b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_webrtc.json index c409202c4..7aff57d65 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_webrtc.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_webrtc.json @@ -64,6 +64,10 @@ "src/third_party/webrtc@HEAD", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -172,6 +176,10 @@ "src/third_party/webrtc@HEAD", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json index c09ea7841..53e07f09d 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json @@ -64,6 +64,10 @@ "src/v8@abc", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -172,6 +176,10 @@ "src/v8@801ada225ddc271c132c3a35f03975671d43e399", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json index 7eefde5be..d608b0f86 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json @@ -64,6 +64,10 @@ "src/v8@HEAD", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -172,6 +176,10 @@ "src/v8@801ada225ddc271c132c3a35f03975671d43e399", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/with_manifest_name.json b/recipes/recipe_modules/bot_update/examples/full.expected/with_manifest_name.json index 4fa67c755..d897acd34 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/with_manifest_name.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/with_manifest_name.json @@ -20,6 +20,10 @@ "refs/heads/master", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipe_modules/bot_update/examples/full.expected/with_tags.json b/recipes/recipe_modules/bot_update/examples/full.expected/with_tags.json index bd59fdbf0..5754b4f9f 100644 --- a/recipes/recipe_modules/bot_update/examples/full.expected/with_tags.json +++ b/recipes/recipe_modules/bot_update/examples/full.expected/with_tags.json @@ -19,6 +19,10 @@ "--with_tags", "--disable-syntax-validation" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" @@ -122,6 +126,10 @@ "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", "--no_fetch_tags" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]" diff --git a/recipes/recipes/fetch_end_to_end_test.expected/basic.json b/recipes/recipes/fetch_end_to_end_test.expected/basic.json index 1de3f869c..5e7251744 100644 --- a/recipes/recipes/fetch_end_to_end_test.expected/basic.json +++ b/recipes/recipes/fetch_end_to_end_test.expected/basic.json @@ -17,6 +17,10 @@ "--revision", "depot_tools@HEAD" ], + "env": { + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "300" + }, "env_suffixes": { "PATH": [ "RECIPE_REPO[depot_tools]"