Closed Bug 873974 Opened 11 years ago Closed 11 years ago

Test failure 'Disk cache has no entries - '1' should equal '0' ' in /testPrivateBrowsing/testAboutCache.js

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

x86
All
defect
Not set
normal

Tracking

(firefox22 fixed, firefox23 fixed, firefox24 fixed, firefox25 fixed, firefox-esr17 fixed)

RESOLVED FIXED
Tracking Status
firefox22 --- fixed
firefox23 --- fixed
firefox24 --- fixed
firefox25 --- fixed
firefox-esr17 --- fixed

People

(Reporter: daniela.p98911, Assigned: AndreeaMatei)

References

()

Details

(Whiteboard: [mozmill-test-failure])

Attachments

(3 files, 1 obsolete file)

This error appeared in 19th of May on Windows 7 x86 with Nightly FR build:
http://mozmill-ci.blargon7.com/#/functional/report/14f8bc4e22e61353662cded4c2d371c0
Whiteboard: [mozmill-test-failure]
It's reproducing for me on Windows 8 as well.
OS: Windows 7 → All
Happened again today on Win8 x86 with Firefox 24.0a2 fr
http://mozmill-ci.blargon7.com/#/functional/report/a1b02004612785c13cf7c6bf1e6766e2
Attached patch pbCache.patch (obsolete) — Splinter Review
Failed again today on Win 7 with Nightly - it locale:
http://mozmill-daily.blargon7.com/#/functional/report/180cf2548ef2865af3ae441d61729b88

I reproduced it (4 times in 50 single test runs) on my Win 8 vm, while trying to get the other failure from this test (Memory cache has no entries after PB mode - 'undefined' should equal '0). 
What I found is that the initialized disk entries count, after clearing the cache in setup, is returning 1 instead of 0. 

So I moved closeAllTabs() before clearing the cache. I think that closeAllTabs it's closing each tab and opens about:newtab where sometimes is a loading timing issue and it gets incremented into the disk entries. 

I ran the test for 200 times, no fail. Also with aurora.
Assignee: nobody → andreea.matei
Status: NEW → ASSIGNED
Attachment #779229 - Flags: review?(hskupin)
Attachment #779229 - Flags: review?(dave.hunt)
Comment on attachment 779229 [details] [diff] [review]
pbCache.patch

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

Looks good. But please add a comment why we clear the cache at the end. So that we don't flip this order again later. r+ with the comment added.
Attachment #779229 - Flags: review?(hskupin)
Attachment #779229 - Flags: review?(dave.hunt)
Attachment #779229 - Flags: review+
Added the comment and landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/8f7f992d58fb (default)

It is possible that bug 888924 was fixed by this as well, but I'll run some more tests today to make sure. That one was reproducing more rarely.

I'll also check backporting.
(In reply to Andreea Matei [:AndreeaMatei] from comment #6)
> Added the comment and landed:
> http://hg.mozilla.org/qa/mozmill-tests/rev/8f7f992d58fb (default)

Please make sure to update the attachment on this bug too. Otherwise it will differ from what has been landed.
Blocks: 888924
Attached patch patch v2Splinter Review
Attachment #779229 - Attachment is obsolete: true
Attachment #779651 - Flags: review+
It's not applying on beta and release due to aModule which is missing there and also the "use strict" line.
Attachment #779660 - Flags: review?(hskupin)
Attachment #779660 - Flags: review?(dave.hunt)
We need an update for esr17 branch as it has an extra check, with these lines:
// Make sure we are not in PB mode and don't show a prompt
pb.enabled = false;
pb.showPrompt = false;

Transplanted the main patch on Aurora:
http://hg.mozilla.org/qa/mozmill-tests/rev/2e5287d875fc (aurora)
Attachment #779664 - Flags: review?(hskupin)
Attachment #779664 - Flags: review?(dave.hunt)
Comment on attachment 779660 [details] [diff] [review]
[beta, release] pbCache.patch

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

Splinter review has problems to show this patch. But it looks fine.
Attachment #779660 - Flags: review?(hskupin)
Attachment #779660 - Flags: review?(dave.hunt)
Attachment #779660 - Flags: review+
Attachment #779664 - Flags: review?(hskupin)
Attachment #779664 - Flags: review?(dave.hunt)
Attachment #779664 - Flags: review+
Thanks, landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/fe47e939f71c (beta)
http://hg.mozilla.org/qa/mozmill-tests/rev/a524d2f206f9 (release)
http://hg.mozilla.org/qa/mozmill-tests/rev/2ffa35db1bb3 (esr17)

I managed to still reproduce the other failure so I'll move to bug 888924 for the investigation there.
No longer blocks: 888924
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: