Closed
Bug 514801
Opened 15 years ago
Closed 15 years ago
xpcshell-tests: test_imapFilterActions.js fails intermittently on TB and permanently on SM
Categories
(MailNews Core :: Filters, defect)
MailNews Core
Filters
Tracking
(Not tracked)
VERIFIED
FIXED
Thunderbird 3.0b4
People
(Reporter: sgautherie, Assigned: rkent)
References
(Blocks 1 open bug, )
Details
(Keywords: intermittent-failure)
Attachments
(1 file, 1 obsolete file)
1.54 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
http://tinderbox.mozilla.org/showlog.cgi?log=Thunderbird/1252110018.1252115814.24256.gz&fulltext=1 MacOSX 10.5 comm-central check on 2009/09/04 17:20:18 { [...] test_imapFilterActions.js | 1 == 0 - See following stack: xpcshell/head.js :: do_throw :: line 197 xpcshell/head.js :: do_check_eq :: line 227 test_imapFilterActions.js :: testCounts :: line 757 test_imapFilterActions.js :: checkChangePriorityBody :: line 221 test_imapFilterActions.js :: testContinue :: line 428 test_imapFilterActions.js :: OnItemEvent :: line 540 }
Reporter | ||
Comment 1•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Thunderbird/1252150492.1252157948.6463.gz Win2k3 comm-central check on 2009/09/05 04:34:52 *** Regression timeframes for SeaMonkey (3 platforms): http://hg.mozilla.org/releases/mozilla-1.9.1/pushloghtml?fromchange=f39f311f9032&tochange=e62d7ebe4a8e http://hg.mozilla.org/comm-central/pushloghtml?fromchange=8a32844b76fb&tochange=b11a45aa831d It's obviously bug 127250 which added this test. Example: { http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey2.0/1252108242.1252118201.19011.gz&fulltext=1 WINNT 5.2 comm-1.9.1 unit test on 2009/09/04 16:50:42 test_imapFilterActions.js | 0 == 1 - See following stack: xpcshell\head.js :: do_throw :: line 159 xpcshell\head.js :: do_check_eq :: line 189 test_imapFilterActions.js :: testCounts :: line 760 test_imapFilterActions.js :: checkMarkRead :: line 108 test_imapFilterActions.js :: testContinue :: line 428 test_imapFilterActions.js :: OnItemEvent :: line 540 + test_imapFilterActions.js | 2147500037 == 0 - See following stack: xpcshell\head.js :: do_throw :: line 159 xpcshell\head.js :: do_check_eq :: line 189 test_imapFilterActions.js :: OnStopRunningUrl :: line 575 }
Severity: normal → major
OS: Mac OS X → All
Hardware: x86 → All
Summary: xpcshell-tests: test_imapFilterActions.js fails intermittently → xpcshell-tests: test_imapFilterActions.js fails intermittently on TB and permanently on SM
Assignee | ||
Comment 2•15 years ago
|
||
Bug 127250 added extensive new tests of all imap filter actions, while the functional part of the bug only added a single new action. However, the calling sequence for all of the filter actions was changed, which was one reason that the more extensive tests were felt appropriate. But many of these things were quite difficult to test, and there is some additional backend code that was added merely to provide additional hooks needed for the unit tests. I mention this to make the point that the failing tests do not necessarily indicate a problem with the functional changes done by the patch. It may be appropriate to disable the tests for now, and I will investigate further what is happening. The intermittent failures are almost certainly timing related. I'll need to investigate the SM change to see if it is a real issue.
Assignee | ||
Comment 3•15 years ago
|
||
This patch fixes the failing test in SM. But because it touches the very fragile new count management area, I want to think about it some more.
Assignee: nobody → kent
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•15 years ago
|
||
After thinking about my previous patch, I think it is too risky at this point in time. Other code assumes it is responsible for maintaining the new message count, and adding a new location where it is reset to 0 could have unforeseen consequences. Plus, I biefly tried to see any ill effects of this in SM, and could not. So instead of fixing the core, I want to simply disable the particular count test that is failing. The Mac failures are quite different, and are timing related and random in location. This patch also includes an attempt to fix those by moving the actual tests to the delayed call, and increasing the length of that delay.
Attachment #399085 -
Flags: review?(bugzilla)
Updated•15 years ago
|
Attachment #399085 -
Flags: review?(bugzilla) → review+
Comment 5•15 years ago
|
||
Comment on attachment 399085 [details] [diff] [review] Disables test failing in SM, delays others > if (gMoveCallbackCount != 2) > return; > } >- if (gChecks) >- gChecks(); > gCurTestNum++; >- do_timeout(100, "doTest();"); >+ do_timeout(200, "doTest();"); It could also be possible that doing the checks in the testCountinue without having allowed OnStopRunningURL to exit could potentially mean we're blocking on things that could be running async (or haven't allowed them to finish). Hence giving us problems. So moving the checks is definitely the right thing to do IMHO. r=Standard8
Updated•15 years ago
|
Attachment #398899 -
Attachment is obsolete: true
Comment 6•15 years ago
|
||
Checked in: http://hg.mozilla.org/comm-central/rev/94b69751ee35
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.0b4
Reporter | ||
Comment 7•15 years ago
|
||
(In reply to comment #4) > So instead of fixing the core, > I want to simply disable the particular count test that is failing. You may want to file a follow-up bug to fix that code/test. V.Fixed, per SeaMonkey tinderboxes.
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
Keywords: intermittent-failure
Updated•12 years ago
|
Whiteboard: [orange]
You need to log in
before you can comment on or make changes to this bug.
Description
•