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
This commit is contained in:
Victoria Ashworth
2023-12-13 13:57:09 -06:00
committed by GitHub
parent 5b67468e21
commit 1872d4bb32
2 changed files with 13 additions and 6 deletions

View File

@@ -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

View File

@@ -116,7 +116,7 @@ Iterable<dynamic> _getAllTestSteps(List<TestSuite> 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<dynamic> _getTestStepsForPlatform(
String platform,
bool Function(TestSuite suite) filter, {
String? specificOS,
String? cpu,
}) {
return suites
.where(filter)
@@ -143,6 +144,7 @@ Iterable<dynamic> _getTestStepsForPlatform(
'drone_dimensions': <String>[
'device_type=none',
'os=${specificOS ?? platform}',
if (cpu != null) 'cpu=$cpu',
],
'gclient_variables': <String, dynamic>{
'download_android_deps': false,