New MacOS13 image is slower than previous one. #8651
Replies: 29 comments 29 replies
-
Looks similar to #8023. |
Beta Was this translation helpful? Give feedback.
-
Hello, @christiangal-indi. Could you please provide minimal repro steps? |
Beta Was this translation helpful? Give feedback.
-
Yes, those times are using the same simulator with version (16.4). That's why I have created another issue as it is not the same case. This is about the images itself and not the simulator that was selected. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
We can see very similar result in increasing execution time in our project. Average time to builds and run unit test increase from 25 to 60 minutes. |
Beta Was this translation helpful? Give feedback.
-
We're also seeing a huge increase of execution time in our project just by switching to this image and trying to run the tests against iOS 17. Tests timeouts are happening where they previously didn't and the simulator process is also sometimes timing out. |
Beta Was this translation helpful? Give feedback.
-
I'm seeing similar issues: either much slower or timed out |
Beta Was this translation helpful? Give feedback.
-
We've noted the same: tests often fail to start, potentially linked to issue #8472. When they run, they're at least 25% slower. But if we're being honest: Isn't this more of a problem with Xcode than with the runner images? |
Beta Was this translation helpful? Give feedback.
-
Not sure, it is the same xcode running in 2 different runner images. Something has changed between the 2 images. |
Beta Was this translation helpful? Give feedback.
-
I am too seeing this issue where our pipelines, where they have doubled in time and are now timing out on most runs. |
Beta Was this translation helpful? Give feedback.
-
We are also seeing a 2-3x increase in CI time with Using the same This is blocking our ability to move to using Xcode 15. |
Beta Was this translation helpful? Give feedback.
-
Same, but I am hoping it’s caused by this issue, fixed in 15.0.1 (and 15.1):
|
Beta Was this translation helpful? Give feedback.
-
I was wrong about that, just assuming that 6-7 minutes to run all tests was "normal" on my machine. Turns out that with Xcode 15.0.1 and iOS 17.0.1 simulators tests run in 2-3 minutes, so I was seeing the issue locally too, it just wasn't as obvious. |
Beta Was this translation helpful? Give feedback.
-
@mluisbrown Quite similar on my side: macos-13 runner with Xcode 14.3 - build and tests takes ~35-40 minutes.
@gredman I fear not based on the above 😢 |
Beta Was this translation helpful? Give feedback.
-
@TomaszLizer our app is building fine, and in reasonable time, with Xcode 15. It's the testing that is killing it. There are times when there's a 15 minute wait whilst it appears to be doing nothing at all! |
Beta Was this translation helpful? Give feedback.
-
Oh, interesting 🤔 |
Beta Was this translation helpful? Give feedback.
-
Xcode 15.0.1 RC is published. https://developer.apple.com/documentation/xcode-release-notes/xcode-15_0_1-release-notes |
Beta Was this translation helpful? Give feedback.
-
We have seen problems in testing with the combination of Xcode15 and Fastlane, also on local. We were getting error 65 on tests execution and taking fastlane out solved the problem. So fastlane is the one that need to take action here. Test that on your side. |
Beta Was this translation helpful? Give feedback.
-
@christiangal-indi I seriously doubt that Fastlane is the problem here, and have seen no evidence to support that. Xcode 15 has a known bug which causes this, which is fixed in Xcode 15.0.1 (and 15.1). Once 15.0.1 is released and made available on a GH runner that will be the first thing to test to see if/how things improve. I would only consider looking at other causes if that doesn't help. |
Beta Was this translation helpful? Give feedback.
-
We successfully use Xcode 15 on macOS 13 (M1) runners by pairing them with iOS 16.4 simulators. They are not available by default, but creating them is easy, e.g.: # Make iOS 16.4 simulator runtime available to Xcode 15
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
sudo ln -s /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 16.4.simruntime
# Create an iOS 16.4 simulator
xcrun simctl create "iPhone 14 Pro (16.4)" "com.apple.CoreSimulator.SimDeviceType.iPhone-14-Pro" "com.apple.CoreSimulator.SimRuntime.iOS-16-4" With this combination (Xcode 15, iOS 16.4 simulator) we see similar test durations as with Xcode 14. |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
@mluisbrown , do tests run fast on your local mac ? if so, we would like to do the same. |
Beta Was this translation helpful? Give feedback.
-
@ilia-shipitsin yes, tests run fast on my local Mac, which is an M1 Pro MacBook Pro with 32GB of RAM. We run tests using Fastlane with the command Test startup and completion on my Mac:
Test startup and completion on GitHub using
There's an inexplicable almost 8 minutes delay between I didn't analyse the whole log but this was another thing that stood out: On my Mac:
On GitHub:
That 6th test took 117.6s on GH and only 0.011s on my Mac. Obviously the test suite always ran slower on GH than on my Mac. On my Mac the full Our Xcode 14.3.1 CI runs on the |
Beta Was this translation helpful? Give feedback.
-
On my side, on our workflow i'm adding this I found out about it on this article by Bitrise. I'm running various tests to make sure that the workaround is stable, but i'm starting to see the light! Here how to use it:
|
Beta Was this translation helpful? Give feedback.
-
@gabe4coding Wow, this worked for me on macos-13 with Xcode 15.0.1. Thanks for the tip! |
Beta Was this translation helpful? Give feedback.
-
I stumbled on this issue once again. I am not sure whether that is actually Xcode15 issue since we are running iOS 16.4 simulators. I can also see quite big variability of build times in CI (eg ~7-13 minutes for particular repo). |
Beta Was this translation helpful? Give feedback.
-
Running with the following on GitHub Actions:
The first run (without caching) and the second (with caching) align with jobs running on Xcode 14.3.1. It looks promising, but needs more testing! |
Beta Was this translation helpful? Give feedback.
-
Was there ever a solution to this? |
Beta Was this translation helpful? Give feedback.
-
We believe this issue is affecting our Azure DevOps pipelines using MS hosted agents. Some Fastlane builds that used to take ~9 minutes now time out after 2 hours. We need to move to Xcode 15/iOS SDK 17; macOS 13 is required for that. We're using the default version of Xcode (15.0.1) and are going to try the latest available on AzDO (15.2) to see if there's improvement. Not having ARM64 agents and/or macOS 14 available on AzDO seems to be putting us in a tight spot. |
Beta Was this translation helpful? Give feedback.
-
Description
Using the same Xcode 14.3.1 and the same code on the 2 different images of MacOs13 results in very different compile and test run times.
Image Version: 20230417.1
Complete pipeline 25-33 min
Image Version: 20230924.1
Complete pipeline 45-60(timeout) min
Here you can see the difference from "Wednesday"
Platforms affected
Runner images affected
Image version and build link
Agent name: 'Azure Pipelines 10'
Agent machine name: 'Mac-1696247891010'
Current agent version: '3.225.0'
Operating System
macOS
13.6
22G120
Runner Image
Image: macos-13
Version: 20230924.1
Included Software: https://github.com/actions/runner-images/blob/macos-13/20230924.1/images/macos/macos-13-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/macos-13%2F20230924.1
Is it regression?
Yes, Image Version: 20230417.1
Expected behavior
The run should take around 30 min.
Actual behavior
The run takes more than 40 min, and sometimes, fail with a 60min timeout.
Repro steps
You could run a simple task to compile a project in IOS and you would notice the difference.
Using this example as a guide:
https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/xcode?view=azure-devops
basically this yml here:
pool:
vmImage: 'macos-13'
steps:
inputs:
actions: 'build'
scheme: ''
sdk: 'iphoneos'
configuration: 'Release'
xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace'
xcodeVersion: 14.3.1
Beta Was this translation helpful? Give feedback.
All reactions