Closed
Bug 668471
Opened 13 years ago
Closed 12 years ago
Intermittent TEST-UNEXPECTED-FAIL | unknown test url | [SimpleTest/SimpleTest.js, window.onerror] - An error occurred: SpecialPowers is not defined at http://mochi.test:8888/tests/Harness_sanity/file_SpecialPowersFrame1.html:10
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: mak, Unassigned)
References
Details
(Keywords: intermittent-failure)
Attachments
(1 file)
(deleted),
image/jpeg
|
Details |
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1309393394.1309396676.30175.gz
SPECIALPTEST2:::Loading test2 file now 1309393763190
before 610304, after 610304, break 00000000
13 INFO TEST-PASS | /tests/Harness_sanity/test_SpecialPowersExtension2.html | Special Powers top level - "foo" should equal "foo"
pldhash: for the table at address 0E574B90, the given entrySize of 48 probably favors chaining over double hashing.
++DOCSHELL 0E574B28 == 7
++DOMWINDOW == 15 (0F046E48) [serial = 17] [outer = 00000000]
++DOMWINDOW == 16 (0F0471F8) [serial = 18] [outer = 0F046DF8]
TEST-UNEXPECTED-FAIL | | [SimpleTest/SimpleTest.js, window.onerror] - An error occurred: SpecialPowers is not defined at http://mochi.test:8888/tests/Harness_sanity/file_SpecialPowersFrame1.html:11
JavaScript error: http://mochi.test:8888/tests/Harness_sanity/file_SpecialPowersFrame1.html, line 11: SpecialPowers is not defined
14 INFO TEST-END | /tests/Harness_sanity/test_SpecialPowersExtension2.html | finished in 2562ms
Comment 1•13 years ago
|
||
That's, uh, really bad.
Comment 2•13 years ago
|
||
Is it possible something was checked in for specialpowers that caused it to have a syntax error?
Reporter | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Reporter | ||
Comment 7•13 years ago
|
||
Comment 8•13 years ago
|
||
Can (In reply to comment #2)
> Is it possible something was checked in for specialpowers that caused it to
> have a syntax error?
No. First off, this would be a perma-orange and not intermittent. Second, if you look at the logs, the test_SpecialPowersExtension.html sanity checks pass, it's the test_SpecialPowersExtension2.html tests that fail (testing SpecialPowers in a frame).
Something is broken, we need to figure out when this actually started happening. The failure from comment 0 was on http://hg.mozilla.org/mozilla-central/rev/29bc151be813 which doesn't look like it has anything to do with this, so I started looking at changesets prior to that:
http://hg.mozilla.org/mozilla-central/pushloghtml?startdate=2011-07-03&enddate=2011-07-04+05%3A33%3A08
There's one change to specialpowers.js in there, but it looks harmless:
http://hg.mozilla.org/mozilla-central/rev/7a747adc8303
I don't see anything else in that range that's particularly suspicious. It's possible whatever caused this landed even earlier. I need a statistics person to tell me what range we ought to be looking in given the frequency of failure here.
Comment 9•13 years ago
|
||
> I don't see anything else in that range that's particularly suspicious. It's
> possible whatever caused this landed even earlier. I need a statistics person
> to tell me what range we ought to be looking in given the frequency of failure
> here.
I need to assume that the chance of seeing this orange on any given push is constant. This assumption could be wrong if we originally broke this test and then later checked something in which tickled the broken test. It's possible that the orange was originally so unlikely, we'd never seen it until it was tickled.
I think we can best estimate the probability of failure by looking at the failures which we know occurred after the orange existed, so that gives us 5 failures out of all the pushes after comment 0 (d452aaf438f1).
There were 77 pushes to mozilla-inbound and 51 pushes to mozilla-central since d452aaf, for a total of 128. We want a lower bound on the failure probability, so let's assume that all of these had successful Windows builds.
Thus the probability of failure is at least 5 / 128 = .039. Call this F.
So now we ask: Given probability P, find N such that the chance of seeing N test runs in a row with no failure is P.
The chance of seeing N successful runs in a row is (1 - F) ^ N. So say
(1 - F) ^ N = P
and solve for N:
N = (log P) / (log (1 - F))
Now plug in our desired P and known F:
P = 5% --> N = 75
P = 1% --> N = 116
P = 0.1% --> N = 173
So you have a 95% chance that the offending changeset occurred 75 pushes before comment 0, a 99% chance that it occurred 116 pushes before, and a 99.9% chance it occurred 173 pushes before. Again, assuming that the chance of failure has remained constant.
(Note that "N pushes before" counts test runs on both m-c and m-i.)
Comment 10•13 years ago
|
||
Comment 11•13 years ago
|
||
Comment 12•13 years ago
|
||
Comment 13•13 years ago
|
||
Comment 14•13 years ago
|
||
Sorry if this is not related to this error, but I noticed something weird.
While running this mochitest from Fennec, it gets reported as passed, but the iframe is red and shows failed:
http://mochi.test:8888/tests/Harness_sanity/test_SpecialPowersExtension2.html
I see this happening all the time.
Maybe that is related to this error?
Comment 15•13 years ago
|
||
Comment 16•13 years ago
|
||
Reporter | ||
Comment 17•13 years ago
|
||
Comment 18•13 years ago
|
||
Version: unspecified → Trunk
Comment 19•13 years ago
|
||
Reporter | ||
Comment 20•13 years ago
|
||
Comment 21•13 years ago
|
||
Comment 22•13 years ago
|
||
Comment 23•13 years ago
|
||
Comment 24•13 years ago
|
||
Reporter | ||
Comment 25•13 years ago
|
||
Comment 26•13 years ago
|
||
Reporter | ||
Comment 27•13 years ago
|
||
Comment 28•13 years ago
|
||
Comment 29•13 years ago
|
||
(In reply to comment #14)
> Created attachment 544526 [details]
> Screenshot
>
> Sorry if this is not related to this error, but I noticed something weird.
> While running this mochitest from Fennec, it gets reported as passed, but
> the iframe is red and shows failed:
> http://mochi.test:8888/tests/Harness_sanity/test_SpecialPowersExtension2.html
>
> I see this happening all the time.
> Maybe that is related to this error?
Note that all of these logs have this at the end:
103456 INFO TEST-START | Shutdown
103457 INFO Passed: 100820
103458 INFO Failed: 0
103459 INFO Todo: 886
103460 INFO SimpleTest FINISHED
103461 INFO TEST-INFO | Ran 0 Loops
So, this is never reported as a failure by the suite.
Comment 30•13 years ago
|
||
bug 673569 is almost certainly the root cause here. The symptoms described there fit very well, and the pushlog time is damning:
http://hg.mozilla.org/mozilla-central/pushloghtml?changeset=beceddeee3f4
(The other content script that's causing the race with specialpowers.js was pushed on June 30th, exactly when this bug was filed.)
Depends on: 673569
Reporter | ||
Comment 31•13 years ago
|
||
Reporter | ||
Comment 32•13 years ago
|
||
Comment 33•13 years ago
|
||
OS: Windows 7 → All
Hardware: x86 → All
Comment 34•13 years ago
|
||
Reporter | ||
Comment 35•13 years ago
|
||
Comment 36•13 years ago
|
||
Comment 37•13 years ago
|
||
Comment 38•13 years ago
|
||
Comment 39•13 years ago
|
||
Comment 40•13 years ago
|
||
Comment 41•13 years ago
|
||
Comment 42•13 years ago
|
||
Comment 43•13 years ago
|
||
Comment 44•13 years ago
|
||
Comment 45•13 years ago
|
||
Comment 46•13 years ago
|
||
Comment 47•13 years ago
|
||
Comment 49•13 years ago
|
||
Comment 50•13 years ago
|
||
Comment 51•13 years ago
|
||
Comment 52•13 years ago
|
||
Comment 53•13 years ago
|
||
Comment 54•13 years ago
|
||
Comment 55•13 years ago
|
||
Comment 56•13 years ago
|
||
Comment 57•13 years ago
|
||
Comment 58•13 years ago
|
||
Comment 59•13 years ago
|
||
Comment 60•13 years ago
|
||
Comment 61•13 years ago
|
||
Comment 62•13 years ago
|
||
Comment 63•13 years ago
|
||
Comment 64•13 years ago
|
||
Comment 65•13 years ago
|
||
Comment 66•13 years ago
|
||
Comment 67•13 years ago
|
||
Comment 68•13 years ago
|
||
Comment 69•13 years ago
|
||
Comment 70•13 years ago
|
||
Comment 71•13 years ago
|
||
Comment 72•13 years ago
|
||
Comment 73•13 years ago
|
||
Comment 74•13 years ago
|
||
Comment 75•13 years ago
|
||
Comment 76•13 years ago
|
||
Comment 77•13 years ago
|
||
Comment 78•13 years ago
|
||
Comment 79•13 years ago
|
||
Comment 80•13 years ago
|
||
Comment 81•13 years ago
|
||
Comment 82•13 years ago
|
||
Comment 83•13 years ago
|
||
Comment 84•13 years ago
|
||
Comment 85•13 years ago
|
||
Reporter | ||
Comment 86•13 years ago
|
||
Comment 87•13 years ago
|
||
Comment 88•13 years ago
|
||
Comment 89•13 years ago
|
||
Comment 90•13 years ago
|
||
Comment 91•13 years ago
|
||
Reporter | ||
Comment 92•13 years ago
|
||
Comment 93•13 years ago
|
||
Comment 94•13 years ago
|
||
Comment 95•13 years ago
|
||
Comment 96•13 years ago
|
||
Comment 97•13 years ago
|
||
Comment 98•13 years ago
|
||
Comment 99•13 years ago
|
||
Comment 100•13 years ago
|
||
Comment 101•13 years ago
|
||
Comment 102•13 years ago
|
||
Comment 103•13 years ago
|
||
Comment 104•13 years ago
|
||
Comment 105•13 years ago
|
||
Comment 106•13 years ago
|
||
Comment 107•13 years ago
|
||
Comment 108•13 years ago
|
||
Comment 109•13 years ago
|
||
Comment 110•13 years ago
|
||
Comment 111•13 years ago
|
||
Comment 112•13 years ago
|
||
Comment 113•13 years ago
|
||
Comment 114•13 years ago
|
||
Comment 115•13 years ago
|
||
Comment 116•13 years ago
|
||
Comment 117•13 years ago
|
||
Comment 118•13 years ago
|
||
Comment 119•13 years ago
|
||
Comment 120•13 years ago
|
||
Comment 121•13 years ago
|
||
Comment 122•13 years ago
|
||
Comment 123•13 years ago
|
||
Comment 124•13 years ago
|
||
Updated•13 years ago
|
Summary: Intermittent failure - An error occurred: SpecialPowers is not defined at http://mochi.test:8888/tests/Harness_sanity/file_SpecialPowersFrame1.html:11 → Intermittent TEST-UNEXPECTED-FAIL | unknown test url | [SimpleTest/SimpleTest.js, window.onerror] - An error occurred: SpecialPowers is not defined at http://mochi.test:8888/tests/Harness_sanity/file_SpecialPowersFrame1.html:10
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment 136•12 years ago
|
||
Mass marking whiteboard:[orange] bugs WFM (to clean up TBPL bug suggestions) that:
* Haven't changed in > 6months
* Whose whiteboard contains none of the strings: {disabled,marked,random,fuzzy,todo,fails,failing,annotated,leave open,time-bomb}
* Passed a (quick) manual inspection of bug summary/whiteboard to ensure they weren't a false positive.
I've also gone through and searched for cases where the whiteboard wasn't labelled correctly after test disabling, by using attachment description & basic comment searches. However if the test for which this bug was about has in fact been disabled/annotated/..., please accept my apologies & reopen/mark the whiteboard appropriately so this doesn't get re-closed in the future (and please ping me via IRC or email so I can try to tweak the saved searches to avoid more edge cases).
Sorry for the spam! Filter on: #FFA500
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Updated•12 years ago
|
Keywords: intermittent-failure
Assignee | ||
Updated•12 years ago
|
Whiteboard: [orange]
You need to log in
before you can comment on or make changes to this bug.
Description
•