-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[pigeon] Consolidate platform test harnesses part 3 - iOS #2811
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
[pigeon] Consolidate platform test harnesses part 3 - iOS #2811
Conversation
|
All the Swift test file whitespace changes are because we aren't currently using an autoformatter for Swift, so they weren't caught, but I have Xcode set up to strip trailing whitespace on save, and I had to touch all of those files. Since we don't want trailing whitespace, I went ahead and included the change rather than trying to undo all of it. |
tarrinneal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so many lines changed, wow!
|
auto label is removed for flutter/packages, pr: 2811, due to - The status or check suite macos-custom_package_tests CHANNEL:stable has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
auto label is removed for flutter/packages, pr: 2811, due to - The status or check suite macos-custom_package_tests CHANNEL:stable has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
It looks like this is the culprit. Based on offline discussion, we are seeing the iOS tests hang flakily offline, but not this often. That means that either this PR makes it worse, or it's had extremely bad luck. I'll split it into Swift and ObjC and see if those parts fare differently, in parallel with seeing if I can repro the hang offline to fix it. |
|
So far I can't repro the hang locally. I get a couple of minutes sometimes where Xcode isn't doing anything obvious between the build step and the test-running step (a simulator open, but then just sits there), but nothing longer than that. That does make me wonder if the frequent CI issues here are related to the problem we had with enabling ARM for native tests in the plugins repo (if there's a difference in the simulator targeting of the projects maybe?) |
3b86631 to
13fd74b
Compare
|
I tried switching away from ARM to see if that was it, and then I get errors in CI about not being able to find the host. Maybe adding that target in Xcode 14 (which is what I have locally) doesn't work in Xcode 13 (which is all we can get with the Intel Cirrus images, AFAICT, and given that they show a deprecation warning on runs I'm assuming that won't change). I'm going to put this on pause for the moment since I've been beating my head against it for a few hours now with no results. We can land the Swift part, hold off on iOS for now, and I'll maybe look into migrating this test to LUCI before continuing. It looks like we have an Intel Xcode 14 image, which would let me test that hypothesis. In the meantime I can start getting integration tests set up, and they just won't run for ObjC in CI for the time being. |
|
Closing in favor of #2816 since I landed the Swift part separately. |
Part of #2803
Moves the Swift and Objective-C iOS tests into the new combined harnesses, updating the test script accordingly and removing the old harnesses.
As a minor opportunistic change since imports needed to be changed anyway, this updates the ObjC test imports to use modules.
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).