Skip to content

Made the MIT matcher not greedy and added a boost file matcher#185491

Merged
auto-submit[bot] merged 4 commits into
flutter:masterfrom
gaaclarke:no-greedy-mit
Apr 24, 2026
Merged

Made the MIT matcher not greedy and added a boost file matcher#185491
auto-submit[bot] merged 4 commits into
flutter:masterfrom
gaaclarke:no-greedy-mit

Conversation

@gaaclarke

@gaaclarke gaaclarke commented Apr 23, 2026

Copy link
Copy Markdown
Member

fixes #184587

The reason the roll wasn't working is that the MIT license matcher was being greedy and it was grabbing all the text between 2 MIT licenses in the icu license file. That included licenses for files that we explicitly removed for files we don't use.

Pre-launch Checklist

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

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

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.

@gaaclarke gaaclarke added the CICD Run CI/CD label Apr 23, 2026
@github-actions github-actions Bot added the engine flutter/engine related. See also e: labels. label Apr 23, 2026
@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 23, 2026
@gaaclarke gaaclarke added the CICD Run CI/CD label Apr 23, 2026
@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 23, 2026
@gaaclarke gaaclarke added the CICD Run CI/CD label Apr 23, 2026
@gaaclarke gaaclarke marked this pull request as ready for review April 23, 2026 20:09

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request adds a new license matcher for the Boost Software License, updates the .gitignore for sky_engine, and modifies the MIT license regex to use non-greedy matching. Feedback on the new Boost license matcher suggests unescaping double quotes for consistency with other matchers and escaping literal periods to ensure precise regex matching.

Comment thread engine/src/flutter/tools/licenses_cpp/data/licenses/boost_file.txt Outdated
Comment thread engine/src/flutter/tools/licenses_cpp/data/licenses/boost_file.txt Outdated
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.

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.

medium

The literal period at the end of the sentence is not escaped. In a regex, . matches any character. It should be escaped as \. for precision and consistency with other matchers like mit.txt (line 18).

a source language processor\.

SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

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.

medium

The literal period at the end of the file should be escaped as \. to ensure it matches only a period.

DEALINGS IN THE SOFTWARE\.

@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 23, 2026
@gaaclarke gaaclarke added the CICD Run CI/CD label Apr 23, 2026
@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 24, 2026
@auto-submit auto-submit Bot added this pull request to the merge queue Apr 24, 2026
Merged via the queue into flutter:master with commit 67a632f Apr 24, 2026
197 of 198 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Apr 24, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Apr 24, 2026
flutter/flutter@aeb9623...3100188

2026-04-24 engine-flutter-autoroll@skia.org Roll Skia from 1c9b0b9141e9 to 63dbf37c3700 (1 revision) (flutter/flutter#185533)
2026-04-24 30870216+gaaclarke@users.noreply.github.com Made MetalSDF a printed name when sdf's are enabled. (flutter/flutter#185504)
2026-04-24 30870216+gaaclarke@users.noreply.github.com Made the MIT matcher not greedy and added a boost file matcher (flutter/flutter#185491)

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
Please CC stuartmorgan@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: 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
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
…#11579)

flutter/flutter@aeb9623...3100188

2026-04-24 engine-flutter-autoroll@skia.org Roll Skia from 1c9b0b9141e9 to 63dbf37c3700 (1 revision) (flutter/flutter#185533)
2026-04-24 30870216+gaaclarke@users.noreply.github.com Made MetalSDF a printed name when sdf's are enabled. (flutter/flutter#185504)
2026-04-24 30870216+gaaclarke@users.noreply.github.com Made the MIT matcher not greedy and added a boost file matcher (flutter/flutter#185491)

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
Please CC stuartmorgan@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: 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

CICD Run CI/CD engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

License script did not handle autoconf license correctly.

3 participants