[Dev] Intermittent unit test failures

Ted Leung twl at osafoundation.org
Mon Oct 4 10:46:16 PDT 2004


On Oct 4, 2004, at 10:41 AM, Donn Denman wrote:

> Humm, the first one looks like Ted, the second looks like a  
> collaboration between me an Brian.

The first one is me -- sometimes the random data generated is empty.   
I've killed most of the problem but have one issue left.  The second  
one is exercised by some debug logging code, but is rooted in the Me  
contact, I believe.  For now I commented out the log code.

Ted

>
> I'll go fix the second one now.
>
> - Donn
>
> On Oct 2, 2004, at 12:08 AM, Heikki Toivonen wrote:
>
>> It seems like we have randomly failing unit tests, which started  
>> happening today (before the new external & wxPython updates). I'd  
>> suspect some of these checkins:  
>> http://bonsai.osafoundation.org/cvsquery.cgi? 
>> treeid=default&module=all&branch=HEAD&branchtype=match&dir=%2Fchandler 
>> &file=&filetype=match&who=&whotype=match&sortby=Date&hours=16&date=exp 
>> licit&mindate=2004-10-01+7%3A15%3A00&maxdate=2004-10 
>> -01+21%3A00%3A00&cvsroot=%2Fusr%2Flocal%2Fcvsrep
>>
>> Unit test errors so far:
>>
>>
>> 724           [ TestNotification.py ]: Testing  
>> /home/builder/tinderbuild/chandler/repository/query/tests/ 
>> TestNotification.py
>> 725           Executing:  
>> ´/home/builder/tinderbuild/chandler/debug/bin/python_d´ ´python_d´  
>> ´TestNotification.py´ ´-v´
>> 726           Current directory:  
>> /home/builder/tinderbuild/chandler/repository/query/tests
>> 727           - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
>> - - - - - - - - start -
>> 728           Test query notification ... ok
>> 729           Test notification of union query ... ERROR
>> 730
>> 731  
>> ======================================================================
>> 732           ERROR: Test notification of union query
>> 733  
>> ----------------------------------------------------------------------
>> 734           Traceback (most recent call last):
>> 735             File "TestNotification.py", line 127, in  
>> testNotifyUnion
>> 736               origName = three.contactName.firstName
>> 737           UnboundLocalError: local variable ´three´ referenced  
>> before assignment
>> 738
>> 739  
>> ----------------------------------------------------------------------
>> 740           Ran 2 tests in 54.632s
>> 741
>> 742           FAILED (errors=1)
>> 743           handle exited
>> 744           handle entered
>> 745           handle exited
>> 746           handle entered
>> 747           handle exited
>> 748           handle entered
>> 749           [897801 refs]
>> 750           - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
>> - - - - - - - - end - -
>> 751           [ TestNotification.py ] ***ERROR*** : Exit code = 1
>> 752   NEXT    [ Tests ] ***ERROR*** : Failed:  
>> /home/builder/tinderbuild/chandler/repository/query/tests/ 
>> TestNotification.py
>>
>>
>> and:
>>
>>
>> 347           [ TestItemCollection.py ]: Testing  
>> /home/builder/tinderbuild/chandler/parcels/osaf/contentmodel/tests/ 
>> TestItemCollection.py
>> 348           Executing:  
>> ´C:\\cygwin\\home\\builder\\tinderbuild/chandler/debug/bin/ 
>> python_d.exe´ ´python_d.exe´ ´TestItemCollection.py´ ´-v´
>> 349           Current directory:  
>> /home/builder/tinderbuild/chandler/parcels/osaf/contentmodel/tests
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
>> - start -
>> 351           Rule/ItemCollection: for i in  
>> "//parcels/osaf/contentmodel/calendar/CalendarEvent" where True,  
>> dc705d4c-140b-11d9-d4fa-0007e96d59aa
>> 352           testCollectionEvents (__main__.TestItemCollection) ...  
>> ok
>> 353           testRule (__main__.TestItemCollection) ... ERROR
>> 354
>> 355  
>> ======================================================================
>> 356           ERROR: testRule (__main__.TestItemCollection)
>> 357  
>> ----------------------------------------------------------------------
>> 358           Traceback (most recent call last):
>> 359             File "TestItemCollection.py", line 76, in testRule
>> 360               self.rep.commit()
>> 361             File  
>> "C: 
>> \cygwin\home\builder\tinderbuild\chandler\repository\persistence\Repos 
>> itory.py", line 164, in commit
>> 362               self.view.commit()
>> 363             File  
>> "C: 
>> \cygwin\home\builder\tinderbuild\chandler\repository\persistence\XMLRe 
>> positoryView.py", line 284, in commit
>> 364               histNotifications.dispatchHistory(self)
>> 365             File  
>> "C: 
>> \cygwin\home\builder\tinderbuild\chandler\repository\persistence\Repos 
>> itory.py", line 542, in dispatchHistory
>> 366               callback(view, changes, ´History´)
>> 367             File  
>> "C: 
>> \cygwin\home\builder\tinderbuild\chandler\repository\query\Query.py",  
>> line 121, in queryCallback
>> 368               log.debug("RepoQuery.queryCallback %s:%s:%s" % (i,  
>> i.itsKind, self._kind))
>> 369             File  
>> "C: 
>> \cygwin\home\builder\tinderbuild\chandler\parcels\osaf\contentmodel\ma 
>> il\Mail.py", line 491, in __str__
>> 370               if self.emailAddress == self._getTheMeAddress():
>> 371             File  
>> "C: 
>> \cygwin\home\builder\tinderbuild\chandler\parcels\osaf\contentmodel\ma 
>> il\Mail.py", line 654, in _getTheMeAddress
>> 372               account = imap.getIMAPAccount ()
>> 373             File  
>> "C: 
>> \cygwin\home\builder\tinderbuild\chandler\parcels\osaf\mail\imap.py",  
>> line 586, in getIMAPAccount
>> 374               NotifyUIAsync (message, alert=True)
>> 375             File  
>> "C: 
>> \cygwin\home\builder\tinderbuild\chandler\parcels\osaf\mail\imap.py",  
>> line 42, in NotifyUIAsync
>> 376 Globals.wxApplication.CallItemMethodAsync(Globals.mainView,
>> 377           AttributeError: ´NoneType´ object has no attribute  
>> ´CallItemMethodAsync´
>> 378
>> 379  
>> ----------------------------------------------------------------------
>> 380           Ran 2 tests in 63.938s
>> 381
>> 382           FAILED (errors=1)
>> 383           [801801 refs]
>> 384           - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
>> - - - - - - - - end - -
>> 385           [ TestItemCollection.py ] ***ERROR*** : Exit code = 1
>> 386   NEXT    [ Tests ] ***ERROR*** : Failed:  
>> /home/builder/tinderbuild/chandler/parcels/osaf/contentmodel/tests/ 
>> TestItemCollection.py
>>
>>
>> -- 
>>   Heikki Toivonen
>>
>>
>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>>
>> Open Source Applications Foundation "Dev" mailing list
>> http://lists.osafoundation.org/mailman/listinfo/dev
>
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Open Source Applications Foundation "Dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/dev
>
----
Ted Leung                 Open Source Applications Foundation (OSAF)
PGP Fingerprint: 1003 7870 251F FA71 A59A  CEE3 BEBA 2B87 F5FC 4B42





More information about the Dev mailing list