Open FisherKK opened 7 years ago
I've got update in that issue.
As I said I re-create all 4 AVDs before each test session. When test runs on AVD it checks if folder for screenshot exists - otherwise creates empty folder. But I am also using sharding and I have 3 tests in package but 4 AVDs. Because of that one AVD is not launching anything and doesn't have it's screenshot folder check. It doesn't exist so spoon always freezes on it during screenshot pull process.
I can fix it on my side but I guess that's an issue anyway?
Pull request is welcome. Unfortunately, I cannot help you with code atm.
We've faced same issue, will work on PR on next week then.
Hello @artem-zinnatullin ! Did you manage to solve this issue maybe? :)
"In progress" in our Jira for 2 days now…
Current findings:
SpoonDeviceRunner
process starts for one of the emulators.Hello all,
Just in case it helps anyone, I'll share a warstory. I was causing all the tests on a particular device to be filtered out and spoon kept hanging.
I don't remember exactly if I was filtering the tests using arguments or by causing AssumptionViolatedException
but maybe one of these scenarios gives you ideas for debugging.
Hello,
Any does anyone has any progress in that issue?
So, what I've found so far is that enabling test sharding (which is what we want) fixes this problem, problem was reproducible only if Spoon run same tests across all connected emulators.
I have it opposite:
If I run same test set on each device then there is no problem. If I use shards it sometimes freezes - like in the Log I have sent. One AVD didn't receive any test as shards were divided that way and it froze.
I used Adb time out to 10 mins, so if something freezes I won't need to restart session. But lately I am thinking more and more about my own test launcher from scratch.
Damn it, just saw two CI with multiple emulators each (on different machines, in Docker, 100% isolated) jobs stuck:
2017-02-06 13:39:09 [SDR.printStream] [emulator-5554] STDOUT 2017-02-06 13:39:09 [SDR.handleImages] Moving screenshots to the image folder on [emulator-5554]
This is driving me nuts…
But lately I am thinking more and more about my own test launcher from scratch.
I know that feel bro… Also there are some design problems in Spoon which I would like to fix but they'll require almost complete rewrite:
com.android.tools.ddms.ddmlib
which doesn't even have a realease notes.
I have faced this problem many times - one year ago too. It only occurred when I used more than one device and didn't use screenshot option. It happened either on real devices or emulators. To fix it I had to be sure that folder from which spoon wants to grab screenshots exists, otherwise it was waiting until screenshot grab will succeed. So my workaround for this was creating empty folder for screenshots and this solved my problem.
Now I am facing it again and I am not sure about the cause. I can start my test session on 4 AVDs launched like that:
When all test finish, spoon wants to grab screenshots from logs (but I am not doing any screenshots). And SOMETIMES (like once per 6 test sessions) it freezes and there is a full log:
https://gist.github.com/FisherKK/edf9048a73aba84450a4ee9ca73e1944
Nothing happens on AVDs at that time. They are fully functional, you can interract them yet as you can see it is still waiting:
And that one remains forever.
I would ask for: