Closed
Bug 800800
Opened 12 years ago
Closed 11 years ago
Ensure we always wait for removeAllHistory() in places.js to stop the failure 'Browsing History has been cleared'
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect, P3)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(firefox18 fixed, firefox19 fixed, firefox20 fixed, firefox21 fixed, firefox-esr10 fixed, firefox-esr17 fixed)
People
(Reporter: AndreeaMatei, Assigned: AndreeaMatei)
References
()
Details
(Whiteboard: [mozmill-test-failure][lib] s=121015 u=new c=places p=1)
Attachments
(1 file, 2 obsolete files)
1.84 KB,
patch
|
whimboo
:
review+
whimboo
:
checkin+
|
Details | Diff | Splinter Review |
It's already happening for the second time, on Windows XP with ESR 10.0.8 and now 10.0.9. Details: TimeoutError("Browsing History has been cleared")@resource://mozmill/modules/utils.js:449 waitFor([object Proxy],"Browsing History has been cleared")@resource://mozmill/modules/utils.js:487 This is related to places.js module.
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Updated•12 years ago
|
Comment 1•12 years ago
|
||
We are making use of the places method not only in that test, right? So I wonder why it works in other tests.
Priority: -- → P2
Whiteboard: [mozmill-test-failure][lib]
Comment 2•12 years ago
|
||
Looks like this only happens for release builds on esr10. Please ensure to use those builds and no nightly ones. I will put this in for next week.
Whiteboard: [mozmill-test-failure][lib] → [mozmill-test-failure][lib] s=121015 u=new c=tabbrowser p=1
Assignee | ||
Comment 3•12 years ago
|
||
Has happened with testCheckItemHighlight.js also: * http://mozmill-ci.blargon7.com/#/functional/failure?branch=All&platform=All&from=2012-10-12&to=&test=%2FtestAwesomeBar%2FtestCheckItemHighlight.js&func=testCheckItemHighlight.js%3A%3AsetupModule
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → alex.lakatos
Status: NEW → ASSIGNED
Comment 4•12 years ago
|
||
(In reply to Andreea Matei [:AndreeaMatei] from comment #3) > Has happened with testCheckItemHighlight.js also: > > * > http://mozmill-ci.blargon7.com/#/functional/ > failure?branch=All&platform=All&from=2012-10- > 12&to=&test=%2FtestAwesomeBar%2FtestCheckItemHighlight. > js&func=testCheckItemHighlight.js%3A%3AsetupModule Given this, I think we should change the summary to reflect what we need to accomplish here: Ensure we always wait for removeAllHistory() in places.js
Summary: Test failure "Browsing History has been cleared" in /testAwesomeBar/testPasteLocationBar.js → Ensure we always wait for removeAllHistory() in places.js
Comment 5•12 years ago
|
||
I can not reproduce the issue with ESR 10.0.9 nor 10.0.10(candidate build1). The fail frequency was low, and in case you want to skip the failing tests, here is a skip patch. But I would advise against it, seeing as how nothing failed in the last 12 days. I would propose closing this as WORKSFORME, and reopening if it fails again.
Attachment #675094 -
Flags: review?(hskupin)
Attachment #675094 -
Flags: review?(dave.hunt)
Comment 6•12 years ago
|
||
Comment on attachment 675094 [details] [diff] [review] skipPatch v1.0 [esr10] I do not think we want to skip it. If possible it should be investigated on the machine the failure happened. Also I would like to keep it open for now.
Attachment #675094 -
Flags: review?(hskupin)
Attachment #675094 -
Flags: review?(dave.hunt)
Comment 7•12 years ago
|
||
As Henrik suggests in comment 6, please try to replicate on the machine the failure is occurring on.
Comment 8•12 years ago
|
||
(In reply to Dave Hunt (:davehunt) from comment #7) > As Henrik suggests in comment 6, please try to replicate on the machine the > failure is occurring on. It's happening on different machines and on different branches as well. The initial failure happens on mm-win-xp-3 and the recent failure happens on mm-win-xp-1 Other tests have started failing, but not frequently http://mozmill-ci.blargon7.com/#/functional/failure?branch=All&platform=All&from=2012-10-30&to=&test=%2FtestAwesomeBar%2FtestSuggestHistory.js&func=testSuggestHistory.js%3A%3AsetupModule
Updated•12 years ago
|
status-firefox19:
--- → affected
Priority: P2 → P1
Assignee | ||
Updated•12 years ago
|
Assignee: alex.lakatos → andreea.matei
Assignee | ||
Updated•12 years ago
|
status-firefox17:
--- → affected
Assignee | ||
Comment 9•12 years ago
|
||
I believe what happens here is that over a functional testrun, not all the tests clear history in tearDown. Actually only those in awesomeBar do. I've noticed that the tests are not run alphabetically, in fact awesomeBar tests are somewhere at the end on the testrun. So they will have to remove all the history added until then. We have several options: to increase the waitFor timeout, to clear history after each test or to see if we can redesign the method.
Comment 10•12 years ago
|
||
Andreea: It's true that there's no guarantee to the order the tests are run unless you use a manifest file, but as far as I can tell the awesomebar tests are being run early on the suite. Could you try to replicate the issue using the manifest files and forcing the relevant tests to run last?
Comment 11•12 years ago
|
||
(In reply to Andreea Matei [:AndreeaMatei] from comment #9) > I believe what happens here is that over a functional testrun, not all the > tests clear history in tearDown. Actually only those in awesomeBar do. > I've noticed that the tests are not run alphabetically, in fact awesomeBar > tests are somewhere at the end on the testrun. So they will have to remove > all the history added until then. That's only true for Linux but not for Windows and OS X. So on which platforms are we facing this bug?
Updated•12 years ago
|
Whiteboard: [mozmill-test-failure][lib] s=121015 u=new c=tabbrowser p=1 → [mozmill-test-failure][lib] s=121015 u=new c=places p=1
Assignee | ||
Comment 12•12 years ago
|
||
On Windows XP is happening. I will look then to see how we can remove history otherwise or if we can wait for another event also.
Comment 13•12 years ago
|
||
Then your above idea is not the cause. On Windows the awesomebar tests are getting executed first. How much time do they take means which timeout do we need? Are you testing on a fully utilized machine?
Assignee | ||
Comment 14•12 years ago
|
||
I've managed to reproduce it constantly (at least once in 20 runs) with the builds from the mozmill-ci dashboard (ESR10 and default, not beta), on fully loaded XP vm. The timeout needed not to fail in these conditions is 8000.
Comment 15•12 years ago
|
||
Does it happen when you run this test on its own too?
Assignee | ||
Comment 16•12 years ago
|
||
Nope, on single runs of different awesomebar tests it's not failing.
Comment 17•12 years ago
|
||
What's the minimum set of tests then? We really don't add that much to the history, so it's suspicious. What would you check next?
Comment 18•12 years ago
|
||
Failed in /testAwesomeBar/testVisibleItemsMax.js http://mozmill-ci.blargon7.com/#/functional/failure?branch=All&platform=All&from=2012-12-04&to=&test=%2FtestAwesomeBar%2FtestVisibleItemsMax.js&func=testVisibleItemsMax.js%3A%3AsetupModule
Comment 19•12 years ago
|
||
Can we please get this fixed soon? While Andreea is away someone else from the SV team should take care of it. This is a P1 failure. Thanks.
Comment 20•12 years ago
|
||
Failed on 17esr today on Windows XP, on two tests in the same run http://mozmill-ci.blargon7.com/#/functional/report/352218d7e3125c857fc1d371679d9997
status-firefox-esr17:
--- → affected
Comment 21•12 years ago
|
||
This is our other P1 issue for this week. So please put focus on it so we can fix it. Seems like with the patch on bug 815605 it's failing constantly now.
Comment 22•12 years ago
|
||
Andreea, as given this should be fixed. I have landed the fix on bug 815605 on all other branches. So if nothing fails today please mark this bug as fixed.
Assignee | ||
Comment 23•12 years ago
|
||
No more failures. Will reopen if the case, hopefully not.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Comment 24•12 years ago
|
||
Doesn't look that it is fixed for esr10, esr17, and most likely 17.0 release: http://mozmill-ci.blargon7.com/#/functional/report/a11aa7b15f4e571fd6fe21a2db2c61cc http://mozmill-ci.blargon7.com/#/functional/report/a11aa7b15f4e571fd6fe21a2db2b9200
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 25•12 years ago
|
||
The ESR10 link report has no failure now, just on the restart addons. I checked the files from the report and it appears on esr17 the patch wasn't applied at the moment of the run: http://hg.mozilla.org/qa/mozmill-tests/file/f25449c1ea43/lib/places.js
Comment 26•12 years ago
|
||
(In reply to Andreea Matei [:AndreeaMatei] from comment #25) > I checked the files from the report and it appears on esr17 the patch wasn't > applied at the moment of the run: > http://hg.mozilla.org/qa/mozmill-tests/file/f25449c1ea43/lib/places.js As far as I can see it has: http://hg.mozilla.org/qa/mozmill-tests/file/f25449c1ea43/lib/places.js#l104
Assignee | ||
Comment 27•12 years ago
|
||
The patch wasn't applied there, no failures today on ESR17, so marking as closed for now.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Comment 28•12 years ago
|
||
Reproducible on Nightly builds on XP SP3 - it happened in 12/21 in the test /testAwesomeBar/testAccessLocationBar.js http://mozmill-ci.blargon7.com/#/functional/report/a11aa7b15f4e571fd6fe21a2dbbd2f40
Comment 29•12 years ago
|
||
Has it been ever failed again since Dec 21st? If not please close this bug. It might be it was a fallout from the pb mode changes.
Summary: Ensure we always wait for removeAllHistory() in places.js → Ensure we always wait for removeAllHistory() in places.js to stop the failure 'Browsing History has been cleared'
Comment 30•12 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #29) > Has it been ever failed again since Dec 21st? If not please close this bug. > It might be it was a fallout from the pb mode changes. Happened again on 2012-12-30 on Win XP on Aurora (fr) http://mozmill-ci.blargon7.com/#/functional/report/23d8fbdd0190d4b0496d6b129f0bd5b4
Comment 31•12 years ago
|
||
Again on Nightly Win XP in the test: /testAwesomeBar/testVisibleItemsMax.js http://mozmill-ci.blargon7.com/#/functional/report/23d8fbdd0190d4b0496d6b129f5f03c1
Comment 32•12 years ago
|
||
Also on the 18.0 branch: http://mozmill-ci.blargon7.com/#/functional/report/23d8fbdd0190d4b0496d6b129f69b694
Comment 33•12 years ago
|
||
Happened again on Firefox 19.0 (19.0, en-US, 20130109111322): http://mozmill-ci.blargon7.com/#/functional/report/23d8fbdd0190d4b0496d6b129fe8a608
Assignee | ||
Comment 34•11 years ago
|
||
I'm curious to see if this will fail again on the new system, since it's now happening only on Windows. Until now, I can fix it only by increasing the timeout for the waitFor, so it could be a issue of slow machines.
Updated•11 years ago
|
Priority: P1 → P3
Assignee | ||
Comment 35•11 years ago
|
||
Looks like with the new machines this is not failing, for 3 weeks now, yey :)
Comment 36•11 years ago
|
||
So it's a sign for slowish operating machines then. We have a timeout of 5s right now, that's correct? We should probably increase that to 10s. What do you think?
Assignee | ||
Comment 37•11 years ago
|
||
When I was testing with increased timeout, 8-9 seconds did the trick. So yes, 10s should be safe enough. I will retest it and provide a patch.
Assignee | ||
Comment 38•11 years ago
|
||
Increasing timeout. Applies to default, aurora and beta. Used to occur on esr10 as well but we're not working on that anymore.
Attachment #675094 -
Attachment is obsolete: true
Attachment #709047 -
Flags: review?(hskupin)
Attachment #709047 -
Flags: review?(dave.hunt)
Comment 39•11 years ago
|
||
Comment on attachment 709047 [details] [diff] [review] increase timeout Review of attachment 709047 [details] [diff] [review]: ----------------------------------------------------------------- ::: lib/places.js @@ +134,4 @@ > browserHistory.removeAllPages(); > assert.waitFor(function () { > return finishedStateFlag; > + }, "Browsing History has been cleared", 10000, 100); I would make this a global constant instead. Most likely we should also apply this to the other method which relies on the observer.
Attachment #709047 -
Flags: review?(hskupin)
Attachment #709047 -
Flags: review?(dave.hunt)
Attachment #709047 -
Flags: review-
Assignee | ||
Comment 40•11 years ago
|
||
As talked on IRC, added another timeout for clearing history.
Attachment #709047 -
Attachment is obsolete: true
Attachment #710572 -
Flags: review?(hskupin)
Attachment #710572 -
Flags: review?(dave.hunt)
Comment 41•11 years ago
|
||
Comment on attachment 710572 [details] [diff] [review] increase timeout Review of attachment 710572 [details] [diff] [review]: ----------------------------------------------------------------- http://hg.mozilla.org/qa/mozmill-tests/rev/781ed9c12364 (default)
Attachment #710572 -
Flags: review?(hskupin)
Attachment #710572 -
Flags: review?(dave.hunt)
Attachment #710572 -
Flags: review+
Attachment #710572 -
Flags: checkin+
Updated•11 years ago
|
status-firefox17:
fixed → ---
status-firefox21:
--- → fixed
Assignee | ||
Comment 42•11 years ago
|
||
Applies cleanly to all other branches. Fingers crossed to never see the error again.
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 43•11 years ago
|
||
Transplanted as: http://hg.mozilla.org/qa/mozmill-tests/rev/213e20e8ba92 (mozilla-aurora) http://hg.mozilla.org/qa/mozmill-tests/rev/6692f287b545 (mozilla-beta) http://hg.mozilla.org/qa/mozmill-tests/rev/6c0b67d188e9 (mozilla-release) http://hg.mozilla.org/qa/mozmill-tests/rev/b70b3bb0996c (mozilla-esr17)
Status: REOPENED → RESOLVED
Closed: 12 years ago → 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Updated•5 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•