Skip to content

Conversation

@Hixie
Copy link
Contributor

@Hixie Hixie commented Dec 14, 2022

Fixes #94123

@flutter-dashboard flutter-dashboard bot added a: tests "flutter test", flutter_test, or one of our tests f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. c: contributor-productivity Team-specific productivity, code health, technical debt. c: tech-debt Technical debt, code quality, testing, etc. labels Dec 14, 2022
@Hixie Hixie marked this pull request as ready for review December 14, 2022 22:46
@goderbauer
Copy link
Member

Looks like the checks are unhappy. Could you take a look?

@Hixie Hixie force-pushed the zones branch 3 times, most recently from 46b2dd5 to 2a13282 Compare December 15, 2022 00:17
@flutter-dashboard
Copy link

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

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.

@Hixie Hixie force-pushed the zones branch 4 times, most recently from de79301 to 27161b9 Compare February 2, 2023 22:02
@Hixie Hixie force-pushed the zones branch 2 times, most recently from 19458af to b35e2f6 Compare February 13, 2023 21:46
@Hixie Hixie removed the f: material design flutter/packages/flutter/material repository. label Feb 15, 2023
@Hixie
Copy link
Contributor Author

Hixie commented Feb 15, 2023

This should be ready for review now.

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

Choose a reason for hiding this comment

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

For my own understanding: What do these tests do with zones that required disabling the zone check? From scanning through the tests, it wasn't immediately clear to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suspect that test introduces a Zone to catch (async) errors? But I didn't spend much time trying to track it down, to be honest.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe give this a name that makes people feel bad if they were to use it in a newly written test to avoid that this pattern spreads further? Something like LegacyTestBinding, maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ZoneIgnoringTestBinding?

Copy link
Member

Choose a reason for hiding this comment

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

assert that the thrown error actually contains some of the expected information to make sure we get the right one here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done (and hey, it was already the right one this time)

@Hixie
Copy link
Contributor Author

Hixie commented Feb 15, 2023

Thanks for the comments; applied the fixes. Will land on green.

@Hixie Hixie added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 15, 2023
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Feb 16, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Feb 16, 2023

auto label is removed for flutter/flutter, pr: 117113, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@Hixie
Copy link
Contributor Author

Hixie commented Feb 17, 2023

Google tests found that I'd missed the driver binding when it comes to skipping the zone check. Trying again with the driver binding skipping the zone check.

@Hixie Hixie force-pushed the zones branch 2 times, most recently from f2bf857 to 696d9d8 Compare February 17, 2023 21:05
@Hixie Hixie force-pushed the zones branch 4 times, most recently from 2dc3bc3 to 4161eff Compare February 17, 2023 21:11
@Hixie
Copy link
Contributor Author

Hixie commented Feb 17, 2023

@goderbauer I've walked this back a bit. Now it's a warning with a flag that lets you make it fatal, rather than an error. I did this because the google tests convinced me that making it fatal was too potentially breaking. I suggest we consider switching the default for the flag to true after a few more stable releases, once people have had enough advance warning.

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

Still LGTM

@Hixie Hixie added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 17, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Feb 17, 2023

auto label is removed for flutter/flutter, pr: 117113, due to - The status or check suite Mac web_tool_tests 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 17, 2023
@Hixie Hixie added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 18, 2023
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Feb 18, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Feb 18, 2023

auto label is removed for flutter/flutter, pr: 117113, due to - The status or check suite tool_tests-general-linux has failed. Please fix the issues identified (or deflake) before re-applying this label.

Copy link

@cbatson cbatson left a comment

Choose a reason for hiding this comment

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

nit: typo

Copy link

Choose a reason for hiding this comment

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

Suggested change
/// are encouraged to resolve any issues that case the [debugCheckZone] message
/// are encouraged to resolve any issues that cause the [debugCheckZone] message

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks!

@Hixie Hixie added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 16, 2023
@auto-submit auto-submit bot merged commit 96f927f into flutter:master Mar 16, 2023
yaakovschectman added a commit that referenced this pull request Mar 16, 2023
auto-submit bot pushed a commit that referenced this pull request Mar 16, 2023
…reInitialized (#117113)" (#122830)

Revert "Assert that runApp is called in the same zone as binding.ensureInitialized"
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests autosubmit Merge PR when tree becomes green via auto submit App c: contributor-productivity Team-specific productivity, code health, technical debt. c: tech-debt Technical debt, code quality, testing, etc. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flutter framework does not warn when ensureInitialized is called in a different zone than runApp

3 participants