Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[ios, build] Add MORE_SIMULATORS option to iOS make commands #14903

Merged
merged 1 commit into from
Jun 14, 2019

Conversation

friedbunny
Copy link
Contributor

@friedbunny friedbunny commented Jun 11, 2019

Adds a MORE_SIMULATORS option to our make ios-test commands that enables more device types and iOS versions.

Example usage: make ios-test MORE_SIMULATORS=YES

Notes

  • This is useful only locally or on actual Mac hardware and doesn’t address [ios] Run test suite against more versions of iOS on CI #10708 — cloud CI providers like CircleCI do not provide the resources necessary to execute parallel simulators in a reliable or performant way.
  • If you run this now, there are many failing tests. This is a starting point — we must go through the test failures and fix them.
  • Use the new make ios-install-simulators command to install the necessary simulators. This uses xcversion.
  • Bumps our default test simulator device from iPhone 6 to iPhone 8. Xcode 11 and iOS 13 will drop support for iPhone 6, while the iPhone 8 is currently one of the most widely-used iOS devices in the wild.

/cc @mapbox/maps-ios

@friedbunny friedbunny added iOS Mapbox Maps SDK for iOS tests labels Jun 11, 2019
@friedbunny friedbunny requested review from julianrex and a team June 11, 2019 22:13
@friedbunny friedbunny self-assigned this Jun 11, 2019
Copy link
Contributor

@julianrex julianrex left a comment

Choose a reason for hiding this comment

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

Love this! Can we add an XR to the mix please - it's the phone seeing the greatest uptake currently.

@friedbunny friedbunny force-pushed the friedbunny-adds-more-simulators branch from ebee7cd to 1cfb0ed Compare June 14, 2019 22:23
@friedbunny
Copy link
Contributor Author

friedbunny commented Jun 14, 2019

Note that this is what I get when running make ios-test MORE_SIMULATORS=1 with Xcode 10:

Failing tests:
	test:
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]
		-[MGLOfflineStorageTests testAddFileContent]

Seems like this test is taking a very long time:

Test case '-[MGLOfflineStorageTests testAddFileContent]' failed on 'iPhone Xs Max' (12.384 seconds)
Test case '-[MGLOfflineStorageTests testAddFileContent]' failed on 'iPhone Xʀ' (12.567 seconds)
Test case '-[MGLOfflineStorageTests testAddFileContent]' failed on 'iPad Pro (11-inch)' (11.952 seconds)

... so there’s something about this test that isn’t compatible with multiple concurrent simulators.

Ticketed at #14928.

/cc @fabian-guerra

@friedbunny
Copy link
Contributor Author

friedbunny commented Jun 14, 2019

Can we add an XR to the mix please - it's the phone seeing the greatest uptake currently.

Done.

Incidentally, my methodology in picking devices was to represent most size-classes (iPhone and iPad) and screen density variants (@2x and @3x) for supported iOS versions.

@friedbunny friedbunny merged commit 1cfb0ed into master Jun 14, 2019
@friedbunny friedbunny deleted the friedbunny-adds-more-simulators branch June 14, 2019 23:37
@julianrex
Copy link
Contributor

If you run this now, there are many failing tests

I just did 😮😢

@friedbunny
Copy link
Contributor Author

There are a few failures I’ve seen:

@julianrex if you see any other failures, please be sure to ticket them out.

@julianrex
Copy link
Contributor

Some older simulators don’t seem to want to boot

I think I had this - possibly the Xcode 11 beta installing a newer CoreSimulator framework? Regardless, I deleted the framework and restarted Xcode 10, and life seems better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants