Closed Bug 381240 Opened 17 years ago Closed 15 years ago

last-modified-date tests for bookmarks failing on Linux qm-rhel02 dep unit test

Categories

(Firefox :: Bookmarks & History, defect, P4)

defect

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: dietrich, Assigned: mak)

References

Details

Attachments

(3 files)

*** CHECK FAILED: false == true
JS frame :: /build/slave/trunk_linux/mozilla/tools/test-harness/xpcshell-simple/head.js :: do_throw :: line 99
JS frame :: /build/slave/trunk_linux/mozilla/tools/test-harness/xpcshell-simple/head.js :: do_check_eq :: line 114
JS frame :: /build/slave/trunk_linux/mozilla/tools/test-harness/xpcshell-simple/head.js :: do_check_true :: line 118
JS frame :: ../../../../_tests/xpcshell-simple/test_places/bookmarks/test_bookmarks.js :: run_test :: line 339
JS frame :: /build/slave/trunk_linux/mozilla/tools/test-harness/xpcshell-simple/tail.js :: <TOP_LEVEL> :: line 41
*** exiting
*** CHECK FAILED: setKeywordForBookmark: 2147500036
JS frame :: /build/slave/trunk_linux/mozilla/tools/test-harness/xpcshell-simple/head.js :: do_throw :: line 99
JS frame :: ../../../../_tests/xpcshell-simple/test_places/bookmarks/test_bookmarks.js :: run_test :: line 341
JS frame :: /build/slave/trunk_linux/mozilla/tools/test-harness/xpcshell-simple/tail.js :: <TOP_LEVEL> :: line 41
2147500036
*** FAIL ***
These tests pass for me locally on Linux and Mac. On the tinderbox, they pass on Mac, but fail on Linux and Windows.
(In reply to comment #1)
> These tests pass for me locally on Linux and Mac. On the tinderbox, they pass
> on Mac, but fail on Linux and Windows.
> 

the windows test failure is different than this in the tbox failures. are you getting test failure at the same point in your linux and windows builds?
Summary: setKeywordForBookmark failing on Linux qm-rhel02 dep unit test → last-modified-date tests for bookmarks failing on Linux qm-rhel02 dep unit test
(In reply to comment #2)
> (In reply to comment #1)
> > These tests pass for me locally on Linux and Mac. On the tinderbox, they pass
> > on Mac, but fail on Linux and Windows.
> > 
> 
> the windows test failure is different than this in the tbox failures. are you
> getting test failure at the same point in your linux and windows builds?

I tested on Linux and Mac. Haven't tried Windows yet.
r=sayrer over irc

Checking in tests/bookmarks/test_bookmarks.js;
/cvsroot/mozilla/toolkit/components/places/tests/bookmarks/test_bookmarks.js,v  <--  test_bookmarks.js
new revision: 1.14; previous revision: 1.13
done
Assignee: nobody → dietrich
Status: NEW → ASSIGNED
the lastModified date tests in toolkit are failing. on the linux tinderbox, they failed in 2 different places on different runs, but both are failures of lastModified tests.
Attachment #265395 - Flags: review?(sayrer) → review+
after re-enabling the test, here's an example log from a failure (http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1179632280.26650.gz)

*** PLACES TESTS: test setItemTitle
*** PLACES TESTS: dateAdded      = 1179632468976665
*** PLACES TESTS: beforeSetTitle = 1179632468976000
*** PLACES TESTS: lastModified   = 0
*** PLACES TESTS: lastModified2  = 1179632468976418

We are failing because the dateAdded is after lastModified2, but it should be before.
disabled the tests again, just creating noise in the tinderbox as is.

Checking in tests/bookmarks/test_bookmarks.js;
/cvsroot/mozilla/toolkit/components/places/tests/bookmarks/test_bookmarks.js,v  <--  test_bookmarks.js
new revision: 1.23; previous revision: 1.22
done
disabling more tests:

Checking in bookmarks/test_bookmarks.js;
/cvsroot/mozilla/toolkit/components/places/tests/bookmarks/test_bookmarks.js,v  <--  test_bookmarks.js
new revision: 1.24; previous revision: 1.23
done
disabling more tests:

Checking in test_annotations.js;
/cvsroot/mozilla/toolkit/components/places/tests/unit/test_annotations.js,v  <--
  test_annotations.js
new revision: 1.8; previous revision: 1.7
done
disabling more tests :)

Checking in test_bookmarks.js;
/cvsroot/mozilla/toolkit/components/places/tests/bookmarks/test_bookmarks.js,v  <--  test_bookmarks.js
new revision: 1.25; previous revision: 1.24
done
(In reply to comment #11)
> disabling more tests 

What is the plan for fixing them? I gather it is a race condition of some sort. Is the API a little too asynchronous? Or is it an obvious mistake that can be easily fixed?
(In reply to comment #12)
> (In reply to comment #11)
> > disabling more tests 
> 
> What is the plan for fixing them? I gather it is a race condition of some sort.
> Is the API a little too asynchronous? Or is it an obvious mistake that can be
> easily fixed?
> 

not obvious yet, else we'd have fixed it. i'll look at it as soon as possible, but it's not a high priority relative to the other issues that need taking care of before A5 freeze. de-assigning myself for now.

drivers: requesting blocking due to possibly invalid user data on linux.
Assignee: dietrich → nobody
Status: ASSIGNED → NEW
Flags: blocking-firefox3?
Target Milestone: --- → Firefox 3 alpha6
(In reply to comment #13)
> 
> not obvious yet, else we'd have fixed it.

I'm sorry, I meant that I understood the fix to be obvious, but possibly time-consuming. I now understand that it is non-obvious and time-consuming.

> i'll look at it as soon as possible,
> but it's not a high priority relative to the other issues that need taking care
> of before A5 freeze.

I don't know what those issues are, so I don't disagree, but see below.

> 
> drivers: requesting blocking due to possibly invalid user data on linux.
> 

There are only three samples, each on different platforms. The bug manifests itself on the linux machine, but it isn't clear that other platforms are unaffected.
there are a few more tests in test_bookmark.js that we need to turn off (until we figure them out)

from http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1180073941.5712.gz

*** PLACES TESTS: lastModified2 = 1180074217450594
*** exiting
*** CHECK FAILED: false == true
JS frame :: /build/slave/trunk_linux/mozilla/tools/test-harness/xpcshell-simple/head.js :: do_throw :: line 99
JS frame :: /build/slave/trunk_linux/mozilla/tools/test-harness/xpcshell-simple/head.js :: do_check_eq :: line 114
JS frame :: /build/slave/trunk_linux/mozilla/tools/test-harness/xpcshell-simple/head.js :: do_check_true :: line 118
JS frame :: ../../../../_tests/xpcshell-simple/test_places/bookmarks/test_bookmarks.js :: testSimpleFolderResult :: line 660
JS frame :: ../../../../_tests/xpcshell-simple/test_places/bookmarks/test_bookmarks.js :: run_test :: line 646
JS frame :: /build/slave/trunk_linux/mozilla/tools/test-harness/xpcshell-simple/tail.js :: <TOP_LEVEL> :: line 41
2147500036
*** FAIL ***

give than the test on line 660 fails, there might be others after that in test_bookmarks.js that will also fail intermittely on linux as well.
disabled more tests (but also added some LOG statements).

cvs ci toolkit/components/places/tests/bookmarks/test_bookmarks.js
Checking in toolkit/components/places/tests/bookmarks/test_bookmarks.js;
/cvsroot/mozilla/toolkit/components/places/tests/bookmarks/test_bookmarks.js,v
<--  test_bookmarks.js
new revision: 1.26; previous revision: 1.25
done
Flags: blocking-firefox3? → blocking-firefox3+
retargeting bugs that don't meet the alpha release-blocker criteria at http://wiki.mozilla.org/Firefox3/Schedule.
Target Milestone: Firefox 3 alpha6 → Firefox 3 beta1
Target Milestone: Firefox 3 M7 → Firefox 3
Target Milestone: Firefox 3 → Firefox 3 M8
Target Milestone: Firefox 3 M8 → Firefox 3 M9
Target Milestone: Firefox 3 M9 → Firefox 3 M10
Target Milestone: Firefox 3 M10 → Firefox 3 M11
Target Milestone: Firefox 3 Mx → Firefox 3 M11
Priority: -- → P4
Not going to continue to block on this.  If you disagree with this decision, please renominate with reasons why we can't ship with this in final
Flags: wanted-firefox3+
Flags: blocking-firefox3-
Flags: blocking-firefox3+
Target Milestone: Firefox 3 beta3 → ---
tests currently disabled due to this bug:

http://mxr.mozilla.org/mozilla-central/search?string=bug%20381240
Hope this is the right place - since bug 381351 was marked as a duplicate.

Linux places unit test on 2009/07/08 13:22:04
http://tinderbox.mozilla.org/showlog.cgi?log=Places/1247084524.1247092236.29589.gz


TEST-UNEXPECTED-FAIL | /builds/moz2_slave/places-linux-unittest/build/objdir/_tests/xpcshell/test_places/unit/test_annotations.js | test failed (with xpcshell return code: 0), see following log:
TEST-UNEXPECTED-FAIL | /builds/moz2_slave/places-linux-unittest/build/objdir/_tests/xpcshell/test_places/unit/test_annotations.js | 3 == 2 - See following stack:
make: *** [xpcshell-tests] Error 1
Unknown Error: command finished with exit code: 2
(In reply to comment #21)
> Hope this is the right place - since bug 381351 was marked as a duplicate.

no, the failure you reported is unrelated to this bug, should be filed apart.
Blocks: 509868
Attached patch patch v1.0Splinter Review
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Attachment #394951 - Flags: review?(dietrich)
Attachment #394951 - Flags: review?(dietrich) → review+
http://hg.mozilla.org/mozilla-central/rev/ec21b0682874
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: