-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
refactor: do not kill adb on UNIX-like systems #1103
Conversation
fc73957
to
d621b6d
Compare
Codecov Report
@@ Coverage Diff @@
## master #1103 +/- ##
==========================================
+ Coverage 69.71% 70.06% +0.35%
==========================================
Files 20 20
Lines 1806 1784 -22
==========================================
- Hits 1259 1250 -9
+ Misses 547 534 -13
Continue to review full report at Codecov.
|
I think my linux system is set up weirdly. I sometimes get an error when running the adb command that I am using a different version and it restarts. But looking at the log outputs in this PR this is somthing different. I can't really tell if this is still useful 🤷♂️ 😄 |
Which adb command? It sounds like you are talking about app installation. That has not been touched here.
I don't think I can follow you. Did you observe any change in behavior with the change from this PR? |
I did not test this PR locally, yet. Nevermind I was just thinking loud because I always had strange adb behaviour but that is most likely not caused by Cordova. From the issue:
I often have trouble with lost connections to my real device on a Linux machine. I feel this is problem with my setup and it's hard to reproduce properly. This is probably a good change but I am unsure about how to test this👍 |
Yeah, it is hard to test in how far adb stability is still an issue. I would suggest we remove the current workaround and in case people report frequent hangs, we add a timeout to short-running adb commands. |
In my experience, at least on Linux, adb tools is a finicky program that barely works. Often I have to unplug the USB device and replug it in and ADB will start magically working again. I'm not sure if this is a problem we can solve on the Cordova side. Obviously 66fa12a was probably a good attempt but I don't think it solved the issue. In the long term, I envision that we abandoned adb for most, if not all tasks anyway, and use the bundletool instead. If we're lucky it will fix all ADB related issues, and give us a whole brand new set of challenges 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
If nobody objects I will merge this into master soon. IMO this is more a fix than anything else. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to me. Let's see if this is still a problem 👍
Motivation and Context
Closes #1098
Description
This basically reverts 66fa12a.
Testing
Unit tests pass & works for me on Linux