Skip to content

Conversation

@chunhtai
Copy link
Contributor

@chunhtai chunhtai commented Feb 3, 2026

As title

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 3

await for (final PackageEnumerationEntry entry in getPackagesToProcess()) {
if ((entry.package.parseCIConfig()?.isBatchRelease ?? false) &&
(entry.package.parsePubspec().version?.isPreRelease ?? false)) {
throw UsageException(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note to myself, will need to add checks in #10859 to enforce this

@chunhtai chunhtai marked this pull request as ready for review February 4, 2026 17:57
Copy link

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

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 modifies the update-release-info command to support batch releases. For packages configured for batch release, the command now creates a pending changelog YAML file in a pending_changelogs directory instead of directly updating the pubspec.yaml and CHANGELOG.md files. The implementation separates the logic for direct updates and batch release updates into distinct methods. A check has been added to prevent running the command on batch release packages with pre-release versions. New tests have been added to verify the batch release functionality. I have one suggestion to improve code readability.

@stuartmorgan-g stuartmorgan-g changed the title [ci] updates release info command to support batch release [ci] updates update-release-info to support batch release Feb 5, 2026
type = VersionChange.patch;
case _VersionIncrementType.build:
throw UnimplementedError(
'Build version changes should not happen in batch mode. Please file an issue if you see this.',
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's not clear to me what this instruction means. If it's not supposed to happen, why should the person file an issue? What would that issue say/request?

If you mean that it's not supported, then it should say that it's not currently supported and that if that's an issue they should file an issue requesting support for build versions in batch changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It can't logically happen because otherwise the tool should have throw UsageError in the earlier stage. If this line is reached, that mean something is wrong with the code

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 10, 2026
@auto-submit
Copy link
Contributor

auto-submit bot commented Feb 10, 2026

autosubmit label was removed for flutter/packages/10958, because - The status or check suite Mac_arm64 ios_platform_tests_shard_3 master has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Feb 10, 2026
@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 11, 2026
@auto-submit auto-submit bot merged commit 7f35f52 into flutter:main Feb 11, 2026
81 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 12, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 12, 2026
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Feb 12, 2026
flutter/packages@1e50195...af1d610

2026-02-12 brunocorona.alcantar@gmail.com [video_player_avfoundation]
Fix regression where http headers were ignored (flutter/packages#10991)
2026-02-12 47866232+chunhtai@users.noreply.github.com [ci] Adds more ci
checks for batch release file integrity (flutter/packages#10859)
2026-02-12 stuartmorgan@google.com [google_maps_flutter] Create SDK 9
and 10 packages for iOS (flutter/packages#10852)
2026-02-12 katelovett@google.com Update codeowners
(flutter/packages#11004)
2026-02-11 engine-flutter-autoroll@skia.org Roll Flutter (stable) from
67323de to 44a626f (1372 revisions) (flutter/packages#10999)
2026-02-11 stuartmorgan@google.com [video_player] Convert iOS unit tests
to Swift (flutter/packages#10989)
2026-02-11 47866232+chunhtai@users.noreply.github.com [ci] updates
`update-release-info` to support batch release (flutter/packages#10958)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants