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

Detox hangs on circleci #717

Closed
Angry-Potato opened this issue May 7, 2018 · 7 comments
Closed

Detox hangs on circleci #717

Angry-Potato opened this issue May 7, 2018 · 7 comments

Comments

@Angry-Potato
Copy link

Description

Installed Detox 7.3.5 in a RN project, configured with jest as the test runner. Runs fine locally, all tests pass in a speedy fashion. The tests never pass on circleci, detox appears to hang as the debug sync output reports it as forever busy. My hunch is that this is a side effect of the very low spec circleci macos box but it would be nice to have some validation.

Steps to Reproduce

  1. Create a RN project.
  2. Add Detox (not sure if jest runner is part of the issue).
  3. Create rudimentary detox test suite.
  4. Verify tests pass locally.
  5. Add project to circleci.
  6. Watch detox hang in circleci build.

Example repo: https://github.com/Angry-Potato/detox-testing

Detox, Node, Device, Xcode and macOS Versions

  • Detox: 7.3.3
  • React Native: 0.55.1
  • Node: 8.9.1
  • Device: iPhone 7 (11.2)
  • Xcode: 9.2.0
  • macOS: 10.12.6

There is a more comprehensive list of the circleci environment in which Detox is run here https://circle-macos-docs.s3.amazonaws.com/image-manifest/build-298/index.html

Device and verbose Detox logs

detox-hang-verbose-log.txt

@diegolmello
Copy link

Yeah, it's happening here too.

@Angry-Potato
Copy link
Author

I appreciate this is a low priority issue as it impacts 2 people that we know of, so to hopefully get some feedback I cast the net wider on SO https://stackoverflow.com/questions/50248654/are-circleci-macos-boxes-too-low-spec-to-run-detox

@bmakuh
Copy link

bmakuh commented May 10, 2018

yes, we saw the same

@Angry-Potato
Copy link
Author

@diegolmello @bmakuh have you guys managed to work around this?

@diegolmello
Copy link

@Angry-Potato @bmakuh I've updated to 7.3.5 and it works... sometimes. It's still broken.

@bmakuh
Copy link

bmakuh commented May 11, 2018

@Angry-Potato unfortunately no. We were on the two week macOS trial to try to get it running, and we were never able to before the trial ran out.

@Angry-Potato
Copy link
Author

@diegolmello @bmakuh I dropped to an early node 8 version, and detox now runs fine.

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants