[Buildbot-commits] [Buildbot] #2522: test_changes_mail_CVSMaildirSource fails in some timezones

Buildbot trac trac at buildbot.net
Mon Jul 1 09:02:21 UTC 2013


#2522: test_changes_mail_CVSMaildirSource fails in some timezones
----------------------+-----------------------
Reporter:  rutsky     |      Owner:
    Type:  undecided  |     Status:  new
Priority:  major      |  Milestone:  undecided
 Version:  master     |   Keywords:
----------------------+-----------------------
 Some of CVSMaildirSource tests fails in few timezones:

 {{{
 $ TZ=Europe/Moscow trial
 buildbot.test.unit.test_changes_mail_CVSMaildirSource
 buildbot.test.unit.test_changes_mail_CVSMaildirSource
   TestCVSMaildirSource
     test_CVSMaildirSource_create_change_from_cvs1_11msg ...
 [FAIL]
     test_CVSMaildirSource_create_change_from_cvs1_12_with_no_path ...
 [OK]
     test_CVSMaildirSource_create_change_from_cvs1_12msg ...
 [FAIL]
     test_CVSMaildirSource_create_change_with_bad_cvsmode ...
 [OK]
     test_CVSMaildirSource_create_change_with_branch ...
 [OK]
     test_CVSMaildirSource_create_change_with_category ...
 [OK]
     test_CVSMaildirSource_create_change_with_no_comment ...
 [OK]
     test_CVSMaildirSource_create_change_with_no_files ...
 [OK]
     test_CVSMaildirSource_create_change_with_no_project ...
 [OK]
     test_CVSMaildirSource_create_change_with_no_repository ...
 [OK]
     test_CVSMaildirSource_create_change_with_property ...
 [OK]

 ===============================================================================
 [FAIL]
 Traceback (most recent call last):
   File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
 packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
 line 138, in maybeDeferred
     result = f(*args, **kw)
   File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
 packages/Twisted-12.3.0-py2.7-linux-
 x86_64.egg/twisted/internet/_utilspy3.py", line 41, in
 runWithWarningsSuppressed
     reraise(exc_info[1], exc_info[2])
   File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
 packages/Twisted-12.3.0-py2.7-linux-
 x86_64.egg/twisted/internet/_utilspy3.py", line 37, in
 runWithWarningsSuppressed
     result = f(*a, **kw)
   File
 "/home/bob/stuff/buildbot/git/master/buildbot/test/unit/test_changes_mail_CVSMaildirSource.py",
 line 87, in test_CVSMaildirSource_create_change_from_cvs1_11msg
     self.assertEqual(chdict['revision'], '2010-08-07 11:11:49')
   File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
 packages/Twisted-12.3.0-py2.7-linux-
 x86_64.egg/twisted/trial/_synctest.py", line 356, in assertEqual
     % (msg, pformat(first), pformat(second)))
 twisted.trial.unittest.FailTest: not equal:
 a = '2010-08-07 12:11:49'
 b = '2010-08-07 11:11:49'


 buildbot.test.unit.test_changes_mail_CVSMaildirSource.TestCVSMaildirSource.test_CVSMaildirSource_create_change_from_cvs1_11msg
 ===============================================================================
 [FAIL]
 Traceback (most recent call last):
   File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
 packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
 line 138, in maybeDeferred
     result = f(*args, **kw)
   File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
 packages/Twisted-12.3.0-py2.7-linux-
 x86_64.egg/twisted/internet/_utilspy3.py", line 41, in
 runWithWarningsSuppressed
     reraise(exc_info[1], exc_info[2])
   File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
 packages/Twisted-12.3.0-py2.7-linux-
 x86_64.egg/twisted/internet/_utilspy3.py", line 37, in
 runWithWarningsSuppressed
     result = f(*a, **kw)
   File
 "/home/bob/stuff/buildbot/git/master/buildbot/test/unit/test_changes_mail_CVSMaildirSource.py",
 line 110, in test_CVSMaildirSource_create_change_from_cvs1_12msg
     self.assertEqual(chdict['revision'], '2010-08-11 04:56:44')
   File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
 packages/Twisted-12.3.0-py2.7-linux-
 x86_64.egg/twisted/trial/_synctest.py", line 356, in assertEqual
     % (msg, pformat(first), pformat(second)))
 twisted.trial.unittest.FailTest: not equal:
 a = '2010-08-11 05:56:44'
 b = '2010-08-11 04:56:44'


 buildbot.test.unit.test_changes_mail_CVSMaildirSource.TestCVSMaildirSource.test_CVSMaildirSource_create_change_from_cvs1_12msg
 -------------------------------------------------------------------------------
 Ran 11 tests in 0.017s

 FAILED (failures=2, successes=9)
 }}}

 My guess is this is somehow related to Daylight Saving Time.

 I tested timezones available in my system (Ubuntu 12.04) and here is the
 list of zones in which tests fails:

 {{{
 $ for tz in `find /usr/share/zoneinfo/posix/ -exec bash -c 'T={}; echo
 ${T#/usr/share/zoneinfo/posix/}' \;`; do TZ=$tz trial
 buildbot.test.unit.test_changes_mail_CVSMaildirSource > /dev/null || echo
 $tz; done
 Atlantic/Stanley
 W-SU
 Europe/Volgograd
 Europe/Kaliningrad
 Europe/Moscow
 Europe/Samara
 Europe/Minsk
 America/Argentina/San_Luis
 Pacific/Fakaofo
 Pacific/Apia
 Asia/Krasnoyarsk
 Asia/Omsk
 Asia/Magadan
 Asia/Sakhalin
 Asia/Yekaterinburg
 Asia/Novosibirsk
 Asia/Anadyr
 Asia/Novokuznetsk
 Asia/Vladivostok
 Asia/Irkutsk
 Asia/Kamchatka
 Asia/Yakutsk
 }}}

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2522>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list