flutter/dev/devicelab/test
Ben Konyi 2c84e63ba7
[ Cocoon ] Wait for task results to be received by the task runner before shutting down the task process (#156002)
Prior to this fix, `_TaskRunner.run` would immediately cleanup the
keep-alive port once the task completed, which would result in the
isolate shutting down as soon as the task result was returned from
`ext.cocoonRunTask` callback in the form of a
`ServiceExtensionResponse`. Since the service extension response is
processed by the service isolate, it was possible for the VM to start
shutting down before the service isolate could send the task result data
back to the task runner.

This change introduces a new service extension,
`ext.cocoonTaskResultReceived`, that the task runner invokes after it
receives the task result from `ext.cocoonRunTask`, notifying the task
process that it can close the keep-alive port and shutdown.

Fixes https://github.com/flutter/flutter/issues/155475
2024-10-02 17:01:24 -04:00
..
framework [devicelab] Web benchmarks now run on Chromium 89+ (#98629) 2022-02-16 19:04:14 -08:00
tasks Copy artifacts to applicationBinaryPath when specified for build+test separation (#109879) 2022-08-23 16:32:39 +00:00
ab_test.dart Update dev/devicelab/** to provide --local-engine-host. (#132342) 2023-08-10 17:25:30 -07:00
adb_test.dart allow adb to set canfail then use canFail=true for clearing logs (#150517) 2024-06-24 19:13:24 +00:00
cocoon_test.dart Enable no_leading_underscores_for_local_identifiers (#96422) 2022-01-21 14:43:59 -08:00
common.dart Align more closely with package:test (#77118) (#78343) 2021-03-16 13:58:02 -07:00
host_agent_test.dart Migrate devicelab tests and test runners to null safety. (#85999) 2021-07-23 13:37:57 -07:00
metrics_center_test.dart add missing trailing commas in list/set/map literals (#102585) 2022-04-27 09:15:35 +02:00
perf_tests_test.dart Ensure that the output path used by perf_tests_test matches the path used by perf_tests if the FLUTTER_TEST_OUTPUTS_DIR variable is set (#153888) 2024-08-22 03:30:24 +00:00
run_test.dart Get reasonable output when a stream test fails. (#154377) 2024-09-03 21:36:24 +00:00
runner_test.dart [ Cocoon ] Wait for task results to be received by the task runner before shutting down the task process (#156002) 2024-10-02 17:01:24 -04:00
running_processes_test.dart Refactor devicelab bin/run.dart and other cleanup (#96320) 2022-01-10 13:40:17 -08:00
task_result_test.dart Migrate devicelab tests and test runners to null safety. (#85999) 2021-07-23 13:37:57 -07:00
utils_test.dart Update dev/devicelab/** to provide --local-engine-host. (#132342) 2023-08-10 17:25:30 -07:00