From ea89f20eb5a3f953750b819eb8e6ea86ccb06fc6 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 3 Jul 2024 06:23:23 -0700 Subject: [PATCH] Force regeneration of platform-specific manifests before running performance tests (#151003) Some performance tests run "flutter create" to generate platform-specific project configuration files for the test app. These files may be further patched by the test script to apply settings such as the Impeller backend. The manifests need to be deleted and recreated on each run so that settings applied by previous runs will not be used by the current run. --- dev/devicelab/lib/tasks/perf_tests.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index 8bb4b64652..bb92600ddf 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -1324,6 +1324,10 @@ class PerfTest { final String? localEngineSrcPath = localEngineSrcPathFromEnv; if (createPlatforms.isNotEmpty) { + // Ensure that the platform-specific manifests are freshly created and + // do not contain any settings from previous runs. + await exec('git', ['clean', '-f', testDirectory]); + await flutter('create', options: [ '--platforms', createPlatforms.join(','),