Closed
Bug 1289028
Opened 8 years ago
Closed 8 years ago
Intermittent toolkit/components/url-classifier/tests/mochitest/test_gethash.html | Test timed out.
Categories
(Toolkit :: Safe Browsing, defect)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: dimi)
References
Details
(Keywords: intermittent-failure)
Attachments
(1 file)
Filed by: tomcat [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=32507520&repo=mozilla-inbound https://queue.taskcluster.net/v1/task/P3iem8P7RxSD5rRyyz7XxQ/runs/0/artifacts/public%2Flogs%2Flive_backing.log
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → dlee
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•8 years ago
|
||
I found this bug happens because we will call beginUpdate when Safebrowsing.jsm init[1] and when testcase is start to run, we may also call beginUpdate. If the timing is bad, second beginUpdate may fail because of the first one is still running[2]. [1] https://dxr.mozilla.org/mozilla-central/source/toolkit/components/url-classifier/SafeBrowsing.jsm#375 [2] https://dxr.mozilla.org/mozilla-central/source/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp#1505
Assignee | ||
Comment 2•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/67656/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/67656/
Assignee | ||
Updated•8 years ago
|
Attachment #8775482 -
Flags: feedback?(hchang)
Assignee | ||
Comment 3•8 years ago
|
||
I don't really have a good way to make sure testcase call beginUpdate after Safebrowsing.jsm. So use retry in this patch
Assignee | ||
Comment 4•8 years ago
|
||
Comment on attachment 8775482 [details] Bug 1289028 - Retry when url-classifier test_gethash.html hits an exception. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/67656/diff/1-2/
Attachment #8775482 -
Attachment description: Bug 1289028 - Intermittent toolkit/components/url-classifier/tests/mochitest/test_gethash.html | Test timed out. f?hchang → Bug 1289028 - Intermittent toolkit/components/url-classifier/tests/mochitest/test_gethash.html | Test timed out.
Attachment #8775482 -
Flags: feedback?(hchang)
Comment 5•8 years ago
|
||
Comment on attachment 8775482 [details] Bug 1289028 - Retry when url-classifier test_gethash.html hits an exception. https://reviewboard.mozilla.org/r/67656/#review64762 It mostly looks good to me and I've only got some suggestions. Thanks! ::: toolkit/components/url-classifier/tests/mochitest/classifierCommon.js:42 (Diff revision 2) > > let dbService = Cc["@mozilla.org/url-classifier/dbservice;1"] > .getService(Ci.nsIUrlClassifierDBService); > > + try { > - dbService.beginUpdate(listener, "test-malware-simple,test-unwanted-simple", ""); > + dbService.beginUpdate(listener, "test-malware-simple,test-unwanted-simple", ""); If beginUpdate is the only function which may throw exception, maybe we can try-catch this function. ::: toolkit/components/url-classifier/tests/mochitest/classifierCommon.js:50 (Diff revision 2) > - dbService.finishStream(); > + dbService.finishStream(); > - dbService.finishUpdate(); > + dbService.finishUpdate(); > + } catch(e) { > + // beginUpdate may fail if there's an existing update in progress > + updateRetry++; > + if (updateRetry <= MAX_UPDATE_RETRY) { I would suggest just to retry until timeout if there's no other concern.
Attachment #8775482 -
Flags: review+
Assignee | ||
Comment 6•8 years ago
|
||
Comment on attachment 8775482 [details] Bug 1289028 - Retry when url-classifier test_gethash.html hits an exception. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/67656/diff/2-3/
Attachment #8775482 -
Flags: review+ → review?(francois)
Comment 7•8 years ago
|
||
Per Dimi. The patch of this bug would also resolve the Treeherder failure of bug 1254766.
See Also: → 1254766
Updated•8 years ago
|
Comment 8•8 years ago
|
||
Comment on attachment 8775482 [details] Bug 1289028 - Retry when url-classifier test_gethash.html hits an exception. https://reviewboard.mozilla.org/r/67656/#review64896 Looks good to me, but I would suggest a commit message which describes your fix: Bug 1289028 - Retry when url-classifier test_gethash.html hits an exception. r=francois
Attachment #8775482 -
Flags: review?(francois) → review+
Assignee | ||
Comment 9•8 years ago
|
||
Comment on attachment 8775482 [details] Bug 1289028 - Retry when url-classifier test_gethash.html hits an exception. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/67656/diff/3-4/
Attachment #8775482 -
Attachment description: Bug 1289028 - Intermittent toolkit/components/url-classifier/tests/mochitest/test_gethash.html | Test timed out. → Bug 1289028 - Retry when url-classifier test_gethash.html hits an exception.
Assignee | ||
Comment 10•8 years ago
|
||
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=516158950ec7
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 11•8 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/fx-team/rev/0ed2256fd1fd Retry when url-classifier test_gethash.html hits an exception. r=francois
Keywords: checkin-needed
Comment 12•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0ed2256fd1fd
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Comment hidden (Intermittent Failures Robot) |
Comment 16•7 years ago
|
||
mochitest.ini still shows this test as being skipped on Linux debug due to bug 1199778. Did you mean to re-enable it as part of landing this fix?
Flags: needinfo?(dlee)
Assignee | ||
Comment 17•7 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #16) > mochitest.ini still shows this test as being skipped on Linux debug due to > bug 1199778. Did you mean to re-enable it as part of landing this fix? Yes, it could be re-enabled, do you want me to add a fix for this?
Flags: needinfo?(dlee)
Comment 18•7 years ago
|
||
Probably worth filing a new bug for it at this point and running it through Try.
You need to log in
before you can comment on or make changes to this bug.
Description
•