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

What is the recommended setup to use detox 20.28.0? #4656

Closed
roni-castro-shipt opened this issue Dec 12, 2024 · 3 comments
Closed

What is the recommended setup to use detox 20.28.0? #4656

roni-castro-shipt opened this issue Dec 12, 2024 · 3 comments

Comments

@roni-castro-shipt
Copy link

roni-castro-shipt commented Dec 12, 2024

Description

We've noticed recently a significant increase in iOS Detox build times and iOS Detox test run times after updating Xcode or iOS versions.

Here’s my setup on CircleCI with the same test cases:

  • Xcode: 15.3.0
  • Node: 18.15.0
  • Detox: 20.23.0
  • iOS Version: 17.4 (iPhone 15 Pro Max)

After updating to the following configuration:

  • Xcode: 16.1.0
  • Node: 18.15.0 or 20.18.1 (changing node version didn't improve performance)
  • Detox: 20.28.0
  • iOS Version: 18.1 (iPhone 16 Pro Max)

I noticed:

  • 25% increase in iOS build time
  • 131% increase in Detox test run time, with some timeout failures.

I also tested with Xcode 16.0.0 and iOS 17.5 (iPhone 15 Pro Max), which improved a bit, but the results are still:

  • 19% slower iOS build time
  • 25% slower Detox test run time

I tested just upgrading Detox to version 20.28.0 and kept the current setup with Xcode 15.3.0 and didn't notice any performance issues, only when running on Xcode 16.0+ and iOS 18+.

Screenshot 2024-12-12 at 18 00 23

I was wondering if Detox supports iOS 18.1. If so, could you share the recommended setup for using Detox 20.28.0 to ensure optimal performance and avoid any potential performance degradation?

Your environment

Detox version: 20.28.0
React Native version: 0.73.11
Node version: 18.15.0
Device model: iPhone 16 Pro Max - iOS version 18.1
OS: macOS 14.6.1
Test-runner (select one): jest

Copy link

stale bot commented Jan 22, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

@stale stale bot added the 🏚 stale label Jan 22, 2025
@roni-castro-shipt
Copy link
Author

roni-castro-shipt commented Jan 22, 2025

It seems to be related to Xcode 16+. Waiting for this to be fixed to test again.

Image
https://developer.apple.com/documentation/xcode-release-notes/xcode-16_2-release-notes#Known-Issues

Copy link

stale bot commented Feb 1, 2025

The issue has been closed for inactivity.

@stale stale bot closed this as completed Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant