-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Terminate simulator app on "q" #113581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminate simulator app on "q" #113581
Conversation
@@ -901,6 +901,24 @@ Dec 20 17:04:32 md32-11-vm1 Another App[88374]: Ignore this text''' | |||
throwsToolExit(message: r'Unable to launch'), | |||
); | |||
}); | |||
|
|||
testWithoutContext('.stopApp() handles exceptions', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to test that the app is actually terminated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean in an integration test? Let me see if I can get something working...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a check to the hot reload tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
.ci.yaml
Outdated
@@ -1791,8 +1791,6 @@ targets: | |||
tags: > | |||
["devicelab", "android", "linux"] | |||
task_name: hot_mode_dev_cycle_linux__benchmark | |||
runIf: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not going to check these .ci.yaml changes in, I just want to see if the desktop tests pass in presubmit.
@@ -257,3 +269,19 @@ Future<Map<String, dynamic>> captureReloadData( | |||
benchmarkFile.deleteSync(); | |||
return result; | |||
} | |||
|
|||
Future<void> _checkAppRunning(bool shouldBeRunning) async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something tells me this will be a flake factory... Will delete if that starts happening.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed
TESTOWNERS
Outdated
@@ -168,6 +168,7 @@ | |||
/dev/devicelab/bin/tasks/fullscreen_textfield_perf_impeller_ios__e2e_summary.dart @zanderso @flutter/engine | |||
/dev/devicelab/bin/tasks/fullscreen_textfield_perf_ios__e2e_summary.dart @zanderso @flutter/engine | |||
/dev/devicelab/bin/tasks/hello_world_ios__compile.dart @zanderso @flutter/engine | |||
/dev/devicelab/bin/tasks/hot_mode_dev_cycle_ios_simulator.dart @zanderso @flutter/tool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zanderso added this new test to validate hot reload on iOS simulators. I matched the owner to the other hot_mode_dev_cycle
benchmarks but I'm happy to own if you prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If/when the new test flakes, I'd just be routing it to you anyway, so cutting out the middleman and putting yourself as the owner seems like it would make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If any of the hot reload tests start flaking on checking the running processes they will be routed to me, but any actual issues with the hot reloading will be routed to you 🙂
Fortunately we know where to find each other.
Still LGTM |
Partial revert at #114083 |
…114098) Co-authored-by: Jenn Magder <[email protected]>
Add a new non-benchmark
hot_mode_dev_cycle_ios_simulator
test to validate hot reload works on an iOS simulator.Fixes #113580
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.