Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Enable Mac ios_platform_tests tests #6682

Merged
merged 7 commits into from
Nov 15, 2022

Conversation

keyonghan
Copy link
Contributor

@keyonghan keyonghan marked this pull request as draft November 9, 2022 00:52
@keyonghan
Copy link
Contributor Author

All master shards passed, but two of four stable shards failed complaining about identifiers:

'com.apple.platform.appletvos' is an unknown platform identifier
'com.apple.platform.watchos' is an unknown platform identifier

Examples:
Mac_x64 ios_platform_tests_0_4 stable
Mac_x64 ios_platform_tests_2_4 stable

/cc @stuartmorgan Do you see anything we missed in this PR?

# found in the LICENSE file.

xcrun simctl list
xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-16-0 | xargs xcrun simctl boot
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to use iOS-16-0, which is the default runtime with current xcode.

@keyonghan keyonghan marked this pull request as ready for review November 12, 2022 00:11
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM with some minor nits.

.ci.yaml Outdated
# TODO(stuartmorgan): Swap this and ios-build_all_plugins once simulator
# tests are reliable on the ARM infrastructure. See discussion at
# https://github.com/flutter/plugins/pull/5693#issuecomment-1126011089
- name: Max_x64 ios_platform_tests_0_4 master
Copy link
Contributor

Choose a reason for hiding this comment

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

Without the clarify of "index" and "count" being in the name, I think it would be clear to 1-index them and add an "of". I.e., ios_platform_tests_1_of_4 through ios_platform_tests_4_of_4.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

# found in the LICENSE file.

xcrun simctl list
xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-16-0 | xargs xcrun simctl boot
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we have a mini-script, I think it would be nice to pull out the device and OS into variables so each is on their own line instead of one massive line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SG. Updated the script.

.ci.yaml Outdated
# TODO(stuartmorgan): Swap this and ios-build_all_plugins once simulator
# tests are reliable on the ARM infrastructure. See discussion at
# https://github.com/flutter/plugins/pull/5693#issuecomment-1126011089
- name: Max_x64 ios_platform_tests_0_4 master
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any plan to building matricies into Cocoon? Having to specify each of these explicitly is much more verbose and error prone than the Cirrus matrix spec. It would also be a huge pain to change the sharding (which we do occasionally) since instead of being able to do a single PR—including the ability to iterate in presubmit to see what the best number of shards is, which is usually what we have done in the past—we'll need to add a whole duplicate set in bringup, land them, see how they go, iterate in post-submit with new PRs if necessary, and then finally do a last PR to switch over.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A generic builder will do the trick. It has been planned for release branches (flutter/flutter#97265), and we can do the same for main/master.
But currently it is blocked on LUCI team implementing the support API. Once that's unblocked, we should be able to use cocoon do the scheduling.

@keyonghan keyonghan added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 15, 2022
@auto-submit auto-submit bot merged commit e500884 into flutter:main Nov 15, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 15, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 15, 2022
* 79d62f726 Roll Flutter from 5ea5a53 to a1289a4 (7 revisions) (flutter/plugins#6677)

* 910b61d1b Roll Flutter from a1289a4 to a1432a9 (23 revisions) (flutter/plugins#6681)

* 58579201e Roll Flutter from a1432a9 to d3dcd7d (8 revisions) (flutter/plugins#6684)

* 6da73be00 Enable `Mac build_all_plugins` (flutter/plugins#6671)

* cc4ffaebd Update flutter cirrus key (flutter/plugins#6687)

* f35c16930 Roll Flutter from d3dcd7d to c7d1154 (13 revisions) (flutter/plugins#6689)

* 553dac8b2 Roll Flutter from c7d1154 to 098aac7 (24 revisions) (flutter/plugins#6692)

* 11cb48366 Roll Flutter (stable) from e99c9c7 to 52b3dc2 (4 revisions) (flutter/plugins#6690)

* b1c457fc9 Roll Flutter from 098aac7 to 61e927d (16 revisions) (flutter/plugins#6694)

* e500884c7 Enable Mac ios_platform_tests tests (flutter/plugins#6682)
@cyanglaz
Copy link
Contributor

cyanglaz commented Nov 17, 2022

The [Mac_x64 ios_platform_tests_2_of_4 master](https://ci.chromium.org/p/flutter/builders/staging/Mac_x64%20ios_platform_tests_2_of_4%20master) kept failing post submit

@keyonghan
Copy link
Contributor Author

The [Mac_x64 ios_platform_tests_2_of_4 master](https://ci.chromium.org/p/flutter/builders/staging/Mac_x64%20ios_platform_tests_2_of_4%20master) kept failing post submit

They are marked as bringup: true and should not block the tree. Now the tree is green: flutter/flutter#115534

adam-harwood pushed a commit to adam-harwood/flutter_plugins that referenced this pull request Nov 21, 2022
* add 0_4 master

* typo fix

* update args

* fix args

* ios runtime update

* name change & variables

* platform name fix
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…r#115366)

* 79d62f726 Roll Flutter from 5ea5a53 to a1289a4 (7 revisions) (flutter/plugins#6677)

* 910b61d1b Roll Flutter from a1289a4 to a1432a9 (23 revisions) (flutter/plugins#6681)

* 58579201e Roll Flutter from a1432a9 to d3dcd7d (8 revisions) (flutter/plugins#6684)

* 6da73be00 Enable `Mac build_all_plugins` (flutter/plugins#6671)

* cc4ffaebd Update flutter cirrus key (flutter/plugins#6687)

* f35c16930 Roll Flutter from d3dcd7d to c7d1154 (13 revisions) (flutter/plugins#6689)

* 553dac8b2 Roll Flutter from c7d1154 to 098aac7 (24 revisions) (flutter/plugins#6692)

* 11cb48366 Roll Flutter (stable) from e99c9c7 to 52b3dc2 (4 revisions) (flutter/plugins#6690)

* b1c457fc9 Roll Flutter from 098aac7 to 61e927d (16 revisions) (flutter/plugins#6694)

* e500884c7 Enable Mac ios_platform_tests tests (flutter/plugins#6682)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…r#115366)

* 79d62f726 Roll Flutter from 5ea5a53 to a1289a4 (7 revisions) (flutter/plugins#6677)

* 910b61d1b Roll Flutter from a1289a4 to a1432a9 (23 revisions) (flutter/plugins#6681)

* 58579201e Roll Flutter from a1432a9 to d3dcd7d (8 revisions) (flutter/plugins#6684)

* 6da73be00 Enable `Mac build_all_plugins` (flutter/plugins#6671)

* cc4ffaebd Update flutter cirrus key (flutter/plugins#6687)

* f35c16930 Roll Flutter from d3dcd7d to c7d1154 (13 revisions) (flutter/plugins#6689)

* 553dac8b2 Roll Flutter from c7d1154 to 098aac7 (24 revisions) (flutter/plugins#6692)

* 11cb48366 Roll Flutter (stable) from e99c9c7 to 52b3dc2 (4 revisions) (flutter/plugins#6690)

* b1c457fc9 Roll Flutter from 098aac7 to 61e927d (16 revisions) (flutter/plugins#6694)

* e500884c7 Enable Mac ios_platform_tests tests (flutter/plugins#6682)
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
* add 0_4 master

* typo fix

* update args

* fix args

* ios runtime update

* name change & variables

* platform name fix
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants