Skip to content

[cp-stable] GitHub workflows to assist with releases.#183480

Merged
auto-submit[bot] merged 1 commit intoflutter:flutter-3.41-candidate.0from
eyebrowsoffire:gh_workflow_cp_stable
Mar 11, 2026
Merged

[cp-stable] GitHub workflows to assist with releases.#183480
auto-submit[bot] merged 1 commit intoflutter:flutter-3.41-candidate.0from
eyebrowsoffire:gh_workflow_cp_stable

Conversation

@eyebrowsoffire
Copy link
Contributor

This cherry-picks the new GitHub workflows for releases into the stable channel.

This change has very little risk and doesn't require a changelog entry since it doesn't affect code that ships to customers.

Note: this does not need to be merged until we actually plan to do a release. Currently, the CP queue is empty, so we don't really need to merge this until there is a reason to make a stable release.

This cherry-picks the new GitHub workflows for releases into the stable channel.

This change has very little risk and doesn't require a changelog entry since
it doesn't affect code that ships to customers.

Note: this does not need to be merged until we actually plan to do a release.
Currently, the CP queue is empty, so we don't really need to merge this until
there is a reason to make a stable release.
@flutter-dashboard
Copy link

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@github-actions github-actions bot added the engine flutter/engine related. See also e: labels. label Mar 10, 2026
@eyebrowsoffire eyebrowsoffire added the cp: review Cherry-picks in the review queue label Mar 10, 2026
Copy link
Contributor

@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 create_updated_flutter_deps.py script. A new command-line argument, --dart_revision, is added to allow specifying a Dart revision, with validation for the git hash format. The script's file processing logic is also refactored to fix bugs where lines were incorrectly written to the output file. My review includes one suggestion to align with the project's Python style guide.

# No dart revision supplied. Leave as-is.
updatedfile.write(lines[i])
else:
updatedfile.write(" 'dart_revision': '%s',\n" % args.dart_revision)
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For consistency with other f-string usage in this file and to adhere to the Google Python Style Guide, it's recommended to use an f-string for formatting this line instead of the older % operator.

Suggested change
updatedfile.write(" 'dart_revision': '%s',\n" % args.dart_revision)
updatedfile.write(f" 'dart_revision': '{args.dart_revision}',\n")
References
  1. The repository style guide specifies that Python code should follow the Google Python Style Guide. This guide recommends using f-strings or str.format() for string formatting over the older % operator. (link)

Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@eyebrowsoffire eyebrowsoffire added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 11, 2026
@auto-submit auto-submit bot merged commit 22ba81c into flutter:flutter-3.41-candidate.0 Mar 11, 2026
162 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 18, 2026
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 cp: review Cherry-picks in the review queue engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants