From 1872d4bb32e4073f9babec36f147928ad32a8879 Mon Sep 17 00:00:00 2001 From: Victoria Ashworth <15619084+vashworth@users.noreply.github.com> Date: Wed, 13 Dec 2023 13:57:09 -0600 Subject: [PATCH] Allow tests to run on macOS 13 (flutter/engine#48894) Update macOS web tests to run on macOS 13 and arm64. Changed so test is consistent OS and architecture, which will cause less discrepancy in goldens. Fixes https://github.com/flutter/flutter/issues/139924. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- .../src/flutter/ci/builders/linux_web_engine.json | 15 ++++++++++----- .../lib/web_ui/dev/generate_builder_json.dart | 4 +++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/ci/builders/linux_web_engine.json b/engine/src/flutter/ci/builders/linux_web_engine.json index 8df13d4fb1..9dc023b445 100644 --- a/engine/src/flutter/ci/builders/linux_web_engine.json +++ b/engine/src/flutter/ci/builders/linux_web_engine.json @@ -1095,7 +1095,8 @@ "recipe": "engine_v2/tester_engine", "drone_dimensions": [ "device_type=none", - "os=Mac-12" + "os=Mac-13", + "cpu=arm64" ], "gclient_variables": { "download_android_deps": false @@ -1127,7 +1128,8 @@ "recipe": "engine_v2/tester_engine", "drone_dimensions": [ "device_type=none", - "os=Mac-12" + "os=Mac-13", + "cpu=arm64" ], "gclient_variables": { "download_android_deps": false @@ -1159,7 +1161,8 @@ "recipe": "engine_v2/tester_engine", "drone_dimensions": [ "device_type=none", - "os=Mac-12" + "os=Mac-13", + "cpu=arm64" ], "gclient_variables": { "download_android_deps": false @@ -1191,7 +1194,8 @@ "recipe": "engine_v2/tester_engine", "drone_dimensions": [ "device_type=none", - "os=Mac-12" + "os=Mac-13", + "cpu=arm64" ], "gclient_variables": { "download_android_deps": false @@ -1223,7 +1227,8 @@ "recipe": "engine_v2/tester_engine", "drone_dimensions": [ "device_type=none", - "os=Mac-12" + "os=Mac-13", + "cpu=arm64" ], "gclient_variables": { "download_android_deps": false diff --git a/engine/src/flutter/lib/web_ui/dev/generate_builder_json.dart b/engine/src/flutter/lib/web_ui/dev/generate_builder_json.dart index 4cfa562334..fe1e6f664a 100644 --- a/engine/src/flutter/lib/web_ui/dev/generate_builder_json.dart +++ b/engine/src/flutter/lib/web_ui/dev/generate_builder_json.dart @@ -116,7 +116,7 @@ Iterable _getAllTestSteps(List suites) { // TODO(jacksongardner): Stop filtering to Mac-12 after macOS 13 issues are fixed: // https://github.com/flutter/flutter/issues/136274, // https://github.com/flutter/flutter/issues/136279 - ..._getTestStepsForPlatform(suites, 'Mac', specificOS: 'Mac-12', (TestSuite suite) => + ..._getTestStepsForPlatform(suites, 'Mac', specificOS: 'Mac-13', cpu: 'arm64', (TestSuite suite) => suite.runConfig.browser == BrowserName.safari ), ..._getTestStepsForPlatform(suites, 'Windows', (TestSuite suite) => @@ -134,6 +134,7 @@ Iterable _getTestStepsForPlatform( String platform, bool Function(TestSuite suite) filter, { String? specificOS, + String? cpu, }) { return suites .where(filter) @@ -143,6 +144,7 @@ Iterable _getTestStepsForPlatform( 'drone_dimensions': [ 'device_type=none', 'os=${specificOS ?? platform}', + if (cpu != null) 'cpu=$cpu', ], 'gclient_variables': { 'download_android_deps': false,