Closed Bug 1295138 Opened 8 years ago Closed 8 years ago

Change NS_ASSERTION(false, "Existing entry in StartupCache.") to a NS_WARNING

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(2 files)

https://dxr.mozilla.org/mozilla-central/rev/6e191a55c3d23e83e6a2e72e4e80c1dc21516493/startupcache/StartupCache.cpp#358 fires frequently and randomly on Android tests running in Autophone automation.

The comment following reads "// Double-caching is undesirable but not an error." so this is not really an error condition that requires a fix.

It causes oranges on the Autophone unit tests which increases the work load of the sheriffs and reduces the usefulness of the tests. I would like to change this to a warning that does not make tests orange in automation.
Attachment #8781132 - Flags: review?(nfroyd)
Attachment #8781132 - Flags: review?(nfroyd) → review+
Pushed by bclary@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0ad827f382ec
Change NS_ASSERTION(false, "Existing entry in StartupCache.") to a NS_WARNING, r=nfroyd
Assignee: nobody → bob
Status: NEW → ASSIGNED
Wes, Thanks and Sorry. This appears to be the sole failure.

16:50:25     INFO -  [1544] WARNING: Existing entry in StartupCache.: file /home/worker/workspace/build/src/startupcache/StartupCache.cpp, line 358
16:50:25     INFO -  MEMORY STAT | vsize 1008MB | residentFast 252MB | heapAllocated 102MB
16:50:25     INFO -  177 INFO TEST-OK | js/xpconnect/tests/chrome/test_chrometoSource.xul | took 504ms
16:50:25     INFO -  ++DOMWINDOW == 129 (0x7f20425e1400) [pid = 1544] [serial = 307] [outer = 0x7f2046b0e400]
16:50:25     INFO -  178 INFO TEST-UNEXPECTED-OK | js/xpconnect/tests/chrome/test_chrometoSource.xul | Assertion count 0 is less than expected range 1-1 assertions.

The patch removes the expected assertion. To avoid a repeat of this failure, I've submitted this to try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e6c18f9e0f3c
Flags: needinfo?(bob)
Comment on attachment 8781243 [details] [diff] [review]
startupcache-2.patch

Wes, this looks ok to me. linux x86_64 debug M(c3) is ok and I didn't find any other instances of unexpected ok failures.
Attachment #8781243 - Flags: review?(nfroyd)
Attachment #8781243 - Flags: review?(nfroyd) → review+
Pushed by bclary@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/68e2e8cbda41
Change NS_ASSERTION(false, "Existing entry in StartupCache.") to a NS_WARNING, r=nfroyd
https://hg.mozilla.org/integration/mozilla-inbound/rev/ac65411ca573
remove expected assertion from test_chrometoSource.xul, r=nfroyd
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: