Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to use Xcode 16.2 and iOS 18.2 Simulator #165318

Merged
merged 2 commits into from
Mar 18, 2025

Conversation

vashworth
Copy link
Contributor

Runs tests on Xcode 16.2 and iOS 18.2. Also updates engine scenario golden files to iOS 18.2 and removes non-impeller (Skia) test files that we no longer use.

All framework tests passing: #148899 (comment)
All engine tests passing: #148906 (comment)

Fixes #148907 and #148957.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added a: text input Entering text in a text field or keyboard related problems engine flutter/engine repository. See also e: labels. platform-web Web applications specifically labels Mar 17, 2025
// means the runtime was either bundled with Xcode, exactly matched your SDK
// version, or it's indicated a better match for your SDK.
final Map<String, Object?> decodeResult =
json.decode(runtimesForSelectedXcode) as Map<String, Object?>;
final String? iosKey =
decodeResult.keys.where((String key) => key.contains('iphoneos')).firstOrNull;
final String? runtimeBuildForSelectedXcode = switch (decodeResult[iosKey]) {
{'userOverriddenBuild': final String build} => build,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xcode 16.2 is weird in that it originally shipped with iOS 18.2 (22C150), but later the "preferredBuild" became 18.3.1 (22D8075). mac_toolchain is still using iOS 18.2 and sets it as the override build. This will make Flutter tests using a simulator use the override version if set.

This was causing a flaky error: https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20module_test_ios/3351/overview

@@ -370,6 +370,7 @@ public class $pluginClass: NSObject, FlutterPlugin {
destination: 'platform=macOS',
configuration: 'Debug',
testName: 'native_plugin_unit_tests_macos',
extraOptions: <String>['-parallel-testing-enabled', 'NO'],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vashworth vashworth marked this pull request as ready for review March 17, 2025 20:16
@vashworth vashworth requested a review from matanlurey as a code owner March 17, 2025 20:16
@vashworth vashworth requested a review from loic-sharma March 17, 2025 20:16
@vashworth vashworth added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 18, 2025
@auto-submit auto-submit bot added this pull request to the merge queue Mar 18, 2025
Merged via the queue into flutter:master with commit 425d1bd Mar 18, 2025
171 checks passed
@flutter-dashboard flutter-dashboard bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: text input Entering text in a text field or keyboard related problems engine flutter/engine repository. See also e: labels. platform-web Web applications specifically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update .ci.yaml in flutter/flutter to use Xcode 16 and macOS 14
3 participants