-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix(avd): consider listed emulator as running even if state !== 'device' #140
Conversation
|
The idea behind this is that an emulator isn't even listed unless it's "running" in some sort of state. We have a secondary check for testing if the boot process/animation is done that is performed after we know the emulator is "running". So if the emulator really isn't yet ready, that |
@sgtcoolguy I don't understand how you get only a single track device event. Regardless if I do a cold boot or warm boot from a snapshot, it always emits an "offline" event, followed by a "device" event. I do agree that if a device is "offline", it doesn't mean the emulator is not "running". If it shows up in As I see it, there are 2 issues:
|
@sgtcoolguy, a quick alternative solution for the time being (at least for our Jenkins unit tester) would be to support the Ideally we should solve the snapshot launch problem, but if we need a solution now, this might work for us. |
The issue is that the Jenkins stuff doesn't have direct control over the arguments passed to the emulator. This is entirely within this library. The only "fix" fro Jenkins would be to pre-launch an emulator ourselves before starting the build and waiting (or hoping) it boots before it gets to that stage. This is the correct place for the fix, and I think this fix is fairly straight-forward. |
@cb1kenobi The code already has an equivalent to The SDK code for installing an app waits until the emulator emits a So the flow is:
|
JIRA: https://jira.appcelerator.org/browse/TIMOB-27750
Tested this with the same emulator that exhibited the issue before and it worked with these changes.
I also wiped the snapshot for the emulator so it had to do a full boot and that also worked.