*: Set dry_run=True for tryjobs

Bug: b/401952880
Change-Id: Ice87db0d12692fea6efcd67f599a2adedc74da1a
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/274316
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Reviewed-by: Ted Pudlik <tpudlik@google.com>
Commit-Queue: Rob Mohr <mohrr@google.com>
diff --git a/recipes/bug_filer.py b/recipes/bug_filer.py
index 2347d8f..2f9841b 100644
--- a/recipes/bug_filer.py
+++ b/recipes/bug_filer.py
@@ -59,6 +59,7 @@
     from recipe_engine import recipe_api, recipe_test_api
 
 DEPS = [
+    'fuchsia/buildbucket_util',
     'fuchsia/builder_state',
     'fuchsia/builder_status',
     'fuchsia/issuetracker',
@@ -98,6 +99,7 @@
     api: recipe_api.RecipeApi,
     props: InputProperties,
 ) -> result.RawResult | None:
+    props.dry_run = props.dry_run or api.buildbucket_util.is_tryjob
     props.was_recently_passing_builds = props.was_recently_passing_builds or 20
     props.is_currently_passing_builds = props.is_currently_passing_builds or 5
     props.is_currently_failing_builds = props.is_currently_failing_builds or 3
diff --git a/recipes/rerunner.py b/recipes/rerunner.py
index 6cd8b47..4ba823e 100644
--- a/recipes/rerunner.py
+++ b/recipes/rerunner.py
@@ -57,6 +57,7 @@
     from recipe_engine import recipe_api, recipe_test_api
 
 DEPS = [
+    'fuchsia/buildbucket_util',
     'fuchsia/builder_status',
     'recipe_engine/buildbucket',
     'recipe_engine/luci_config',
@@ -86,6 +87,8 @@
 
 
 def RunSteps(api: recipe_api.RecipeApi, props: InputProperties):
+    props.dry_run = props.dry_run or api.buildbucket_util.is_tryjob
+
     bb_cfg: bb_pb.BuildbucketCfg = api.luci_config.buildbucket()
 
     builds_to_launch: list[tuple[str, str]] = []
diff --git a/recipes/roll_commenter.py b/recipes/roll_commenter.py
index 4771b7e..f15676e 100644
--- a/recipes/roll_commenter.py
+++ b/recipes/roll_commenter.py
@@ -48,6 +48,7 @@
     from recipe_engine import config_types, recipe_api, recipe_test_api
 
 DEPS = [
+    'fuchsia/buildbucket_util',
     'fuchsia/builder_state',
     'fuchsia/builder_status',
     'fuchsia/gerrit',
@@ -118,6 +119,8 @@
     props: InputProperties,
 ) -> result_pb.RawResult | None:
     """Run Pigweed presubmit checks."""
+    props.dry_run = props.dry_run or api.buildbucket_util.is_tryjob
+
     checkout = api.checkout(props.checkout_options)
 
     def _link(