From 855ada1d953d3fffc578a97cad415bd4ca96f11f Mon Sep 17 00:00:00 2001 From: Christopher Fujino Date: Thu, 13 May 2021 17:13:03 -0700 Subject: [PATCH] pub global deactivate devtools before installing (#82491) * pub global deactivate devtools before installing * upgrade devtools to latest --- dev/devicelab/lib/tasks/perf_tests.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index b8f178560bd..baee1f98dd7 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -1436,6 +1436,12 @@ class DevToolsMemoryTest { } Future _launchDevTools() async { + // To mitigate https://github.com/flutter/flutter/issues/82142 + await exec(pubBin, [ + 'global', + 'deactivate', + 'devtools', + ], canFail: true); // The version of devtools is pinned. If we pub global activate devtools and an // upstream devtools release breaks our CI, it will manifest on an unrelated // commit, making it more difficult to determine the cause. @@ -1445,7 +1451,7 @@ class DevToolsMemoryTest { 'global', 'activate', 'devtools', - '2.2.2', + '2.2.3', ]); _devToolsProcess = await startProcess( pubBin,