Skip to content

Remove revert bot from autosubmit.#5091

Merged
auto-submit[bot] merged 4 commits into
flutter:mainfrom
eyebrowsoffire:remove_revert
Jun 26, 2026
Merged

Remove revert bot from autosubmit.#5091
auto-submit[bot] merged 4 commits into
flutter:mainfrom
eyebrowsoffire:remove_revert

Conversation

@eyebrowsoffire

Copy link
Copy Markdown
Contributor

This functionality has been replaced by a GitHub action, so we're going to remove this feature from cocoon.

This functionality has been replaced by a GitHub action, so we're going
to remove this feature from cocoon.
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jun 26, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request completely removes the automated revert request feature from the auto-submit service. This includes deleting the revert request validation service, the Git CLI revert method, revert-specific configurations (such as support_no_review_revert and required_checkruns_on_revert), the /check-revert-requests endpoint, and all associated tests and helper classes. Since there are no review comments provided, I have no additional feedback to offer.

Comment on lines -155 to -156
// The name of the bot that generates automated revert requests.
String get autosubmitBot => 'auto-submit[bot]';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd that the name of the variable and the description are different. Was this used anywhere else other than revert checking?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that auto-submit[bot] is the name of the app associated with the key that the auto submit bot uses to interact with GitHub. The revert bot was implemented a while ago, and I think the original plan was to add more functionality (like cherry-picks) to the bot so the "autosubmit bot" would open PRs of multiple different kinds (although to be honest even this is kind of confusing, and I'm not sure why the decision was made to put this functionality into the auto submit as opposed to the dashboard service or something). However, I think the infra team at the time discovered that it was easier to implement the cherry-pick stuff through github actions, so they did so, and reverts remained the only PRs created by the auto submit bot. Now that we're removing that functionality, I think there really aren't any PRs that will be opened by auto-submit[bot] anymore, and automated pull requests are either created by GitHub workflows (which use the flutteractionsbot account) or the skia autoroller (which uses an account called engine-flutter-autroll I think).

Comment thread auto_submit/bin/server.dart
@@ -1,140 +0,0 @@
// Copyright 2024 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't realize we had discord messages for reverts. We do have a discord bot that we could use to publish messages if we see them, but I don't know what their value is.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm yeah. I'm sure I could add this functionality into the GitHub workflow if we really cared to, but maybe we should just wait and see if anyone actually cares.

@jtmcdole jtmcdole left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one change: make sure to remove the cron scheduler that calls the soon to be missing API. I guess we should time this landing since that will take immediate effect on Cloud.

@jtmcdole jtmcdole left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this in the initial review:

@eyebrowsoffire eyebrowsoffire added the autosubmit Merge PR when tree becomes green via auto submit App. label Jun 26, 2026
@auto-submit auto-submit Bot merged commit 2dd521d into flutter:main Jun 26, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App. CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants