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

Run all flutter/packages macOS tests using Xcode 16 and iOS 18 simulator #148901

Open
2 tasks
Tracked by #148870 ...
vashworth opened this issue May 22, 2024 · 0 comments
Open
2 tasks
Tracked by #148870 ...
Labels
P2 Important issues not at the top of the work list team-ios Owned by iOS platform team triaged-ios Triaged by iOS platform team

Comments

@vashworth
Copy link
Contributor

vashworth commented May 22, 2024

Prerequisites

Instructions

Make a PR that changes the .ci.yaml to use the new Xcode build version and run exclusively on macOS 14. Note that not all tests run in presubmit, so you'll likely need to do some of them via led or edit the .ci.yaml to run the tests in presubmit.

https://github.com/flutter/packages/blob/main/.ci.yaml

$flutter/osx_sdk : >-
        {
-          "sdk_version": "15a240d"
           "sdk_version": "[insert new CIPD case-sensitive Xcode build version]"
        }
        
- os: Mac-13|Mac-14
  os: Mac-14

https://github.com/flutter/packages/blob/main/.ci/scripts/create_simulator.sh

- readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-17-0
  readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-18-0

https://github.com/flutter/packages/blob/main/.ci/targets/ios_platform_tests.yaml

- args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=Flutter-iPhone,OS=17.0"]
  args: ["native-test", "--ios", "--ios-destination", "platform=iOS Simulator,name=Flutter-iPhone,OS=18.0"]

https://github.com/flutter/packages/blob/main/packages/pigeon/tool/shared/test_suites.dart

-  const String deviceRuntime = 'com.apple.CoreSimulator.SimRuntime.iOS-17-0';
-  const String deviceOS = '17.0';
   const String deviceRuntime = 'com.apple.CoreSimulator.SimRuntime.iOS-18-0';
   const String deviceOS = '18.0';

To run tests using led, such as for tests that don't run in presubmit, you can use a command like the following to test against the PR:

  1. led get-builder "luci.flutter.staging:Mac_arm64 ios_platform_tests_shard_3 stable" > properties.json
  2. Replace "sdk_version": "15a240d" with new Xcode build version (case sensitive with CIPD version)
  3. cat properties.json | led edit -d os=Mac-14 | led edit -pa git_ref='refs/pull/[insert PR id]/head' | led edit -pa git_url='https://github.com/flutter/packages | led edit-recipes-bundle | led launch

File issues for tests that fail and add links to the issues in #148898. This is important so we can track any fixes that need to be cherrypicked to beta/stable and so steps that are steps are not completed before issues are resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Important issues not at the top of the work list team-ios Owned by iOS platform team triaged-ios Triaged by iOS platform team
Projects
None yet
Development

No branches or pull requests

1 participant