Open jzaefferer opened 1 month ago
With Xcode 16 + RN 0.73.9 + Bitrise + detox@20.25.6
combination is also affecting me and couple of others.
Hello,
We noticed that when multiple Simulators were booted up for parallel tests, there may be CPU bottlenecks. This ends up in a spike of processes waiting to be executed (in the hundreds). I think that this may correlate with what @jzaefferer is experiencing. Please create support tickets on Bitrise to verify if this is the case.
@atanas-bitrise we only use a single worker, no parallel tests. Should I still create a Bitrise support ticket?
@jzaefferer yes, please create a ticket, if it's happening on Bitrise. We can track what happens on the Virtual Machine.
What happened?
When running our iOS tests of a React Native app on Bitrise, sometimes tests time out, with the output showing it endlessly waits for the synchronization to resolve. Mostly it looks like this:
We use
debugSynchronization: 20000,
, so this is logged every 20s.I've read https://wix.github.io/Detox/docs/troubleshooting/synchronization/#identifying-which-synchronization-mechanism-causes-us-to-wait-too-much and https://github.com/wix-incubator/DetoxSync/blob/master/StatusDocumentation.md, but didn't find anything there that would help resolve this.
This issue occurs in maybe 1% of all runs, so we can't reproduce it. We have a lot of runs every day, so this costs us a lot of time to check out whenever it occurs.
What was the expected behaviour?
If waiting for synchronization never resolves, at least provide better information on what it's actually waiting for, to have a chance of addressing it.
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.26.2 (not latest, but I don't want to try it with the beta release) React Native version: 0.75.2 Has Fabric (React Native's new rendering system) enabled: no Node version: v20.13.1 Device model: iPhone 16, simulator running on Bitrise M1 Large stack iOS version: iOS 18.0 macOS version: - Xcode version: 16 Test-runner (select one): jest
Detox logs
Detox logs
``` 07:42:42.451 detox[27767] i The app is busy with the following tasks: • Run loop "Main Run Loop" is awake. • There are 1 work items pending on the dispatch queue: "Main Queue (Device logs
Device logs: https://gist.github.com/jzaefferer/2fd9fd5ce02bd9a997f3ea98636c54a7
More data, please!
No response