Skip to content

[various] Upgrade googletest to v1.15.2#11586

Merged
auto-submit[bot] merged 4 commits intoflutter:mainfrom
Gustl22:185597-google-tools
Apr 29, 2026
Merged

[various] Upgrade googletest to v1.15.2#11586
auto-submit[bot] merged 4 commits intoflutter:mainfrom
Gustl22:185597-google-tools

Conversation

@Gustl22
Copy link
Copy Markdown
Contributor

@Gustl22 Gustl22 commented Apr 26, 2026

Running e.g. pigeon tests (packages\pigeon\tool\test.dart) with Visual Studio 2026 gives the following error:

##############################
# Generating platform_test/ output [start time 22:58:25]
Generation complete!
##############################
# Running windows_unittests [start time 22:58:29]
Building Windows application...                                 
CMake Error at D:/Tmp/Coding/git/flutter/packages/packages/pigeon/platform_tests/test_plugin/example/build/windows/x64/_deps/googletest-src/CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


Building Windows application...                                     6,9s
Unable to generate build files
# Failed, exit code: 1

Process finished with exit code 1

So upgrading the google tools to v1.15.2 resolves that issue as since 1.12.1 the minimum required CMake version is 3.5.

Towards flutter/flutter#185597

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

Copy link
Copy Markdown

@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 updates the googletest dependency version from 1.11.0 to 1.15.2 in the CMakeLists.txt files for the camera, file_selector, local_auth, pigeon, and url_launcher packages. I have no feedback to provide.

@Gustl22 Gustl22 force-pushed the 185597-google-tools branch from 93f775b to 837e25a Compare April 26, 2026 20:48
@Gustl22 Gustl22 marked this pull request as draft April 27, 2026 06:07
@Gustl22 Gustl22 marked this pull request as ready for review April 27, 2026 21:11
Copy link
Copy Markdown

@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 updates the googletest version to 1.15.2 across several packages, including camera_windows, file_selector, local_auth, pigeon, and url_launcher. Feedback indicates that a CHANGELOG.md entry should be added for the changes made to the pigeon package's test infrastructure.

FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/release-1.11.0.zip
URL https://github.com/google/googletest/archive/v1.15.2.zip
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The changes to the test infrastructure in the pigeon package should be accompanied by a CHANGELOG.md entry, consistent with the other packages updated in this pull request (such as camera_windows and file_selector_linux).

References
  1. Every change to a package must be accompanied by a version bump and a CHANGELOG entry.

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.

Pigeons test_plugin is not published and also doesn't provide a Changelog file.

Copy link
Copy Markdown
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.

We don't do changelog entries for test-only changes.

@stuartmorgan-g stuartmorgan-g added CICD Run CI/CD override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes labels Apr 28, 2026
@stuartmorgan-g
Copy link
Copy Markdown
Collaborator

version exempt: test only

This reverts commit de9542d.
@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 28, 2026
@Gustl22
Copy link
Copy Markdown
Contributor Author

Gustl22 commented Apr 28, 2026

We don't do changelog entries for test-only changes.

All right, I thought they are necessary, because they are part of the released package. Reverted them...

@Gustl22 Gustl22 requested a review from stuartmorgan-g April 28, 2026 20:50
Copy link
Copy Markdown
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

@tarrinneal for a second approval

@stuartmorgan-g stuartmorgan-g added the CICD Run CI/CD label Apr 28, 2026
@tarrinneal tarrinneal added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 29, 2026
@auto-submit auto-submit Bot merged commit bf6d7db into flutter:main Apr 29, 2026
82 checks passed
Mairramer pushed a commit to Mairramer/flutter that referenced this pull request Apr 29, 2026
…er#185748)

flutter/packages@ba80f8f...cde5b36

2026-04-29 stuartmorgan@google.com [file_selector] Switch to Kotlin
Pigeon (flutter/packages#11479)
2026-04-29 stuartmorgan@google.com [image_picker] Switch to Kotlin
Pigeon (flutter/packages#11504)
2026-04-29 stuartmorgan@google.com [quick_actions] Switch to Kotlin
Pigeon (flutter/packages#11507)
2026-04-29 git@reb0.org [pigeon] fix: Apply correct ThrowError success
callback (flutter/packages#11585)
2026-04-29 nateshmbhat1@gmail.com [video_player_platform_interface] Add
video track selection support (flutter/packages#11474)
2026-04-29 katelovett@google.com Update git ignore for
personal/iterating on agent skills and rules (flutter/packages#11600)
2026-04-29 stuartmorgan@google.com [file_selector] Update Windows
example for deprecations (flutter/packages#11570)
2026-04-29 git@reb0.org [various] Upgrade googletest to v1.15.2
(flutter/packages#11586)
2026-04-28 engine-flutter-autoroll@skia.org Roll Flutter (stable) from
cc0734a to 02085fe (2 revisions) (flutter/packages#11598)
2026-04-28 116356835+AbdeMohlbi@users.noreply.github.com [image_picker]
Update documentation of maxDuration to reflect that it only applies to
recording (flutter/packages#11417)
2026-04-28 suojae3@gmail.com [vector_graphics] add imageBuilder property
to VectorGraphic (flutter/packages#11094)
2026-04-28 engine-flutter-autoroll@skia.org Roll Flutter from
61fca76 to 81bc3d6 (1 revision) (flutter/packages#11597)

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 CICD Run CI/CD override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: camera p: file_selector p: local_auth p: pigeon p: url_launcher platform-linux platform-windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants