Fix subbuilds not getting the recipes bundle.
There have been several changes in led that broke the subbuilds
execution. This is adding a new parameter to ensure the recipe bundle
information is propagated to subbuilds.
Change-Id: Iebf93bafe54c9c6fa52f68629a2b96982975d7f5
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/37080
Reviewed-by: Drew Roen <drewroen@google.com>
Reviewed-by: Jesse Seales <jseales@google.com>
Commit-Queue: Godofredo Contreras <godofredoc@google.com>
diff --git a/recipe_modules/shard_util_v2/api.py b/recipe_modules/shard_util_v2/api.py
index 7b2b1e2..887f505 100644
--- a/recipe_modules/shard_util_v2/api.py
+++ b/recipe_modules/shard_util_v2/api.py
@@ -207,6 +207,7 @@
parent = self.m.buildbucket.build.builder
led_data = self.m.led(
"get-builder",
+ '-real-build',
"luci.%s.%s:%s" % (parent.project, parent.bucket, builder_name),
)
edit_args = []
diff --git a/recipe_modules/shard_util_v2/examples/full.expected/presubmit_led.json b/recipe_modules/shard_util_v2/examples/full.expected/presubmit_led.json
index d443052..ea25ab8 100644
--- a/recipe_modules/shard_util_v2/examples/full.expected/presubmit_led.json
+++ b/recipe_modules/shard_util_v2/examples/full.expected/presubmit_led.json
@@ -7,6 +7,7 @@
"cmd": [
"led",
"get-builder",
+ "-real-build",
"luci.proj.try:custom drone builder-try"
],
"luci_context": {
@@ -1307,6 +1308,7 @@
"cmd": [
"led",
"get-builder",
+ "-real-build",
"luci.proj.try:Linux Engine Drone-try"
],
"luci_context": {