mongodb-labs / edda

A log visualizer for MongoDB - This Repository is NOT a supported MongoDB product
232 stars 28 forks source link

Tests aren't passing #27

Closed kchodorow closed 12 years ago

kchodorow commented 12 years ago
EEE.EE.EEE..........F..EEEE
======================================================================
ERROR: Test on an empty db
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 40, in test_clock_skew_none
    server_clock_skew(db, "wildcats")
  File "/home/k/gitroot/logl/logl/post/clock_skew.py", line 38, in server_clock_skew
    for doc_a in db[collName + ".servers"].find():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Unrecognized top-level $-op: $query

======================================================================
ERROR: DB with entries from one server
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 53, in test_clock_skew_one
    server_clock_skew(db, "wildcats")
  File "/home/k/gitroot/logl/logl/post/clock_skew.py", line 38, in server_clock_skew
    for doc_a in db[collName + ".servers"].find():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Unrecognized top-level $-op: $query

======================================================================
ERROR: Two different servers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 75, in test_clock_skew_two
    server_clock_skew(db, "wildcats")
  File "/home/k/gitroot/logl/logl/post/clock_skew.py", line 38, in server_clock_skew
    for doc_a in db[collName + ".servers"].find():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Unrecognized top-level $-op: $query

======================================================================
ERROR: A simple test of the detect() method in post.py
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 145, in test_detect_simple
    skews1 = detect("Erica", "Alison", db, "wildcats")
  File "/home/k/gitroot/logl/logl/post/clock_skew.py", line 98, in detect
    for a in cursor_a:
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Unrecognized top-level $-op: $query
-------------------- >> begin captured logging << --------------------
logl.post.clock_skew: DEBUG: Detecting clock skew for pair Erica - Alison
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Test the scenario where server a has more
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 188, in test_detect_a_has_more
    skews1 = detect("Erica", "Alison", db, "wildcats")
  File "/home/k/gitroot/logl/logl/post/clock_skew.py", line 98, in detect
    for a in cursor_a:
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Unrecognized top-level $-op: $query
-------------------- >> begin captured logging << --------------------
logl.post.clock_skew: DEBUG: Detecting clock skew for pair Erica - Alison
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Test the case where corresponding entries
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 241, in test_detect_random_skew
    skews = detect("Hannah", "Mel", result[3], "wildcats")
  File "/home/k/gitroot/logl/logl/post/clock_skew.py", line 98, in detect
    for a in cursor_a:
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Unrecognized top-level $-op: $query
-------------------- >> begin captured logging << --------------------
logl.post.clock_skew: DEBUG: Detecting clock skew for pair Hannah - Mel
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Test the case where there is no clock skew.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 270, in test_detect_zero_skew
    skews1 = detect("Sam", "Gaya", result[2], "wildcats")
  File "/home/k/gitroot/logl/logl/post/clock_skew.py", line 98, in detect
    for a in cursor_a:
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Unrecognized top-level $-op: $query
-------------------- >> begin captured logging << --------------------
logl.post.clock_skew: DEBUG: Detecting clock skew for pair Sam - Gaya
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Test the case where there are time differences
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 303, in test_detect_network_delay
    skews1 = detect("Erica", "Alison", db, "wildcats")
  File "/home/k/gitroot/logl/logl/post/clock_skew.py", line 98, in detect
    for a in cursor_a:
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Unrecognized top-level $-op: $query
-------------------- >> begin captured logging << --------------------
logl.post.clock_skew: DEBUG: Detecting clock skew for pair Erica - Alison
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Test on a database with one unknown server
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_server_matchup.py", line 43, in test_one_unknown
    assert server_matchup(results[2], "hp") == -1
  File "/home/k/gitroot/logl/logl/post/server_matchup.py", line 38, in server_matchup
    unknown_count = unknowns.count()
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 418, in count
    **command)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/database.py", line 288, in command
    _is_command=True)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/collection.py", line 474, in find_one
    for result in self.find(spec_or_id, *args, **kwargs).limit(-1):
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Query op key must start with $: server_name

======================================================================
ERROR: test.test_server_matchup.test_one_known
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_server_matchup.py", line 49, in test_one_known
    assert server_matchup(results[2], "hp") == 1
  File "/home/k/gitroot/logl/logl/post/server_matchup.py", line 38, in server_matchup
    unknown_count = unknowns.count()
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 418, in count
    **command)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/database.py", line 288, in command
    _is_command=True)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/collection.py", line 474, in find_one
    for result in self.find(spec_or_id, *args, **kwargs).limit(-1):
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Query op key must start with $: server_name

======================================================================
ERROR: Test on db where all servers are unknown
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_server_matchup.py", line 59, in test_all_servers_unknown
    assert server_matchup(results[2], "hp") == -1
  File "/home/k/gitroot/logl/logl/post/server_matchup.py", line 38, in server_matchup
    unknown_count = unknowns.count()
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 418, in count
    **command)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/database.py", line 288, in command
    _is_command=True)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/collection.py", line 474, in find_one
    for result in self.find(spec_or_id, *args, **kwargs).limit(-1):
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Query op key must start with $: server_name

======================================================================
ERROR: Test on db where all servers' names
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_server_matchup.py", line 69, in test_all_known
    assert server_matchup(results[2], "hp") == 1
  File "/home/k/gitroot/logl/logl/post/server_matchup.py", line 38, in server_matchup
    unknown_count = unknowns.count()
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 418, in count
    **command)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/database.py", line 288, in command
    _is_command=True)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/collection.py", line 474, in find_one
    for result in self.find(spec_or_id, *args, **kwargs).limit(-1):
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 609, in next
    if len(self.__data) or self._refresh():
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 572, in _refresh
    self.__query_spec(), self.__fields))
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 541, in __send_message
    self.__tz_aware)
  File "/usr/local/lib/python2.7/dist-packages/pymongo-1.11-py2.7-linux-x86_64.egg/pymongo/helpers.py", line 100, in _unpack_response
    error_object["$err"])
OperationFailure: database error: Query op key must start with $: server_name

======================================================================
FAIL: test.test_rs_sync.test_process
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_rs_sync.py", line 46, in test_process
    check_state("Tue Jun 12 13:08:47 [rsSync] replSet syncing to: p'localhost:1234", "localhost:1234")
  File "/home/k/gitroot/logl/test/test_rs_sync.py", line 64, in check_state
    assert doc["info"]["server"] == server
AssertionError: 
-------------------- >> begin captured logging << --------------------
logl.filters.rs_sync: DEBUG: {'date': datetime.datetime(2012, 6, 25, 11, 18, 33, 77271), 'info': {'subtype': 'reSyncing', 'server': 'localhost:27017'}, 'type': 'sync', 'msg': 'Tue Jun 12 13:08:47 [rsSync] replSet syncing to: localhost:27017'}
logl.filters.rs_sync: DEBUG: {'date': datetime.datetime(2012, 6, 25, 11, 18, 33, 77344), 'info': {'subtype': 'reSyncing', 'server': '10.4.3.56:45456'}, 'type': 'sync', 'msg': 'Tue Jun 12 13:08:47 [rsSync] replSet syncing to: 10.4.3.56:45456'}
logl.filters.rs_sync: DEBUG: {'date': datetime.datetime(2012, 6, 25, 11, 18, 33, 77395), 'info': {'subtype': 'reSyncing', 'server': '10.4.3.56:45456'}, 'type': 'sync', 'msg': 'Tue Jun 12 13:08:47 [rsSync] replSet syncing to: 10.4.3.56:45456'}
logl.filters.rs_sync: DEBUG: {'date': datetime.datetime(2012, 6, 25, 11, 18, 33, 77442), 'info': {'subtype': 'reSyncing', 'server': '10.4.3.56:45456'}, 'type': 'sync', 'msg': 'Tue Jun 12 13:08:47 [rsSync] replSet syncing to: 10.4.3.56:45456'}
logl.filters.rs_sync: DEBUG: {'date': datetime.datetime(2012, 6, 25, 11, 18, 33, 77493), 'info': {'subtype': 'reSyncing', 'server': '10.4.3.56:45456'}, 'type': 'sync', 'msg': 'Tue Jun 12 13:08:47 [rsSync] replSet syncing to: 10.4.3.56:45456'}
logl.filters.rs_sync: DEBUG: {'date': datetime.datetime(2012, 6, 25, 11, 18, 33, 77541), 'info': {'subtype': 'reSyncing', 'server': "p'localhost:1234"}, 'type': 'sync', 'msg': "Tue Jun 12 13:08:47 [rsSync] replSet syncing to: p'localhost:1234"}
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 27 tests in 19.177s

FAILED (errors=12, failures=1)
samantharitter commented 12 years ago

They all pass for me now! But not Kaushal. But we're both up-to-date according to git!

kchodorow commented 12 years ago

I'm still getting failures, too:

FFF........S....................
======================================================================
FAIL: Test on an empty db
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 43, in test_clock_skew_none
    assert cursor.count() == 0
AssertionError: 
-------------------- >> begin captured logging << --------------------
logl.post.clock_skew: DEBUG: creating empty clock skew doc
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: DB with entries from one server
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 54, in test_clock_skew_one
    assert cursor.count() == 0
AssertionError: 
-------------------- >> begin captured stdout << ---------------------
In server_clock_skew

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
logl.post.clock_skew: DEBUG: creating empty clock skew doc
logl.post.clock_skew: DEBUG: creating empty clock skew doc
logl.post.clock_skew: INFO: Finding clock skew for Sam - Sam...
logl.post.clock_skew: DEBUG: Skipping identical server
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: Two different servers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/k/gitroot/logl/test/test_clock_skew.py", line 73, in test_clock_skew_two
    assert cursor.count() == 2
AssertionError: 
-------------------- >> begin captured stdout << ---------------------
In server_clock_skew
In server_clock_skew

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
logl.post.clock_skew: DEBUG: creating empty clock skew doc
logl.post.clock_skew: DEBUG: creating empty clock skew doc
logl.post.clock_skew: INFO: Finding clock skew for Sam - Sam...
logl.post.clock_skew: DEBUG: Skipping identical server
logl.post.clock_skew: INFO: Finding clock skew for Sam - Nuni...
logl.post.clock_skew: DEBUG: Detecting clock skew for pair Sam - Nuni
logl.post.clock_skew: DEBUG: 3
logl.post.clock_skew: DEBUG: inserting new weight for td 3 into skews {}
logl.post.clock_skew: DEBUG: 3
logl.post.clock_skew: DEBUG: adding additional weight for td 3 into skews {'3': 3}
logl.post.clock_skew: DEBUG: 3
logl.post.clock_skew: DEBUG: adding additional weight for td 3 into skews {'3': 5}
logl.post.clock_skew: DEBUG: creating empty clock skew doc
logl.post.clock_skew: DEBUG: flipped one
logl.post.clock_skew: INFO: Finding clock skew for Nuni - Sam...
logl.post.clock_skew: DEBUG: Clock skew already found for this server
logl.post.clock_skew: INFO: Finding clock skew for Nuni - Nuni...
logl.post.clock_skew: DEBUG: Skipping identical server
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 32 tests in 22.289s

FAILED (SKIP=1, failures=3)
samantharitter commented 12 years ago

...just kidding.

samantharitter commented 12 years ago

found the bug, should be fixed now

kchodorow commented 12 years ago

Great! Try to keep the build passing before you commit from now on.