Closed
Bug 1362903
Opened 8 years ago
Closed 7 years ago
docshell/base/crashtests/1341657.html does not finish properly
Categories
(Core :: DOM: Navigation, defect, P2)
Core
DOM: Navigation
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: hiro, Assigned: freesamael)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
From a log:
https://treeherder.mozilla.org/logviewer.html#?repo=autoland&job_id=96824405&lineNumber=1913
00:22:12 INFO - REFTEST TEST-START | file:///builds/slave/test/build/tests/reftest/tests/docshell/base/crashtests/1341657.html
00:22:12 INFO - REFTEST TEST-LOAD | file:///builds/slave/test/build/tests/reftest/tests/docshell/base/crashtests/1341657.html | 20 / 3195 (0%)
00:22:12 INFO - REFTEST None
00:22:12 INFO - --DOCSHELL 0x127d8a800 == 14 [pid = 1705] [id = {aa70f139-8180-5245-901c-2e7b52862eed}]
00:22:12 INFO - REFTEST TEST-START | file:///builds/slave/test/build/tests/reftest/tests/dom/animation/test/crashtests/1239889-1.html
00:22:12 INFO - ++DOMWINDOW == 86 (0x127d97000) [pid = 1705] [serial = 86] [outer = 0x123727800]
00:22:12 INFO - REFTEST TEST-LOAD | file:///builds/slave/test/build/tests/reftest/tests/dom/animation/test/crashtests/1239889-1.html | 21 / 3195 (0%)
00:22:12 ERROR - REFTEST ERROR | file:///builds/slave/test/build/tests/reftest/tests/dom/animation/test/crashtests/1239889-1.html | program error managing timeouts
00:22:12 ERROR -
We processed a subsequent reftest (1239889-1.html) before 1341657.html finished.
Comment 1•8 years ago
|
||
Maybe Ehsan can take a look since it seems like he wrote this test.
Flags: needinfo?(ehsan)
Comment 3•8 years ago
|
||
:hiro, looks this is something we'd like to get it done soon-ish to unblock your work on bug 1343884. Are you planning to work on this? Feel free to comment if you need assistance. :)
Flags: needinfo?(hikezoe)
Priority: -- → P2
Comment hidden (mozreview-request) |
Reporter | ||
Comment 5•8 years ago
|
||
OK, I can take this. But who is the right person for review? I understand Ehsan has been very busy for Quantum Flow and I don't want to bother him. Hsin-Yi, suggestions?
Anyway, this is a try with attachment 8866616 [details]:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6427bb47d8810b6ebaf724ab12871b681edf04ea
It seems to work.
Assignee: nobody → hikezoe
Status: NEW → ASSIGNED
Flags: needinfo?(hikezoe) → needinfo?(htsai)
Comment hidden (mozreview-request) |
Comment 7•8 years ago
|
||
Hi Olli, are you able to help review Hiro's patch?
Flags: needinfo?(htsai) → needinfo?(bugs)
Comment 8•8 years ago
|
||
Why does the paint help? Layout flush doesn't mean paint.
Don't you want async finish + requestAnimationFrame or something?
Flags: needinfo?(bugs)
Comment 9•8 years ago
|
||
Maybe I don't understand what the issue with the test is.
Reporter | ||
Comment 10•8 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #8)
> Why does the paint help? Layout flush doesn't mean paint.
Honestly I don't exactly know the reason why a subsequent test is proceeded even if this test is finished.
What I know, what I assume is that there is no trigger to finish this test.
> Don't you want async finish + requestAnimationFrame or something?
Yes, actually I did a try with reftest-wait, and it worked as well. But after the try I found below comment in README.txt [1].
Note that in layout tests it is often enough to trigger layout using
document.body.offsetWidth // HTML example
When possible, you should use this technique instead of making your test async.
[1] https://hg.mozilla.org/mozilla-central/file/3b96f2773257/layout/tools/reftest/README.txt#l428
Reporter | ||
Comment 11•8 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #10)
> (In reply to Olli Pettay [:smaug] from comment #8)
> > Why does the paint help? Layout flush doesn't mean paint.
>
> Honestly I don't exactly know the reason why a subsequent test is proceeded
> even if this test is finished.
is *not* finished.
Comment hidden (mozreview-request) |
Reporter | ||
Comment 13•7 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #10)
> (In reply to Olli Pettay [:smaug] from comment #8)
> > Why does the paint help? Layout flush doesn't mean paint.
>
> Honestly I don't exactly know the reason why a subsequent test is proceeded
> even if this test is finished.
> What I know, what I assume is that there is no trigger to finish this test.
>
> > Don't you want async finish + requestAnimationFrame or something?
>
> Yes, actually I did a try with reftest-wait, and it worked as well. But
> after the try I found below comment in README.txt [1].
>
> Note that in layout tests it is often enough to trigger layout using
> document.body.offsetWidth // HTML example
>
> When possible, you should use this technique instead of making your test
> async.
After some more thought, I started to think that we should use reftest-wait to avoid not running the script unexpectedly but pass the crash test.
A try:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d1bab80408e1ef6ba91191199fbb9fc84f0a99d6
Comment 14•7 years ago
|
||
mozreview-review |
Comment on attachment 8866616 [details]
Bug 1362903 - Use reftest-wait to ensure this test finishes.
https://reviewboard.mozilla.org/r/138224/#review155032
rs+
Attachment #8866616 -
Flags: review?(bugs) → review+
Reporter | ||
Comment 15•7 years ago
|
||
Thank you for the review!
Comment 16•7 years ago
|
||
Pushed by hikezoe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/53d27064c64e
Use reftest-wait to ensure this test finishes. r=smaug
Comment 17•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Assignee | ||
Comment 18•7 years ago
|
||
I finally got a rr recording of this failure and hopefully to get more clues from it.
Assignee: hikezoe → sawang
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 19•7 years ago
|
||
Assignee | ||
Comment 20•7 years ago
|
||
Comment on attachment 8886465 [details] [diff] [review]
clear gCurrentURL on reftest finishes
Hi Joel,
I found gCurrentURL didn't get cleared on test finishes. In 1331295.html there's a window.location.reload, so it can occasionally pass twice if gCurrentURL hasn't been updated yet, and the 2nd "reftest:TestDone" causes reftest.jsm think 1341657.html has finished, and eventually cause bug 1343884.
I tried 100 runs on linux64/linux64-qr and the only 3 fails seems to be caused by bug 1204281.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9783c406f1f8784aa48950b60354dd442a7a47db
I'd like to see if this simple change fixes the issue.
Attachment #8886465 -
Flags: review?(jmaher)
Comment 21•7 years ago
|
||
Comment on attachment 8886465 [details] [diff] [review]
clear gCurrentURL on reftest finishes
Review of attachment 8886465 [details] [diff] [review]:
-----------------------------------------------------------------
this looks pretty safe.
Attachment #8886465 -
Flags: review?(jmaher) → review+
Assignee | ||
Updated•7 years ago
|
Attachment #8866616 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 22•7 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c038d1ebf74f
Clear gCurrentURL on reftest finishes. r=jmaher
Keywords: checkin-needed
Comment 23•7 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•