Closed
Bug 488597
Opened 16 years ago
Closed 14 years ago
Random Test Failure (test_punycodeURIs.js) - Nothing to do with trunk 64 bit builds
Categories
(Core Graveyard :: File Handling, defect)
Core Graveyard
File Handling
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9.1
People
(Reporter: sdwilsh, Assigned: standard8)
References
()
Details
(Keywords: fixed1.9.1, intermittent-failure)
Attachments
(1 file)
1.26 KB,
patch
|
sdwilsh
:
review+
|
Details | Diff | Splinter Review |
TEST-UNEXPECTED-FAIL | e:\builds\moz2_slave\mozilla-1.9.1-win32-unittest\build\objdir\_tests\xpcshell\test_uriloader_exthandler\unit\test_punycodeURIs.js | test failed, see following log:
TEST-UNEXPECTED-FAIL | e:\builds\moz2_slave\mozilla-1.9.1-win32-unittest\build\objdir\_tests\xpcshell\test_uriloader_exthandler\unit\test_punycodeURIs.js | Expected File e:\builds\moz2_slave\mozilla-1.9.1-win32-unittest\build\objdir\_tests\xpcshell\test_uriloader_exthandler\unit\result.txt does not exist
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox3.5/1239827982.1239835683.817.gz&fulltext=1
WINNT 5.2 mozilla-1.9.1 unit test on 2009/04/15 13:39:42
Reporter | ||
Updated•16 years ago
|
Whiteboard: [orange]
Assignee | ||
Comment 1•16 years ago
|
||
Hmm, I've seen this occasionally on the TB boxes (and not got round to filing it :-( ), there's a one-second timeout where it waits just after calling launchWithURI (which launches a very small exe based on WriteArgument.cpp), I wonder if that's enough of a delay or if something really is going wrong.
Reporter | ||
Comment 2•16 years ago
|
||
Is there any way you can determine when the exe is done doing whatever you wanted it to do? Timeouts are unpredictable because the unit test slaves are really really slow sometimes.
Assignee | ||
Comment 3•16 years ago
|
||
(In reply to comment #2)
> Is there any way you can determine when the exe is done doing whatever you
> wanted it to do?
I don't think so, unless we can do reliable process detection cross platform. I'm currently thinking we should just adjust the timeout methods, I'll come up with a patch in a while.
Assignee | ||
Comment 4•16 years ago
|
||
This patch changes the test so that if the file doesn't exist, it retries up to 30 times/seconds. This should reduce the possible cases where we fail, and if we pass we'll only wait as long as we need to rather than the full 30 seconds.
I don't see any other way to do this without timeouts.
Reporter | ||
Comment 5•16 years ago
|
||
Comment on attachment 378046 [details] [diff] [review]
The fix
Hrm, yeah. This is probably the best option we have available to us for now. sadface.
This technically needs sr, but I'm not sure anybody will care.
Attachment #378046 -
Flags: review?(sdwilsh) → review+
Assignee | ||
Comment 6•16 years ago
|
||
Checked in: http://hg.mozilla.org/mozilla-central/rev/d1abfc97c140
I'll push to 1.9.1 later assuming it sticks.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•16 years ago
|
||
Checked in to 1.9.1 (test-only fix): http://hg.mozilla.org/releases/mozilla-1.9.1/rev/edee09521af4
Keywords: fixed1.9.1
Target Milestone: --- → mozilla1.9.1
Comment 8•16 years ago
|
||
Comment on attachment 378046 [details] [diff] [review]
The fix
>+// Try several times in case the box we're running on is slow.
>+const kMaxCheckExistAttempts = 30; // seconds
>+var gCheckExistsAttempts = 0;
>+
> function checkFile() {
>+ if (!tempFile.exists()) {
>+ if (gCheckExistsAttempts >= kMaxCheckExistAttempts) {
>+ do_throw("Expected File " + tempFile.path + " does not exist after " +
>+ kMaxCheckExistAttempts + " seconds");
>+ }
>+ else {
>+ // Wait a bit longer then try again
>+ do_timeout(1000, "checkFile()");
Did you forget to increment gCheckExistsAttempts somewhere?
Assignee | ||
Comment 9•16 years ago
|
||
(In reply to comment #8)
> Did you forget to increment gCheckExistsAttempts somewhere?
Damn, yes I did. Thanks for picking up on that.
Reporter | ||
Comment 10•16 years ago
|
||
(In reply to comment #8)
> Did you forget to increment gCheckExistsAttempts somewhere?
Bah! How did I miss that?! Thanks for catching that!
![]() |
||
Comment 11•15 years ago
|
||
I just saw this on tryserver:
http://tinderbox.mozilla.org/showlog.cgi?log=MozillaTry/1280370935.1280371818.10867.gz
Does this look like it is the same problem? Reopening for now.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
![]() |
||
Comment 12•15 years ago
|
||
Also saw this on the try build right after mine, so I don't believe it is my patch:
http://tinderbox.mozilla.org/showlog.cgi?log=MozillaTry/1280372958.1280373826.17793.gz
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) |
Assignee | ||
Comment 18•15 years ago
|
||
The 64-bit Snow Leopard 10.6.2 failures are NOT this bug, they are persistent failures, see bug 561350.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 15 years ago
Resolution: --- → FIXED
Summary: Random Test Failure (test_punycodeURIs.js) → Random Test Failure (test_punycodeURIs.js) - Nothing to do with trunk 64 bit builds
Comment 19•14 years ago
|
||
So I think the patch is missing a return after the do_timeout, and is therefore useless right now.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 20•14 years ago
|
||
OK, we already have bug 598794 about this problem. Closing this and using that.
Status: REOPENED → RESOLVED
Closed: 15 years ago → 14 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Keywords: intermittent-failure
Updated•13 years ago
|
Whiteboard: [orange]
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•