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

Safe boot emu's 2 #2035

Closed
wants to merge 2 commits into from
Closed

Safe boot emu's 2 #2035

wants to merge 2 commits into from

Conversation

d4vidi
Copy link
Collaborator

@d4vidi d4vidi commented May 5, 2020

  • This is a small change
  • This change has been discussed in issue #<?> and the solution has been agreed upon with maintainers.

Description:

A rephrase of the work in #2011: trying to fix #2106 in a more deterministic and thorough way. Introduces 2 fundamental changes:

Forced sequential launch of emulators (i.e. await launch if a launch is in session).

Implemented by including the emulator spawn in the lock-file scoped handler function (i.e. don't unlock until emu starts loading).

Post-launch delay (todo)

Avoid moving forward to ADB commands until all emulators have completed spawning.
This addresses the now well-know adb-jam problem (see #1857), which - following #2011, I suspect reproduces when an emulator launches while an adb command is in-flight. In a way, this half-baked change sets out to test that theory.

@d4vidi d4vidi self-assigned this May 5, 2020
@d4vidi d4vidi closed this May 6, 2020
@d4vidi d4vidi reopened this May 6, 2020
@coveralls
Copy link

coveralls commented May 6, 2020

Pull Request Test Coverage Report for Build 2124

  • 48 of 49 (97.96%) changed or added relevant lines in 3 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.04%) to 76.951%

Changes Missing Coverage Covered Lines Changed/Added Lines %
detox/src/devices/drivers/android/EmulatorDriver.js 15 16 93.75%
Files with Coverage Reduction New Missed Lines %
detox/src/devices/drivers/android/EmulatorDriver.js 1 67.37%
Totals Coverage Status
Change from base Build 1171: 0.04%
Covered Lines: 3196
Relevant Lines: 3866

💛 - Coveralls

@d4vidi d4vidi force-pushed the safe-boot-emus2 branch 2 times, most recently from 233f500 to 9215d21 Compare May 6, 2020 13:07
@d4vidi d4vidi closed this May 6, 2020
@d4vidi d4vidi reopened this May 6, 2020
@d4vidi d4vidi closed this May 6, 2020
@d4vidi d4vidi reopened this May 6, 2020
@d4vidi
Copy link
Collaborator Author

d4vidi commented May 10, 2020

@d4vidi d4vidi closed this May 10, 2020
@d4vidi d4vidi reopened this May 10, 2020
@d4vidi d4vidi closed this May 10, 2020
@d4vidi d4vidi mentioned this pull request May 13, 2020
2 tasks
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
@d4vidi d4vidi changed the title wip Safe boot emu's 2 Jun 7, 2020
@d4vidi
Copy link
Collaborator Author

d4vidi commented Jun 7, 2020

Was closed for the same reason as its predecessor: adb jam problem ensues in a more frequent way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Launch emulators sequentially
2 participants