Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409329 - =dev-python/twisted-12.0.0: fails twisted.test.test_log.FileObserverTestCase.test_timeFormatting in some timezones
Summary: =dev-python/twisted-12.0.0: fails twisted.test.test_log.FileObserverTestCase....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: http://twistedmatrix.com/trac/ticket/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-22 15:13 UTC by Mikle Kolyada (RETIRED)
Modified: 2012-04-13 15:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,565.17 KB, text/plain)
2012-03-22 15:16 UTC, Mikle Kolyada (RETIRED)
Details
correct build.log (build.log,591.55 KB, text/plain)
2012-03-22 15:35 UTC, Mikle Kolyada (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2012-03-22 15:13:56 UTC
$subject

Reproducible: Always




Portage 2.1.10.44 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2 i686)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-i686-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 22 Mar 2012 14:00:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"                                                                                    
LINGUAS="ru"                                                                                                                              
MAKEOPTS="-j3"                                                                                                                            
PKGDIR="/usr/portage/packages"                                                                                                            
PORTAGE_CONFIGROOT="/"                                                                                                                    
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                      
PORTAGE_TMPDIR="/var/tmp"                                                                                                                 
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apache2 apng berkdb bzip2 cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dvd extras fortran gdbm gpm gudev iconv icu ipv6 kde libkms modules mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre png policykit pppd python qt3support qt4 readline session sql ssl svg sysfs tcpd unicode vorbis webkit x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2012-03-22 15:16:11 UTC
Created attachment 306323 [details]
build.log
Comment 2 Patrick Lauer gentoo-dev 2012-03-22 15:18:46 UTC
exceptions.OSError: out of pty devices

is that a chroot without /dev/pts bindmounted in, maybe?
That error points at a configuration issue :)
Comment 3 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2012-03-22 15:34:08 UTC
(In reply to comment #2)
> exceptions.OSError: out of pty devices
> 
> is that a chroot without /dev/pts bindmounted in, maybe?
> That error points at a configuration issue :)

fix it. But fails tests anyway
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2012-03-22 15:35:02 UTC
Created attachment 306325 [details]
correct build.log
Comment 5 Patrick Lauer gentoo-dev 2012-03-22 15:39:18 UTC
[FAIL]
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/twisted-12.0.0/temp/tests/usr/lib/python2.7/site-packages/twisted/test/test_log.py", line 400, in test_timeFormatting
    self.assertEqual(self.flo.formatTime(when), '2001-02-02 23:05:06-0500')
  File "/var/tmp/portage/dev-python/twisted-12.0.0/temp/tests/usr/lib/python2.7/site-packages/twisted/trial/unittest.py", line 270, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = '2001-02-03 00:05:06-0500'
b = '2001-02-02 23:05:06-0500'

That looks like a timezone issue ... again ... why ... argh.

Have you set a timezone? If yes which one?
(what does "date" claim?)
Comment 6 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2012-03-22 15:50:30 UTC
(In reply to comment #5)
> [FAIL]
> Traceback (most recent call last):
>   File
> "/var/tmp/portage/dev-python/twisted-12.0.0/temp/tests/usr/lib/python2.7/
> site-packages/twisted/test/test_log.py", line 400, in test_timeFormatting
>     self.assertEqual(self.flo.formatTime(when), '2001-02-02 23:05:06-0500')
>   File
> "/var/tmp/portage/dev-python/twisted-12.0.0/temp/tests/usr/lib/python2.7/
> site-packages/twisted/trial/unittest.py", line 270, in assertEqual
>     % (msg, pformat(first), pformat(second)))
> twisted.trial.unittest.FailTest: not equal:
> a = '2001-02-03 00:05:06-0500'
> b = '2001-02-02 23:05:06-0500'
> 
> That looks like a timezone issue ... again ... why ... argh.
> 
> Have you set a timezone? If yes which one?
> (what does "date" claim?)

i use Europe/Moscow timezone
Comment 7 Marien Zwart (RETIRED) gentoo-dev 2012-03-29 13:22:04 UTC
One issue per bug, please. I'm morphing this bug to be about twisted.test.test_log.FileObserverTestCase.test_timeFormatting failing.

This is an upstream bug, see http://twistedmatrix.com/trac/ticket/5583 . It is in the test itself: the code under test is fine. It also only shows up in a small number of timezones. If upstream fixes it we should patch twisted in Gentoo, but until then ignoring this test failure is safe.

Please open a new bug for any other test failures.
Comment 8 Marien Zwart (RETIRED) gentoo-dev 2012-04-13 15:39:47 UTC
Fixed in CVS, the tests should pass if you sync and re-emerge in an hour or so. Thanks for reporting!