Skip to content

[ci] Allow backfilling missed releases via workflow_dispatch - #13612

Merged
auto-submit[bot] merged 2 commits into
flutter:mainfrom
QuncCccccc:release-workflow-dispatch
Nov 17, 2026
Merged

auto-submit[bot] merged 2 commits into
flutter:mainfrom
QuncCccccc:release-workflow-dispatch

Conversation

@QuncCccccc

@QuncCccccc QuncCccccc commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

When a release run fails because of a problem in release.yml itself (for example the skipped triage check fixed in #13611), Re-run failed jobs can't recover it: GitHub always re-runs with the release.yml from the original commit. The affected packages then have to be published by hand (for example cross_file_web 1.1.0 from #13395).

This PR adds a manual trigger to release.yml. To backfill a missed release, open the release workflow in the Actions tab, click Run workflow, and enter the SHA of the commit whose release failed. The run uses the latest release.yml on main and releases that commit the same way a normal post-submit run would.

Guardrails:

  • It only runs from main.
  • The input must be a full 40-character SHA that is already on main.
  • It still waits for all checks on that commit to pass before publishing.

Alternative considered: have release.yml call a reusable workflow referenced by @main, so that Re-run all jobs would pick up the latest release logic. That keeps the existing button, but it adds an unpinned @main dependency to a job that holds PUB_CREDENTIALS, which goes against the repo's practice of pinning workflow dependencies. The manual trigger is simpler and keeps everything pinned.

Part of flutter/flutter#194870

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@QuncCccccc QuncCccccc added the CICD Run CI/CD label Nov 10, 2026
@QuncCccccc
QuncCccccc marked this pull request as ready for review November 10, 2026 22:56
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@QuncCccccc
QuncCccccc requested a review from Piinks November 10, 2026 22:57
Piinks
Piinks previously approved these changes Nov 16, 2026

@Piinks Piinks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Comment thread .github/workflows/release.yml Outdated
echo "::error::commit_sha must be a full 40-character lowercase hex SHA."
exit 1
fi
if ! git merge-base --is-ancestor "${TARGET_SHA}" HEAD; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Optional nit: since main has a few merge commits from package history imports (like #12583 and #12119), git merge-base --is-ancestor will also match historical second-parent commits from those imports. Checking the first-parent chain (for example git rev-list --first-parent HEAD | grep -qx "${TARGET_SHA}") would ensure TARGET_SHA is an actual commit on main and that HEAD~ in the publish step below always diffs against the previous main commit.

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.

Done! The update dismissed the approval, re-requested:)!

Commits imported via merges (like flutter#12583) are ancestors of main, but HEAD~ for them isn't the previous main commit. Don't use grep -q: under pipefail it can make git rev-list fail with SIGPIPE and reject recent commits.

@Piinks Piinks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@QuncCccccc QuncCccccc added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 17, 2026
@auto-submit
auto-submit Bot merged commit 82ff24e into flutter:main Nov 17, 2026
13 checks passed
ditman pushed a commit to ditman/flutter-flutter that referenced this pull request Nov 17, 2026
…r#196812)

flutter/packages@4c6a7d3...9af69be

2026-11-17 [email protected] [in_app_purchase_storekit] add warm up
test to preaction (flutter/packages#13661)
2026-11-17 [email protected] Roll Flutter from
d8bd864 to 2f09f96 (27 revisions) (flutter/packages#13695)
2026-11-17 [email protected] [url_launcher] Convert implementation
to Kotlin (flutter/packages#13663)
2026-11-17 [email protected] [cupertino_ui] Prevent null-check crash
during CupertinoTextSelectionToolbar pagination (flutter/packages#13659)
2026-11-17 [email protected] [ci] Allow
backfilling missed releases via workflow_dispatch
(flutter/packages#13612)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
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