Migrate to new auto_roller API
Migrates to new API introduced in https://fxrev.dev/97340. That's a
breaking change so it must be rolled into flutter recipes along with
this one.
Change-Id: I581b41692cfc322418258ee38103bc985961f1d9
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/30980
Reviewed-by: Keyong Han <keyonghan@google.com>
Reviewed-by: Casey Hillers <chillers@google.com>
Commit-Queue: Oliver Newman <olivernewman@google.com>
diff --git a/infra/config/recipes.cfg b/infra/config/recipes.cfg
index 2e2e067..b3186b3 100644
--- a/infra/config/recipes.cfg
+++ b/infra/config/recipes.cfg
@@ -30,7 +30,7 @@
},
"fuchsia": {
"branch": "refs/heads/main",
- "revision": "b39af36ea6c5a467b60ed7831652da0c045917bc",
+ "revision": "13869fb3978e6da5f42e0a5adf4f8dc4e673a56e",
"url": "https://fuchsia.googlesource.com/infra/recipes.git"
},
"recipe_engine": {
diff --git a/recipes/infra/ci_yaml.py b/recipes/infra/ci_yaml.py
index 5698b28..135b493 100644
--- a/recipes/infra/ci_yaml.py
+++ b/recipes/infra/ci_yaml.py
@@ -108,13 +108,14 @@
# Only send rolls on postsubmit
if _is_postsubmit(api):
api.auto_roller.attempt_roll(
- gerrit_host = 'flutter-review.googlesource.com',
- gerrit_project = 'infra',
+ api.auto_roller.Options(
+ remote = 'https://flutter.googlesource.com/infra',
+ cc_on_failure_emails = ['flutter-infra@grotations.appspotmail.com'],
+ labels_to_set = {'Commit-Queue': 2},
+ bot_commit = True,
+ ),
repo_dir = infra_path,
commit_message = 'Roll %s to %s' % (repo, git_ref),
- cc_on_failure = ['flutter-infra@grotations.appspotmail.com'],
- labels_to_set = {'Commit-Queue': 2},
- bot_commit = True,
)