From 8e4206c239d7bc5a2e1ee92721db22b05867713b Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Tue, 11 Jul 2023 15:56:05 -0700 Subject: [PATCH] Run linux_unopt on a machine with more cores (flutter/engine#43473) The unit tests can run in parallel so running on a bigger machine gives a good speedup. This shaves ~10 minutes off of linux_unopt time. Some of the DisplayList unit tests go over the 120s limit, so this PR also bumps the default limit to 300s. --- engine/src/flutter/ci/builders/linux_unopt.json | 3 ++- engine/src/flutter/testing/run_all_unittests.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/ci/builders/linux_unopt.json b/engine/src/flutter/ci/builders/linux_unopt.json index 6058544cb6..6096792f84 100644 --- a/engine/src/flutter/ci/builders/linux_unopt.json +++ b/engine/src/flutter/ci/builders/linux_unopt.json @@ -3,7 +3,8 @@ { "drone_dimensions": [ "device_type=none", - "os=Linux" + "os=Linux", + "cores=32" ], "gn": [ "--runtime-mode", diff --git a/engine/src/flutter/testing/run_all_unittests.cc b/engine/src/flutter/testing/run_all_unittests.cc index 8d08a3a59e..4213a9c754 100644 --- a/engine/src/flutter/testing/run_all_unittests.cc +++ b/engine/src/flutter/testing/run_all_unittests.cc @@ -23,8 +23,8 @@ std::optional GetTestTimeout() { std::string timeout_seconds; if (!command_line.GetOptionValue("timeout", &timeout_seconds)) { - // No timeout specified. Default to 120s. - return fml::TimeDelta::FromSeconds(120u); + // No timeout specified. Default to 300s. + return fml::TimeDelta::FromSeconds(300u); } const auto seconds = std::stoi(timeout_seconds);