Skip to content

[macOS] Remove warning when running with merged threads. - #185673

Merged
auto-submit[bot] merged 2 commits into
flutter:masterfrom
knopp:change_merged_thread_warnings
Jun 26, 2026
Merged

auto-submit[bot] merged 2 commits into
flutter:masterfrom
knopp:change_merged_thread_warnings

Conversation

@knopp

@knopp knopp commented Apr 28, 2026

Copy link
Copy Markdown
Member

The engine has been running with merged threads by default probably fora year now, this message is obsolete.

List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

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.

@knopp
knopp requested a review from a team as a code owner April 28, 2026 11:00
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions Bot added engine flutter/engine related. See also e: labels. platform-macos Building on or for macOS specifically a: desktop Running on desktop team-macos Owned by the macOS platform team labels Apr 28, 2026
@knopp knopp added CICD Run CI/CD and removed engine flutter/engine related. See also e: labels. platform-macos Building on or for macOS specifically a: desktop Running on desktop team-macos Owned by the macOS platform team labels Apr 28, 2026

@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 updates the FlutterEngine to log a deprecation warning when running with unmerged UI and platform threads. A critical syntax error was identified in the Objective-C code where a multi-line string literal lacks the required '@' prefix on the second line, which would cause a compilation error and violates the Google Objective-C Style Guide.

@Piinks Piinks added engine flutter/engine related. See also e: labels. platform-macos Building on or for macOS specifically a: desktop Running on desktop team-macos Owned by the macOS platform team labels May 4, 2026
@knopp
knopp requested a review from loic-sharma June 18, 2026 21:06
@knopp
knopp force-pushed the change_merged_thread_warnings branch from bd11d92 to 69f59d5 Compare June 18, 2026 21:06

@loic-sharma loic-sharma left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but is there a test we should add?

@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 18, 2026
@knopp

knopp commented Jun 18, 2026

Copy link
Copy Markdown
Member Author

LGTM, but is there a test we should add?

Not sure. I don't think there's a straightforward way to read NSLog output for current process. It does usually output to stderr and we might be able to redirect that, but it's not guaranteed. I don't think this is worth it though given that this warning message will probably be rather short-lived as we plan to remove the opt-out anyway.

@knopp
knopp force-pushed the change_merged_thread_warnings branch from 69f59d5 to 43fc18e Compare June 19, 2026 11:41
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jun 19, 2026
@flutter-dashboard

Copy link
Copy Markdown

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Changes reported for pull request #185673 at sha 43fc18e

@flutter-dashboard flutter-dashboard Bot added the will affect goldens Changes to golden files label Jun 22, 2026
@loic-sharma
loic-sharma force-pushed the change_merged_thread_warnings branch from 43fc18e to 1e7e086 Compare June 25, 2026 00:33
@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 25, 2026
@loic-sharma

loic-sharma commented Jun 25, 2026 •

Copy link
Copy Markdown
Member

I rebased the PR as I suspect the golden diffs were because this was branched off a stale commit.

@loic-sharma loic-sharma added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App labels Jun 25, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Jun 26, 2026
Merged via the queue into flutter:master with commit b7d5550 Jun 26, 2026
206 of 207 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 26, 2026
This was referenced Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: desktop Running on desktop CICD Run CI/CD engine flutter/engine related. See also e: labels. platform-macos Building on or for macOS specifically team-macos Owned by the macOS platform team will affect goldens Changes to golden files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants