Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Do not stop flutter_tester if microtasks are still pending #56432

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

jason-simmons
Copy link
Member

Flutter_tester has a task observer that checks whether the test's Dart code has finished execution. If Dart no longer has live ports but does have pending microtasks, then flutter_tester should continue running and force a drain of the microtask queue.

Fixes flutter/flutter#158129

Flutter_tester has a task observer that checks whether the test's Dart
code has finished execution.  If Dart no longer has live ports but does
have pending microtasks, then flutter_tester should continue running and
force a drain of the microtask queue.

Fixes flutter/flutter#158129
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!).

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. 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.

@jason-simmons jason-simmons added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 11, 2024
@auto-submit auto-submit bot merged commit f9c6c6b into flutter:main Nov 11, 2024
33 checks passed
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 11, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 12, 2024
…158485)

flutter/engine@7b3eacd...35041f1

2024-11-11 [email protected] Roll Dart SDK from a393f3ed040a to 69170fac244c (1 revision) (flutter/engine#56513)
2024-11-11 [email protected] iOS,macOS: Refactor TestMetalContext for ARC (flutter/engine#56510)
2024-11-11 [email protected] [Impeller] geometry changes to support line/point style. (flutter/engine#56340)
2024-11-11 [email protected] Roll Skia from af6a4f9a85ee to 11046fd10394 (9 revisions) (flutter/engine#56508)
2024-11-11 [email protected] [Impeller] dont unnecessarily copy point data out of display list. (flutter/engine#56492)
2024-11-11 [email protected] [Impeller] fix line/polygon depth and GLES scissor state. (flutter/engine#56494)
2024-11-11 [email protected] Do not stop flutter_tester if microtasks are still pending (flutter/engine#56432)
2024-11-11 [email protected] Roll Skia from 261316c10484 to af6a4f9a85ee (5 revisions) (flutter/engine#56505)
2024-11-11 [email protected] Roll Dart SDK from 4ea43aa234a4 to a393f3ed040a (1 revision) (flutter/engine#56506)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected] 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
nick9822 pushed a commit to nick9822/flutter that referenced this pull request Dec 18, 2024
…ngine#56432)

Flutter_tester has a task observer that checks whether the test's Dart code has finished execution.  If Dart no longer has live ports but does have pending microtasks, then flutter_tester should continue running and force a drain of the microtask queue.

Fixes flutter#158129
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

testing/dart/color_test.dart on host_debug MacOS exits prematurely
2 participants