ci: use custom test runner & enable swift_library_tests#338
ci: use custom test runner & enable swift_library_tests#338
Conversation
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
|
Something very odd is going on here - it’s launching the wrong sim in an invalid state, which is why we disabled this test previously: |
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
|
@keith everything is green locally, but it looks like on CI it can't seem to find a viable OS version for the simulator. I've tried 12.1, 12.2, and 12.4 - all of which say the versions are invalid. What's strange is that when running with 12.4, I get the following error:
When when switching to 12.2, it says 12.2 is invalid and to switch to 12.1. 12.1 yields a similar error:
Basically seems like we're in a loop. Any ideas? |
|
Ok it sounds like you want 12.2, and we need to debug the invalid error. That must mean that CI is still on Xcode 10.2.x? |
ci/mac_ci_setup.sh
Outdated
| done | ||
|
|
||
| # /Applications/Xcode.app/Contents/Developer | ||
| sudo xcodebuild -runFirstLaunch |
There was a problem hiding this comment.
this needs to be after the switch, assuming the switch is actually working
There was a problem hiding this comment.
Updated, looks like we're still getting the following error:
xctestrunner.shared.ios_errors.IllegalArgumentError: The simulator os version 12.4 is not supported. Supported simulator os versions are [u'8.4', u'9.0', u'9.1', u'9.2', u'9.3', u'10.0', u'10.1', u'10.2'].
The Xcode path is still indicating 10.3, though:
/Applications/Xcode_10.3.app/Contents/Developer
And iPhone X on 12.4 is listed as being available:
-- iOS 12.4 --
iPhone 5s (22DA5C87-561D-4147-A2ED-62F6C88C3690) (Shutdown)
iPhone 6 (9B3290A6-1E5F-4ACA-832D-C327C93A3A28) (Shutdown)
iPhone 6 Plus (29B6D028-AA03-481F-926E-0CAB108C3B1E) (Shutdown)
iPhone 6s (8841751E-A7FB-420C-9C6A-00C7646E120D) (Shutdown)
iPhone 6s Plus (57CEE6E3-0F66-42CD-A9C1-0212BA92522A) (Shutdown)
iPhone 7 (7852BB53-4751-4B0D-B0E7-2D5CC82FB2E5) (Shutdown)
iPhone 7 Plus (62FE3DA8-7C06-4353-AA46-02C50D0574ED) (Shutdown)
iPhone 8 (F4E5A2DE-1609-4C86-8AC4-0B7D799BDF78) (Shutdown)
iPhone 8 Plus (33DCB7FA-E504-4BC1-812A-82CD2E16CBEC) (Shutdown)
iPhone SE (6A941539-C0FD-4396-965C-3BC164B42840) (Shutdown)
iPhone X (067FE3A9-9FBB-4309-ACAA-5C6CBC6CA06F) (Shutdown)
Signed-off-by: Michael Rebello <me@michaelrebello.com>
…n from the following available simulators: Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: Michael Rebello <me@michaelrebello.com>
|
Replacing with #364 now that we're on GitHub Actions |
Introduces a custom test runner for iOS which works around a problem being fixed by bazelbuild/rules_apple#549, where we previously were unable to set a device/OS on which to run tests.
This allows us to re=enable
swift_library_testson CI.Signed-off-by: Michael Rebello me@michaelrebello.com