Closed
Bug 1319196
Opened 8 years ago
Closed 7 years ago
Timeout exceeded for shell call 'adb shell dumpsys window windows; echo $?'
Categories
(Firefox for Android Graveyard :: Testing, defect, P3)
Firefox for Android Graveyard
Testing
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1412297
People
(Reporter: gbrown, Assigned: gbrown)
References
Details
Attachments
(3 files)
755 bytes,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
2.06 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
1.58 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
Our Android browser test harnesses (for mochitest, reftest, and robocop) use dumpsys to check that Fennec is in the foreground. Recently (last week, two weeks ago?) we started getting low-frequency intermittent test failures where the dumpsys call timed out, causing the test harness to abort the tests.
I'll try to dup related bugs here.
I have also been seeing these failures regularly in experimental mochitest-chrome runs on x86 - bug 1315749. Those failures appear to go away with the fix for bug 1318245, so I'm hoping this bug will dup to 1318245.
For x86 mochitest chrome compare:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=76fc3f25d11b5586cd076f703c6565de1cdbbe95
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3d13432af39a719f89edae42be69cc9aae9b897f
![]() |
Assignee | |
Updated•8 years ago
|
Priority: -- → P3
![]() |
Assignee | |
Comment 2•8 years ago
|
||
Spotted these recent failures, for x86 mochitest chrome:
https://treeherder.mozilla.org/logviewer.html#?job_id=39815072&repo=mozilla-inbound#L3768
https://treeherder.mozilla.org/logviewer.html#?job_id=39765106&repo=mozilla-inbound#L3703
![]() |
Assignee | |
Comment 6•8 years ago
|
||
I notice "unable to restore focus" in many of the recent reports, just prior to the dumpsys timeout.
![]() |
Assignee | |
Comment 7•8 years ago
|
||
...typically following test_session_zombification.html in mochitest-chrome.
![]() |
Assignee | |
Updated•8 years ago
|
Keywords: leave-open
![]() |
Assignee | |
Comment 13•8 years ago
|
||
test_session_zombification.html issue was likely addressed by bug 1320987, but other similar failures persist. I'm quite puzzled -- I can't find or think of any android harness or environment changes that might account for this new type of failure.
![]() |
Assignee | |
Comment 14•8 years ago
|
||
I wonder if increasing the timeout will help. If it doesn't help, I'll back this out.
Attachment #8818112 -
Flags: review?(jmaher)
Comment 15•8 years ago
|
||
Comment on attachment 8818112 [details] [diff] [review]
increase dumpsys timeout
Review of attachment 8818112 [details] [diff] [review]:
-----------------------------------------------------------------
can you add a comment to indicate why you chose 60?
Attachment #8818112 -
Flags: review?(jmaher) → review+
![]() |
Assignee | |
Comment 16•8 years ago
|
||
Sure: "Increased timeout to 60 seconds following intermittent timeouts at 30."
![]() |
Assignee | |
Comment 17•8 years ago
|
||
I'd also like to capture the screen when this happens, in case that shows something interesting. Performing the screenshot in kill() should also provide a capture on timeouts or other abnormal conditions resulting in the harness forcing the process down.
Attachment #8818314 -
Flags: review?(jmaher)
Comment 18•8 years ago
|
||
Comment on attachment 8818314 [details] [diff] [review]
try to get a screenshot
Review of attachment 8818314 [details] [diff] [review]:
-----------------------------------------------------------------
thanks!
Attachment #8818314 -
Flags: review?(jmaher) → review+
Comment 19•8 years ago
|
||
Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c902a14dffee
Increase timeout for 'adb shell dumpsys'; r=jmaher
https://hg.mozilla.org/integration/mozilla-inbound/rev/f21a93061f9a
Take screenshot when dumpsys fails; r=jmaher
Comment 20•8 years ago
|
||
bugherder |
![]() |
Assignee | |
Comment 25•8 years ago
|
||
Screenshots are working great, but don't show anything out of the ordinary.
I don't think the timeout increase was effective.
![]() |
Assignee | |
Comment 26•8 years ago
|
||
Recent failures (today's dups, above) are all Android x86 mochitest-chrome; we just started running that job a few weeks ago.
In those logs, the anr report shows dumpsys running and blocking another window manager thread (if I'm reading that right).
![]() |
Assignee | |
Comment 35•8 years ago
|
||
We can call dumpsys less often, by calling getTopActivity() less - only when the harness has not received log output recently. Call it less, hopefully it will fail less!
https://treeherder.mozilla.org/#/jobs?repo=try&revision=36de8eb4c9c962b0022e97136fd7c7855cce7bfe
Attachment #8824582 -
Flags: review?(jmaher)
Comment 36•8 years ago
|
||
Comment on attachment 8824582 [details] [diff] [review]
call dumpsys less often
Review of attachment 8824582 [details] [diff] [review]:
-----------------------------------------------------------------
nice!
Attachment #8824582 -
Flags: review?(jmaher) → review+
Comment 37•8 years ago
|
||
Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f02e4baff85d
Call dumpsys less during Android tests; r=jmaher
Comment 38•8 years ago
|
||
bugherder |
![]() |
Assignee | |
Comment 42•8 years ago
|
||
It looks like comment 38 helped reduce the frequency of this problem quite a lot; since landing, I've only seen bug 1331642. Next step here might be ignoring dumpsys failures and retrying, cautiously.
![]() |
Assignee | |
Comment 44•8 years ago
|
||
Bug 1335501 began triggering job retry for a very similar, but slightly different, error message. We can consider the same approach here, if needed.
![]() |
Assignee | |
Comment 45•8 years ago
|
||
I think this problem is still possible. I want to keep the bug open in case test failures return. However, I'm not going to work on this otherwise.
Assignee: gbrown → nobody
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
![]() |
Assignee | |
Comment 49•7 years ago
|
||
Bug 1412297 will hopefully help reduce these issues. Failing that, we might try more aggressive retries of dumpsys, or upgrade the emulator, or follow-up on comment 44.
![]() |
Assignee | |
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Comment 51•7 years ago
|
||
Removing leave-open keyword from resolved bugs, per :sylvestre.
Keywords: leave-open
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•