Closed Bug 1238464 Opened 8 years ago Closed 8 years ago

[emulator-x86-kk][mochitest] TEST-UNEXPECTED-FAIL | gfx/layers/apz/test/mochitest/test_basic_pan.html | Test timed out.

Categories

(Testing :: Mochitest, defect, P1)

defect

Tracking

(firefox47 fixed)

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: hsinyi, Assigned: jerry)

References

Details

(Keywords: intermittent-failure, Whiteboard: [gfx-noted])

Attachments

(1 file, 3 obsolete files)

Component: Graphics: Layers → Panning and Zooming
Blanket gfx-noted on APZ intermittent failures so they can be found more easily on https://brasstacks.mozilla.com/orangefactor/
Whiteboard: [gfx-noted]
Add need info myself to check.
Flags: needinfo?(howareyou322)
Jerry, please help to check apz failed on emulator-KK.
Flags: needinfo?(howareyou322) → needinfo?(hshih)
(In reply to peter chang[:pchang][:peter] from comment #3)
> Jerry, please help to check apz failed on emulator-KK.

Correct the testing platform, please check apz test case on emulator-x86-kk.
Assignee: nobody → hshih
Status: NEW → ASSIGNED
Priority: -- → P1
Jerry, assign this to me if you'd like me to look into this. I can reproduce it locally and it should be easy for me to track down.
Hi kats,
I would like to trace this problem at next Monday. If I have any problem, I will tell you soon.

For my first look, the problem is that, the test doesn't receive the "APZ:TransformEnd" and then we get timeout. So I will have some log to check this event passing.
I think I find the test failed reason. When the mochitest start, we turn the display and start the tests. Then the display is turned off due to the display-off timeout. The compositor will skip all task when the display off. So, the "APZ:TransformEnd" event is never sent.
I'm trying to change the display-off timeout value and test again.
Flags: needinfo?(hshih)
System app has 10s timeout setting for display. When the display off, all composition tasks will be skip. Then, apz test becomes failed.
Attachment #8712019 - Flags: review?(jgriffin)
oops, the test still have timeout, but I can pass the test with attachment 8712019 [details] [diff] [review] locally.
try:
https://treeherder.allizom.org/#/jobs?repo=try&revision=963efe12f751&selectedJob=16485893

I will check the compositor status again tomorrow.
There is no waiting for setting ready in attachment 8712019 [details] [diff] [review], so the apz test might still test with display off. Will have another try for this problem.
Attachment #8712019 - Flags: review?(jgriffin)
Attachment #8712650 - Flags: review?(jgriffin)
Attachment #8712019 - Attachment is obsolete: true
Attachment #8712654 - Flags: review?(jgriffin)
Attachment #8712650 - Attachment is obsolete: true
Attachment #8712650 - Flags: review?(jgriffin)
Comment on attachment 8712654 [details] [diff] [review]
turn on the display during testing. v3

Review of attachment 8712654 [details] [diff] [review]:
-----------------------------------------------------------------

When the device up, we turn on the display and start the tests. Then the display is turned off because of the display-off timeout. The compositor will skip all task when the display off, then some tests will failed.

::: testing/mochitest/b2g_start_script.js
@@ +81,5 @@
>      container.setVisible(true);
>    }
>  });
>  
> +function StartTest() {

Put all code into a StartTest() function

@@ +172,5 @@
> +}
> +settingResult.onerror = function () {
> +  dump("Change screen.time failed");
> +  StartTest();
> +}

Turn on the display using "navigator.mozPower.screenEnabled" and update the timeout setting.
After after setting was done, start the test.
Attachment #8712654 - Flags: review?(jgriffin) → review?(ahalberstadt)
Comment on attachment 8712654 [details] [diff] [review]
turn on the display during testing. v3

Review of attachment 8712654 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good with the comment addressed.

::: testing/mochitest/b2g_start_script.js
@@ +166,5 @@
> +var settingResult = settingLock.set({
> +  'screen.timeout': 0
> +});
> +settingResult.onsuccess = function () {
> +  dump("Set screen.time to 0");

These dumps need a newline at the end.
Attachment #8712654 - Flags: review?(ahalberstadt) → review+
Attachment #8712654 - Attachment is obsolete: true
Component: Panning and Zooming → Mochitest
Product: Core → Testing
Attachment #8712991 - Attachment description: turn on the display during testing. v4 → turn on the display during testing. v4, r=ahal
https://hg.mozilla.org/mozilla-central/rev/364cbb21094e
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: