Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646866 - dev-ruby/activesupport: test failure: test_iso8601_output_and_reparsing
Summary: dev-ruby/activesupport: test failure: test_iso8601_output_and_reparsing
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
: 693710 (view as bug list)
Depends on:
Blocks: 760609
  Show dependency tree
 
Reported: 2018-02-07 04:19 UTC by Thomas Deutschmann
Modified: 2021-10-02 23:39 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann gentoo-dev 2018-02-07 04:19:31 UTC
>   1) Error:
> DurationTest#test_iso8601_output_and_reparsing:
> ArgumentError: invalid date
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/lib/active_support/core_ext/date/calculations.rb:113:in `>>'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/lib/active_support/core_ext/date/calculations.rb:113:in `advance'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/lib/active_support/core_ext/time/calculations.rb:165:in `advance'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/lib/active_support/duration.rb:404:in `block in sum'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/lib/active_support/duration.rb:395:in `each'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/lib/active_support/duration.rb:395:in `inject'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/lib/active_support/duration.rb:395:in `sum'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/lib/active_support/duration.rb:357:in `since'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/lib/active_support/core_ext/time/calculations.rb:255:in `plus_with_duration'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/test/core_ext/duration_test.rb:589:in `block in test_iso8601_output_and_reparsing'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/test/core_ext/duration_test.rb:587:in `each'
>     /var/tmp/portage/dev-ruby/activesupport-5.1.4/work/ruby22/rails-5.1.4/activesupport/test/core_ext/duration_test.rb:587:in `test_iso8601_output_and_reparsing'
> 
> 3604 runs, 760415 assertions, 0 failures, 1 errors, 213 skips
> 
> You have skipped tests. Run with --verbose for details.
> rake aborted!
> Command failed with status (1): [ruby -w -I"lib:test" -I"/usr/lib/ruby/gems/2.2.0/gems/rake-10.5.0/lib" "/usr/lib/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb" "test/**/*_test.rb" ]
> 
> Tasks: TOP => test
> (See full trace by running task with --trace)
>  * ERROR: dev-ruby/activesupport-5.1.4::gentoo failed (test phase):
>  *   tests failed
> 


Portage 2.3.19 (python 3.5.4-final-0, default/linux/x86/17.0, gcc-6.4.0, glibc-2.25-r9, 4.9.76-gentoo-r1 i686)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-i686-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:     3108324 total,   1511580 free
KiB Swap:     488276 total,    488276 free
Timestamp of repository gentoo: Tue, 06 Feb 2018 11:26:08 +0000
Head commit of repository gentoo: e0f89127799128c0285f6f5ca243c879f3378b29

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

ABI="x86"
ABI_X86="32"
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ARCH="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m"
CHOST="i686-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CPU_FLAGS_X86="mmx mmxext sse sse2"
CXXFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m"
DEFAULT_ABI="x86"
EDITOR="/usr/bin/mcedit"
ELIBC="glibc"
EPREFIX=""
EROOT="/"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GCC_SPECS=""
GRUB_PLATFORMS="efi-32 pc"
GSETTINGS_BACKEND="dconf"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/6.4.0/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.29.1/info:/usr/share/info:/usr/share/info/emacs-25"
INPUT_DEVICES="libinput keyboard mouse"
IUSE_IMPLICIT="abi_x86_32 prefix prefix-chain prefix-guest"
KERNEL="linux"
L10N="en en-US de de-DE"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_MESSAGES="C"
LC_PAPER="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LIBDIR_x86="lib"
LINGUAS="en de"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="--jobs 5 --load-average 7.95"
MANPAGER="manpager"
MULTILIB_ABIS="x86"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/usr/portage"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/i686-pc-linux-gnu/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
PHP_TARGETS="php5-6 php7-0"
POSTGRES_TARGETS="postgres9_5"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_5"
PYTHON_TARGETS="python2_7 python3_5"
QT_GRAPHICSSYSTEM="raster"
ROOT="/"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/6.4.0:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin"
RUBY_TARGETS="ruby22 ruby23"
SHELL="/bin/bash"
SHLVL="2"
SSH_TTY="/dev/pts/0"
TERM="screen"
TMUX="/tmp/tmux-0/default,4838,0"
TMUX_PANE="%0"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
USER="root"
USERLAND="GNU"
VIDEO_CARDS="vmware"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
Comment 1 Hans de Graaff gentoo-dev 2018-05-05 05:24:42 UTC
I can't reproduce this. Does this still happen with activesupport 5.1.6 or activesupport 5.2.0?
Comment 2 Thomas Deutschmann gentoo-dev 2019-09-07 22:41:28 UTC
*** Bug 693710 has been marked as a duplicate of this bug. ***
Comment 3 Thomas Deutschmann gentoo-dev 2019-09-07 22:42:22 UTC
Still happening with =dev-ruby/activesupport-5.2.3 and =dev-ruby/activesupport-6.0.0.
Comment 4 Rolf Eike Beer archtester 2020-04-12 17:39:04 UTC
I also see it in 6.0.2.1 on hppa:

  3) Error:
DurationTest#test_iso8601_output_and_reparsing:
ArgumentError: invalid date
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/lib/active_support/core_ext/date/calculations.rb:115:in `>>'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/lib/active_support/core_ext/date/calculations.rb:115:in `advance'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/lib/active_support/core_ext/time/calculations.rb:173:in `advance'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/lib/active_support/duration.rb:413:in `block in sum'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/lib/active_support/duration.rb:404:in `each'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/lib/active_support/duration.rb:404:in `inject'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/lib/active_support/duration.rb:404:in `sum'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/lib/active_support/duration.rb:361:in `since'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/lib/active_support/core_ext/time/calculations.rb:262:in `plus_with_duration'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/test/core_ext/duration_test.rb:606:in `block in test_iso8601_output_and_reparsing'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/test/core_ext/duration_test.rb:604:in `each'
    /var/tmp/portage/dev-ruby/activesupport-6.0.2.1/work/ruby25/rails-6.0.2.1/activesupport/test/core_ext/duration_test.rb:604:in `test_iso8601_output_and_reparsing'
Comment 5 Hans de Graaff gentoo-dev 2020-07-21 08:47:22 UTC
I had another look at this issue but I can't reproduce it on amd64 and all the code involved appears to be ruby, so I'm not sure why this fails. This would require further debugging on a system where this fails.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-02 23:39:23 UTC
Some poking appeared to happen upstream in the past:
https://github.com/rails/rails/issues/25682

And a bit later on:
https://github.com/rails/rails/issues/28463