From f0ecfff3ca70f45667b3a50c0a9510ba481bd870 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Fri, 23 Oct 2020 10:39:33 -0700 Subject: [PATCH] [devicelab] mark twc as flaky and fix flutter test perf (#68895) --- dev/devicelab/bin/tasks/flutter_test_performance.dart | 11 ++++++----- dev/devicelab/manifest.yaml | 3 +++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/dev/devicelab/bin/tasks/flutter_test_performance.dart b/dev/devicelab/bin/tasks/flutter_test_performance.dart index acd2da8ac7..83a4c64987 100644 --- a/dev/devicelab/bin/tasks/flutter_test_performance.dart +++ b/dev/devicelab/bin/tasks/flutter_test_performance.dart @@ -37,10 +37,11 @@ enum TestStep { testPassed, } -Future runTest({bool coverage = false}) async { +Future runTest({bool coverage = false, bool noPub = false}) async { final Stopwatch clock = Stopwatch()..start(); final List arguments = flutterCommandArgs('test', [ if (coverage) '--coverage', + if (noPub) '--no-pub', path.join('flutter_test', 'trivial_widget_test.dart'), ]); final Process analysis = await startProcess( @@ -107,21 +108,21 @@ void main() { final String originalSource = await nodeSourceFile.readAsString(); try { await runTest(); // first number is meaningless; could have had to build the tool, run pub get, have a cache, etc - final int withoutChange = await runTest(); // run test again with no change + final int withoutChange = await runTest(noPub: true); // run test again with no change await nodeSourceFile.writeAsString( // only change implementation originalSource .replaceAll('_owner', '_xyzzy') ); - final int implementationChange = await runTest(); // run test again with implementation changed + final int implementationChange = await runTest(noPub: true); // run test again with implementation changed await nodeSourceFile.writeAsString( // change interface as well originalSource .replaceAll('_owner', '_xyzzy') .replaceAll('owner', '_owner') .replaceAll('_xyzzy', 'owner') ); - final int interfaceChange = await runTest(); // run test again with interface changed + final int interfaceChange = await runTest(noPub: true); // run test again with interface changed // run test with coverage enabled. - final int withCoverage = await runTest(coverage: true); + final int withCoverage = await runTest(coverage: true, noPub: true); final Map data = { 'without_change_elapsed_time_ms': withoutChange, 'implementation_change_elapsed_time_ms': implementationChange, diff --git a/dev/devicelab/manifest.yaml b/dev/devicelab/manifest.yaml index 5a08535385..66c8353e8e 100644 --- a/dev/devicelab/manifest.yaml +++ b/dev/devicelab/manifest.yaml @@ -428,6 +428,7 @@ tasks: Verifies that track-widget-creation can be enabled and disabled. stage: devicelab required_agent_capabilities: ["mac/android"] + flaky: true android_defines_test: description: > @@ -647,6 +648,7 @@ tasks: Verifies that track-widget-creation can be enabled and disabled. stage: devicelab_ios required_agent_capabilities: ["mac/ios"] + flaky: true macos_chrome_dev_mode: description: > @@ -913,6 +915,7 @@ tasks: Verifies that track-widget-creation can be enabled and disabled. stage: devicelab required_agent_capabilities: ["linux-vm"] + flaky: true # android_splash_screen_integration_test: # description: >