From c00550de296c3bb01ddcf56b2ff0cb64a669fa22 Mon Sep 17 00:00:00 2001 From: Congbin Guo Date: Wed, 5 Nov 2025 08:54:26 -0800 Subject: [PATCH] Add infradata/k8s config This CL adds the 'infradata_k8s' configuration to the gclient recipe module. This allows recipes to easily check out the infradata/k8s repository. BUG=b:457877150 TEST=Ran 'recipes.py test train' to update expectations. Change-Id: I2c2ac0a245b6ee8bfe1dc72b923a42242c720a91 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7122241 Auto-Submit: Congbin Guo Commit-Queue: Yiwei Zhang Reviewed-by: Yiwei Zhang --- recipes/README.recipes.md | 2 +- recipes/recipe_modules/gclient/config.py | 8 ++++++++ recipes/recipe_modules/gclient/examples/full.py | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/recipes/README.recipes.md b/recipes/README.recipes.md index 087e8b604d..4479d65e48 100644 --- a/recipes/README.recipes.md +++ b/recipes/README.recipes.md @@ -1127,7 +1127,7 @@ Raises: [DEPS](/recipes/recipe_modules/gclient/examples/full.py#6): [gclient](#recipe_modules-gclient), [recipe\_engine/assertions][recipe_engine/recipe_modules/assertions], [recipe\_engine/buildbucket][recipe_engine/recipe_modules/buildbucket], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [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#72)(api):** +— **def [RunSteps](/recipes/recipe_modules/gclient/examples/full.py#73)(api):** ### *recipes* / [gclient:tests/diff\_deps](/recipes/recipe_modules/gclient/tests/diff_deps.py) [DEPS](/recipes/recipe_modules/gclient/tests/diff_deps.py#9): [gclient](#recipe_modules-gclient), [recipe\_engine/assertions][recipe_engine/recipe_modules/assertions], [recipe\_engine/buildbucket][recipe_engine/recipe_modules/buildbucket], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io] diff --git a/recipes/recipe_modules/gclient/config.py b/recipes/recipe_modules/gclient/config.py index ce60ce3626..e154749890 100644 --- a/recipes/recipe_modules/gclient/config.py +++ b/recipes/recipe_modules/gclient/config.py @@ -363,6 +363,14 @@ def infradata_cloud_run(c): c.got_revision_mapping['infra-data-cloud-run'] = 'got_revision' +@config_ctx() +def infradata_k8s(c): + soln = c.solutions.add() + soln.name = 'infradata-k8s' + soln.url = 'https://chrome-internal.googlesource.com/infradata/k8s.git' + c.got_revision_mapping['infradata-k8s'] = 'got_revision' + + @config_ctx() def infradata_config(c): soln = c.solutions.add() diff --git a/recipes/recipe_modules/gclient/examples/full.py b/recipes/recipe_modules/gclient/examples/full.py index eaa6fe8764..c77ef07671 100644 --- a/recipes/recipe_modules/gclient/examples/full.py +++ b/recipes/recipe_modules/gclient/examples/full.py @@ -46,6 +46,7 @@ TEST_CONFIGS = [ 'infradata_master_manager', 'infradata_cloud_run', 'infradata_config', + 'infradata_k8s', 'infradata_rbe', 'luci_gae', 'luci_go',