Python fails with these 3 errors: ====================================================================== FAIL: test_strftime (test.test_strftime.StrftimeTest.test_strftime) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-3.13.0/work/Python-3.13.0/Lib/test/test_strftime.py", line 65, in test_strftime self.strftest1(now) ~~~~~~~~~~~~~~^^^^^ File "/var/tmp/portage/dev-lang/python-3.13.0/work/Python-3.13.0/Lib/test/test_strftime.py", line 124, in strftest1 self.fail("Conflict for %s (%s): expected %s, but got %s" ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ % (e[0], e[2], e[1], result)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: Conflict for %U (week number of the year (Sun 1st)): expected 45, but got 44 ====================================================================== FAIL: test_timezone (test.test_strptime.StrptimeTests.test_timezone) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-3.13.0/work/Python-3.13.0/Lib/test/test_strptime.py", line 423, in test_timezone self.assertTrue(strp_output[8] == time_tuple[8], ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "timezone check failed; '%s' -> %s != %s" % ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (strf_output, strp_output[8], time_tuple[8])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: False is not true : timezone check failed; 'GMT' -> 0 != 1 ====================================================================== FAIL: test_localtime_timezone (test.test_time.TestPytime.test_localtime_timezone) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-3.13.0/work/Python-3.13.0/Lib/test/test_time.py", line 734, in test_localtime_timezone self.assertEqual(lt.tm_gmtoff, -[time.timezone, time.altzone][lt.tm_isdst]) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: 0 != 3600 Reproducible: Always # ls -l /etc/localtime lrwxrwxrwx 1 root root 35 Nov 6 2021 /etc/localtime -> ../usr/share/zoneinfo/Europe/Dublin # locale LANG=en_US.utf8 LC_CTYPE="en_US.utf8" LC_NUMERIC="en_US.utf8" LC_TIME=en_DK.utf-8 LC_COLLATE="en_US.utf8" LC_MONETARY="en_US.utf8" LC_MESSAGES="en_US.utf8" LC_PAPER="en_US.utf8" LC_NAME="en_US.utf8" LC_ADDRESS="en_US.utf8" LC_TELEPHONE="en_US.utf8" LC_MEASUREMENT="en_US.utf8" LC_IDENTIFICATION="en_US.utf8" LC_ALL=
Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/desktop/plasma/systemd, gcc-13, glibc-2.40-r5, 6.11.4-gentoo-molto x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.11.4-gentoo-molto-x86_64-AMD_Ryzen_7_4700U_with_Radeon_Graphics-with-glibc2.40 KiB Mem: 32229848 total, 4062000 free KiB Swap: 8388604 total, 8351484 free Timestamp of repository gentoo: Wed, 06 Nov 2024 08:33:40 +0000 Head commit of repository gentoo: c623efab6b218a4e426786da66229e0c776f2a2f Timestamp of repository guru: Tue, 05 Nov 2024 11:03:43 +0000 Head commit of repository guru: f2f5eaf00a7ab1c5e6d1d75b34d3b0279b116208 sh bash 5.2_p37 ld GNU ld (Gentoo 2.42 p6) 2.42.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.30.5::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.5.2::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.12.7_p1::gentoo dev-lang/rust: 1.82.0::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/sandbox: 2.39::gentoo sys-apps/systemd: 256.7::gentoo sys-devel/binutils: 2.42-r2::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 18.1.8::gentoo sys-devel/gcc: 13.3.1_p20241025::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 18.1.8::gentoo, 19.1.3::gentoo sys-devel/llvm: 18.1.8-r4::gentoo, 19.1.3::gentoo sys-kernel/linux-headers: 6.11::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r5::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 volatile: False sync-git-verify-commit-signature: yes guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False moltonel location: /home/work/c/ebuilds masters: gentoo volatile: True ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE @FREE linux-fw-redistributable no-source-code AVASYS PGP-2 JSON no-source-code bonnie unRAR RSAREF MicroChip-SDCC freedist NVIDIA-r1 intel-ucode bh-luxi qlogic-fibre-channel-firmware shmux Mellanox-AS-IS Atmel ipw2100-fw ipw2200-fw NOSA ISSL LSI-tw_cli Broadcom linux-fw-redistributable NVIDIA-r2 LIBGLOSS CDDL-Schily powell Emacs Snd regexp-UofT wm2 imagemagick libmng photopc NCSA-AMD xbatt AMPAS Toyoda TeX ZSH boehm-gc lsof netcat SMAIL CAOSL Mini-XML NPSL-0.95 TextMate-bundle LPPL-1.3 xboing torque-2.5 scanlogd Sendmail flexmock File-MMagic IDPL alternate Info-ZIP rc unicode Crypt-IDEA libpng2 libtiff sash FLEX gsm sunpro Unicode_Fonts_for_Ancient_Scripts buddy tm-align tcp_wrappers_license CPL-0.5 LLGPL-2.1 otter TeX-other-free rdisc UCAR-Unidata tablelist noweb CDDL-1.1 FastCGI Spencer-99 xtrs perforce openafs-krb5-a JDOM JOVE icu mpich2 tcltk dom4j rwpng Sendmail-Open-Source gd BSD-1 Ispell DES w3m ipadic LPPL-1.0 Time-Format pngnq pngcrush DUMB-0.9.3 the-Click-license curl FVWM bufexplorer.vim coldspringharbor ngrep Old-MIT Time-modules URT MIT-fpdf matplotlib BSD-with-attribution PCRE JasPer2.0 VTK Allegro BZIP2 ErlPL-1.1 BSD-with-disclosure XC HTML-Tidy iASL RtMidi docbook sdlsasteroids Flashpix BSD-2-with-patent RSA NCSA-HDF FLTK psutils canfep LambdaMOO Princeton mm Openwall Khronos-CLHPP libpng NEWLIB Sympow-BSD ElementTree freetts AIFFWriter.m Interbase-1.0 PHP-2.02 MIT-with-advertising feh trio Xdebug SSLeay BEER-WARE repoze par symlinks inner-net minpack Unicode-DFS-2016 IPAfont ZLIB MIT nethack AGPL-3 EPL-2.0 0BSD APL-1.0 ECL-2.0 OFL-1.1 CPL-1.0 LGPL-2.1 ISC LGPL-2+ MirOS PHP-3 POSTGRESQL BSD-2 OSL-3.0 Artistic UPL-1.0 CPAL-1.0 BSD GPL-1+ Apache-1.1 GPL-2 CDDL HPND Unlicense UoI-NCSA LGPL-3 W3C Ms-RL Sleepycat EUPL-1.2 EPL-1.0 LPL-1.02 QPL-1.0 CNRI APSL-2 LPPL-1.3c MPL-1.0 PHP-3.01 IBM Ms-PL OSL-2.1 LGPL-2.1+ wxWinLL-3 LBNLBSD MPL-2.0 Unicode-3.0 LGPL-2 MPL-1.1 LGPL-3+ MIT-0 AFL-3.0 Boost-1.0 GPL-3 AGPL-3+ PSF-2 ZPL GPL-3+ Artistic-2 Apache-2.0 EUPL-1.1 BlueOak-1.0.0 GPL-1 GPL-2+ EPL-2.0 CPL-1.0 Zend-2.0 AFL-2.1 Unicode-DFS-2016 IJG ZLIB MIT Clear-BSD AGPL-3 public-domain GPL-2+-with-openssl-exception ECL-2.0 Clarified-Artistic Transmission-OpenSSL-exception LGPL-2.1 ISC CC0-1.0 LGPL-2+ metapackage LGPL-2-with-linking-exception OPENLDAP BSD-2 GPL-2+-with-Pyinstaller-Bootloader-exception FTL GPL-3-with-openssl-exception GPL-2+-with-eCos-exception-2 BSD GPL-1+ PYTHON GPL-2 UPL-1.0 libstdc++ HPND Ruby-BSD Unlicense LGPL-3 UoI-NCSA W3C GPL-2-with-MySQL-FLOSS-exception GPL-2-with-font-exception qwt SGI-B-2.0 FSFAP Sleepycat wxWinLL-3.1 LGPL-2.1+ LGPL-3-with-linking-exception GPL-3+-with-autoconf-exception MPL-2.0 LGPL-2 GPL-2-with-linking-exception LGPL-3+ WTFPL-2 CeCILL-2 PSF-2.4 UPX-exception GPL-2-with-classpath-exception vim LGPL-2.1-with-linking-exception Boost-1.0 GPL-3+-with-font-exception GPL-3 AGPL-3+ GPL-3-with-font-exception PSF-2 gcc-runtime-library-exception-3.1 ZPL GPL-3+ Artistic-2 Apache-2.0 Apache-2.0-with-LLVM-exceptions libgcc tanuki-community GPL-1 GPL-3+-with-openssl-exception Ruby Nokia-Qt-LGPL-Exception-1.1 GPL-2+ OSL-3.0 LPPL-1.2 CPAL-1.0 Apache-1.1 CDDL Ms-RL EUPL-1.2 EPL-1.0 LPL-1.02 QPL-1.0 CeCILL-C CNRI APSL-2 MPL-1.0 Apache-1.0 IBM OSL-2.0 Ms-PL OSL-2.1 PHP-3.01 CeCILL-B OSL-1.1 MPL-1.1 openssl gnuplot AFL-3.0 NPL-1.1 LPPL-1.3a EUPL-1.1 BSD-4 FraunhoferFDK FDL-1.3 FDL-1.3+ OAL-1.0.1 Free-Art-1.2 ODC-By-1.0 Free-Art-1.3 FDL-1.2+ MirOS FDL-1.2 CC-BY-3.0 CC-BY-SA-1.0 CC-BY-2.5 CC-BY-2.0 CC-BY-SA-2.0 CC0-1.0 CC-BY-SA-3.0 CC-BY-SA-4.0 CC-BY-SA-2.5 CC-BY-4.0 FDL-1.1 FDL-1.1+ man-pages-posix-2013 Texinfo-manual BitstreamVera UbuntuFontLicense-1.0 quake1-textures CC-BY-SA-1.0 CC-PD man-pages vlgothic BAEKMUK LDP-1 wxWinFDL-3 MaxMind2 myspell-en_CA-KevinAtkinson CC-BY-1.0 LDP-1a CC-SA-1.0 mplus-fonts Arphic FDL-1.3 IPAfont OFL-1.1 Free-Art-1.3 OFL-1.0 CC-BY-SA-3.0 OPL CC-BY-3.0 GPL-1+ GPL-2 CC-BY-SA-2.0 FDL-1.3+ Free-Art-1.2 FDL-1.2+ FDL-1.2 FDL-1.1+ CC-BY-4.0 CC-BY-2.5 GPL-3 GPL-3+ CC-BY-2.0 GPL-1 CC-BY-SA-4.0 FDL-1.1 CC-BY-SA-2.5 GPL-2+" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d" CXXFLAGS="-O3 -pipe -march=native" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O3 -pipe -march=native" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O3 -pipe -march=native" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/usr/share/locale/ru /usr/share/locale/de /usr/share/locale/es /usr/share/locale/sv /usr/share/locale/pl /usr/share/locale/it /usr/share/locale/zh* /usr/share/locale/tr /usr/share/locale/ca* /usr/share/locale/pt*" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j8" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RUSTFLAGS="-Copt-level=3 -Ctarget-cpu=znver2" SHELL="/bin/bash" USE="X a52 aac acl acpi activities alsa amd64 bash-completion bluetooth branding brotli btrfs bzip2 cairo cdda cdr cet clang crypt cups dbus declarative default-lld dri dts dvdr encode exif flac gdbm gif gpg gpm gtk gui hwaccel iconv icu ipv6 iwd jit jpeg kde kf6compat kwallet lapack lcms libnotify libtirpc lspclient lto mad mng mp3 mp4 mpeg multilib native-extensions ncurses networkmanager nginx nls ogg opengl openh264 openmp opus pam pango pcre pdf pgo pipewire plasma png policykit ppds print pulseaudio qml qrcode qt5 qt6 readline rust screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg systemd test-rust theora threads tiff tree-sitter truetype udev udisks unicode upower usb vaapi vdpau verify-sig vorbis vpx vulkan wasm wayland webp widgets wifi x264 xattr xcb xft xml xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="AMDGPU BPF WebAssembly X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-lang/python-3.12.7_p1::gentoo was built with the following: USE="bluetooth ensurepip gdbm ncurses pgo readline sqlite ssl verify-sig -build -debug -examples -libedit -test -tk -valgrind" ABI_X86="(64)" CFLAGS="-O3 -pipe -march=native -fwrapv" CXXFLAGS="-O3 -pipe -march=native -fwrapv"
Created attachment 907997 [details] build.log
Anybody reproduced this ? I see it on two machines. USE=-pgo works around the issue, but just because it disables unittests (the fact that USE=pgo enables unittest is arguably an issue in itself ?). FEATURES=test USE="-pgo test" fails as described above.
> USE=-pgo works around the issue, but just because it disables unittests (the > fact that USE=pgo enables unittest is arguably an issue in itself ?). What would they do instead? It has to train on _something_. Note that the change in 3.13 is that upstream made it stop ignoring any test failures for the training phase because they found it was failing basically every test in CI. That said, see bug 942956.
> It has to train on _something_. Ah makes perfect sense, thanks. Making pgo tests non-fatal makes sense, especially if they're flaky. That won't solve this bug though, those tests also fail outside of PGO. Looking at my 3.12.8 build log, those tests were already failing.
Closing since bug 942956 is fixed.
Could it be related to https://github.com/python/cpython/issues/128104 and friends somehow?