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

Going back to macos-12 for iOS integration tests to improve the performance dramatically #1012

Merged
merged 7 commits into from
Sep 19, 2023

Conversation

nilsreichardt
Copy link
Member

@nilsreichardt nilsreichardt commented Sep 18, 2023

I found the issue why our build times for iOS integration tests went from 15 - 20 minutes to 60 - 100 minutes: it's macos-13. Going back to macos-12 solves this issue. Invertase faced the same issue: firebase/flutterfire#11451.

I tested it with 3 builds using macos-12. All three only took 23 minutes:

image

https://github.com/SharezoneApp/sharezone-app/actions/runs/6228178121/job/16904381314?pr=1012

However, using macos-12 has the problem that macos-12 does not support Metal (flutter/flutter#126768), which is used by Impeller. So we have to disable Impeller for integration testing. This is not really great, because in production we use Impeller, and there could be a problem with Impeller in our application that is not tested. In the end, it's a trade-off. I think the probability that there is an issue with Impeller that is covered by our integration tests is very low, and having 120 minutes of integration tests really slows down development. So I would choose the option to disable Impeller for now.

@github-actions github-actions bot added the ci/cd label Sep 18, 2023
@nilsreichardt nilsreichardt changed the title Try to find out why iOS build times so high Going back to macos-12 for iOS integration tests to improve the performance dramatically Sep 18, 2023
@nilsreichardt nilsreichardt marked this pull request as ready for review September 18, 2023 22:10
@nilsreichardt nilsreichardt added this pull request to the merge queue Sep 19, 2023
Merged via the queue into main with commit 64874ad Sep 19, 2023
@nilsreichardt nilsreichardt deleted the find-out-why-ios-build-times-are-high branch September 19, 2023 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants