From fce7bc9e08256a6c59e85cd37fefe6c754d4bb6b Mon Sep 17 00:00:00 2001 From: Andrii Shyshkalov Date: Thu, 14 Jun 2018 23:44:26 +0000 Subject: [PATCH] Add infradata/config repo to gclient. This way it'll be discoverable by run_presubmit recipe. R=vadimsh Bug: 613739 Change-Id: I84ec3b84292940e74e4d707e4d257eb560004f56 Reviewed-on: https://chromium-review.googlesource.com/1102010 Reviewed-by: Vadim Shtayura Commit-Queue: Andrii Shyshkalov --- recipes/README.recipes.md | 2 +- recipes/recipe_modules/gclient/config.py | 7 +++++++ recipes/recipe_modules/gclient/examples/full.py | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/recipes/README.recipes.md b/recipes/README.recipes.md index 0bf88c6e8..8c2828d37 100644 --- a/recipes/README.recipes.md +++ b/recipes/README.recipes.md @@ -755,7 +755,7 @@ like checkout or compile), and some of these tests have failed. [DEPS](/recipes/recipe_modules/gclient/examples/full.py#5): [gclient](#recipe_modules-gclient), [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step] -— **def [RunSteps](/recipes/recipe_modules/gclient/examples/full.py#47)(api):** +— **def [RunSteps](/recipes/recipe_modules/gclient/examples/full.py#48)(api):** ### *recipes* / [gclient:tests/patch\_project](/recipes/recipe_modules/gclient/tests/patch_project.py) [DEPS](/recipes/recipe_modules/gclient/tests/patch_project.py#9): [gclient](#recipe_modules-gclient), [recipe\_engine/properties][recipe_engine/recipe_modules/properties] diff --git a/recipes/recipe_modules/gclient/config.py b/recipes/recipe_modules/gclient/config.py index 3f28b13c1..70427c7cf 100644 --- a/recipes/recipe_modules/gclient/config.py +++ b/recipes/recipe_modules/gclient/config.py @@ -371,6 +371,13 @@ def infradata_master_manager(c): del c.got_revision_mapping['infra_internal'] c.got_revision_mapping['infra-data-master-manager'] = 'got_revision' +@config_ctx() +def infradata_config(c): + soln = c.solutions.add() + soln.name = 'infra-data-config' + soln.url = 'https://chrome-internal.googlesource.com/infradata/config.git' + c.got_revision_mapping['infra-data-config'] = 'got_revision' + @config_ctx() def with_branch_heads(c): c.with_branch_heads = True diff --git a/recipes/recipe_modules/gclient/examples/full.py b/recipes/recipe_modules/gclient/examples/full.py index aa8b9db63..7a54e3abc 100644 --- a/recipes/recipe_modules/gclient/examples/full.py +++ b/recipes/recipe_modules/gclient/examples/full.py @@ -26,6 +26,7 @@ TEST_CONFIGS = [ 'gyp', 'infra', 'infradata_master_manager', + 'infradata_config', 'internal_deps', 'luci_gae', 'luci_go',