Closed
Bug 1194546
Opened 9 years ago
Closed 9 years ago
Enable apz tests for e10s+windows
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla45
People
(Reporter: mrbkap, Assigned: kats)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [gfx-noted])
Attachments
(3 files, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
botond
:
review+
|
Details | Diff | Splinter Review |
In order to turn on e10s mochitests on for OSX, we have to figure out why the apz tests aren't passing.
As far as I can tell, there's a problem with scroll events on OSX, but only in iframes. When I ran the tests in this directory by themselves, they passed; it's only in the frame, while running the directory that they fail.
Reporter | ||
Comment 1•9 years ago
|
||
We should use this bug to track turning the tests back on.
Attachment #8647820 -
Flags: review?(bugmail.mozilla)
Updated•9 years ago
|
Whiteboard: [gfx-noted]
Assignee | ||
Comment 2•9 years ago
|
||
Do you have the output from a run of the tests, or a try push showing the failures? When I run this locally on my OS X machine it passes:
mach mochitest -f plain --e10s gfx/layers/apz/test/
I'm not opposed to disabling the tests temporarily but I'd like to have some idea of what the problem is at least.
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(mrbkap)
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8647820 [details] [diff] [review]
Disable the tests
Clearing review for now.
Attachment #8647820 -
Flags: review?(bugmail.mozilla)
Reporter | ||
Comment 4•9 years ago
|
||
I'll try again and debug a little. It looks like it'll be a bit before we can get these tests enabled on treeherder, so no rush.
Flags: needinfo?(mrbkap)
Assignee | ||
Comment 5•9 years ago
|
||
Ok, thanks. Also FYI I would expect test_layerization.html might fail, but that should be fixed in bug 1177018. The rest of the tests should be passing.
Assignee | ||
Comment 6•9 years ago
|
||
Hijacking this bug as per IRC discussion yesterday to investigate why the gfx/layers/apz/test/mochitest/test_bug1151667.html is failing with e10s on windows. The try push showing the failure is at https://treeherder.mozilla.org/#/jobs?repo=try&revision=6fe342dcb884
I wasn't able to reproduce locally (I'll try harder) but in the meantime I did a try push with more logging: https://treeherder.mozilla.org/#/jobs?repo=try&revision=cc85eb2665b8
Summary: Enable apz tests for e10s+cocoa → Enable apz tests for e10s+windows
Assignee | ||
Comment 7•9 years ago
|
||
The try push I did above still hasn't been scheduled, and from trychooser it looks like the test queue on windows machines is climbing towards infinity... :(
Assignee | ||
Comment 8•9 years ago
|
||
The jobs finally finished; I looked at the logs and it appears to be the same problem as in bug 1203901 (i.e. the layer tree on the compositor side is not fully updated before we start sending the wheel events). I'll do a try push with a fix.
Assignee | ||
Comment 9•9 years ago
|
||
Assignee: nobody → bugmail.mozilla
Assignee | ||
Comment 10•9 years ago
|
||
Screwed up that try push, here's a better one: https://treeherder.mozilla.org/#/jobs?repo=try&revision=3ad9682fa544
Assignee | ||
Comment 11•9 years ago
|
||
That try push has test_bug1151667.html passing, it seems. However test_layerization is suffering from the same problem. I'll fix that one too (and any others...) while I'm at it.
Reporter | ||
Comment 12•9 years ago
|
||
Thanks for figuring this out!
Assignee | ||
Comment 13•9 years ago
|
||
Might as well get this landed. I'm still debugging the test_wheel_transactions failures which seem to have a different cause. (https://treeherder.mozilla.org/#/jobs?repo=try&revision=970f97a1e94e&group_state=expanded)
Attachment #8682549 -
Flags: review?(botond)
Assignee | ||
Updated•9 years ago
|
Attachment #8681999 -
Attachment is obsolete: true
Assignee | ||
Comment 14•9 years ago
|
||
What seems to be happening in test_wheel_transaction.html is that near the end of the test there are two loops with wheel events, and a timeout in between. The intent is that the timeout ends the transaction so the second set of wheel events end up going to the outer frame. Instead it looks like the last event from the first loop is delayed a tiny bit, and starts a new transaction. The first event from the second loop ends up getting added to that transaction, and goes to the inner APZC instead of the outer APZC, never triggers a scroll event, and causes the test to hang.
Comment 15•9 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #14)
> What seems to be happening in test_wheel_transaction.html is that near the
> end of the test there are two loops with wheel events, and a timeout in
> between. The intent is that the timeout ends the transaction so the second
> set of wheel events end up going to the outer frame. Instead it looks like
> the last event from the first loop is delayed a tiny bit, and starts a new
> transaction. The first event from the second loop ends up getting added to
> that transaction, and goes to the inner APZC instead of the outer APZC,
> never triggers a scroll event, and causes the test to hang.
I wonder if the problem is that synthesizeNativeWheelAndWaitForScrollEvent() only waits for the _first_ scroll event triggered by the wheel event, while the delayed one is a subsequent one (and thus the first loop doesn't wait for it). It would be nice to wait for all scroll events triggered by a wheel event, I'm just not sure how to do that.
Assignee | ||
Comment 16•9 years ago
|
||
A bit of discussion on IRC led us to conclude that this is most likely a timestamp resolution problem; otherwise it should be impossible for those two events to end up in the same transaction. Increasing the timeout seems to fix it, per https://treeherder.mozilla.org/#/jobs?repo=try&revision=506cd6278b0a&group_state=expanded
Attachment #8683202 -
Flags: review?(botond)
Comment 17•9 years ago
|
||
Comment on attachment 8682549 [details] [diff] [review]
Patch for test_bug1151667 and test_layerization
Review of attachment 8682549 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/apz/test/mochitest/test_layerization.html
@@ +7,5 @@
> <title>Test for layerization</title>
> <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
> + <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
> + <script type="application/javascript" src="/tests/SimpleTest/paint_listener.js"></script>
> + <script type="application/javascript" src="apz_test_utils.js"></script>
Did alpha ordering go out of vogue? :p
Attachment #8682549 -
Flags: review?(botond) → review+
Comment 18•9 years ago
|
||
Comment on attachment 8683202 [details] [diff] [review]
Patch for test_wheel_transaction
Review of attachment 8683202 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/apz/test/mochitest/test_wheel_transactions.html
@@ +82,5 @@
> // Scroll up a bit more. It's still |outer| scrolling because
> // |inner| is still scrolled all the way to the top.
> yield scrollWheelOver(outer, 10);
>
> // Wait for the transaction timeout to elapse.
// timeout * 5 is used to make it less likely that the timeout is less
// than the system timestamp resolution
Attachment #8683202 -
Flags: review?(botond) → review+
Assignee | ||
Comment 19•9 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #17)
> > + <script type="application/javascript" src="apz_test_utils.js"></script>
>
> Did alpha ordering go out of vogue? :p
Whoops, fixed :)
(In reply to Botond Ballo [:botond] from comment #18)
> // timeout * 5 is used to make it less likely that the timeout is less
> // than the system timestamp resolution
Added (to both sites, for consistency).
Assignee | ||
Comment 20•9 years ago
|
||
Comment 21•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a2e622ecf00f
https://hg.mozilla.org/mozilla-central/rev/dc4dd8cbc003
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•