Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 709834 - dev-python/libtmux-0.8.2-r1: multiple test failures
Summary: dev-python/libtmux-0.8.2-r1: multiple test failures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 709500
  Show dependency tree
 
Reported: 2020-02-16 18:38 UTC by Thomas Deutschmann (RETIRED)
Modified: 2020-04-28 13:19 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,18.61 KB, text/plain)
2020-02-16 18:38 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2020-02-16 18:38:55 UTC
Created attachment 614048 [details]
build.log

> ======================================================= FAILURES =======================================================
> _______________________________________________ test_show_option_unknown _______________________________________________
> 
> session = Session($1 libtmux_h3of1c0u)
> 
>     def test_show_option_unknown(session):
>         """Session.show_option raises InvalidOption for invalid option."""
>         with pytest.raises(exc.InvalidOption):
> >           session.show_option('moooz')
> 
> tests/test_session.py:136: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> ../libtmux-0.8.2-python3_6/lib/libtmux/session.py:500: in show_option
>     handle_option_error(cmd.stderr[0])
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> error = 'unknown option: moooz'
> 
>     def handle_option_error(error):
>         """Raises exception if error in option command found.
>     
>         Purpose: As of tmux 2.4, there are now 3 different types of option errors:
>     
>         - unknown option
>         - invalid option
>         - ambiguous option
>     
>         Before 2.4, unknown option was the user.
>     
>         All errors raised will have the base error of :exc:`exc.OptionError`. So to
>         catch any option error, use ``except exc.OptionError``.
>     
>         Parameters
>         ----------
>         error : str
>             Error response from subprocess call.
>     
>         Raises
>         ------
>         :exc:`exc.OptionError`, :exc:`exc.UnknownOption`, :exc:`exc.InvalidOption`,
>         :exc:`exc.AmbiguousOption`
>         """
>         if 'unknown option' in error:
> >           raise exc.UnknownOption(error)
> E           libtmux.exc.UnknownOption: unknown option: moooz
> 
> ../libtmux-0.8.2-python3_6/lib/libtmux/common.py:660: UnknownOption
> ___________________________________________ test_show_window_option_unknown ____________________________________________
> 
> session = Session($1 libtmux_x8axf858)
> 
>     def test_show_window_option_unknown(session):
>         """Window.show_window_option raises InvalidOption for bad option key."""
>         window = session.new_window(window_name='test_window')
>     
>         with pytest.raises(exc.InvalidOption):
> >           window.show_window_option('moooz')
> 
> tests/test_window.py:217: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> ../libtmux-0.8.2-python3_6/lib/libtmux/window.py:264: in show_window_option
>     handle_option_error(cmd.stderr[0])
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> error = 'unknown option: moooz'
> 
>     def handle_option_error(error):
>         """Raises exception if error in option command found.
>     
>         Purpose: As of tmux 2.4, there are now 3 different types of option errors:
>     
>         - unknown option
>         - invalid option
>         - ambiguous option
>     
>         Before 2.4, unknown option was the user.
>     
>         All errors raised will have the base error of :exc:`exc.OptionError`. So to
>         catch any option error, use ``except exc.OptionError``.
>     
>         Parameters
>         ----------
>         error : str
>             Error response from subprocess call.
>     
>         Raises
>         ------
>         :exc:`exc.OptionError`, :exc:`exc.UnknownOption`, :exc:`exc.InvalidOption`,
>         :exc:`exc.AmbiguousOption`
>         """
>         if 'unknown option' in error:
> >           raise exc.UnknownOption(error)
> E           libtmux.exc.UnknownOption: unknown option: moooz
> 
> ../libtmux-0.8.2-python3_6/lib/libtmux/common.py:660: UnknownOption
> ========================================= 2 failed, 83 passed in 16.28 seconds =========================================
>  * ERROR: dev-python/libtmux-0.8.2-r1::gentoo failed (test phase):
>  *   Tests fail with python3.6
>  * 
>  * Call stack:
>  *     ebuild.sh, line  125:  Called src_test
>  *   environment, line 2940:  Called distutils-r1_src_test
>  *   environment, line 1054:  Called _distutils-r1_run_foreach_impl 'python_test'
>  *   environment, line  434:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
>  *   environment, line 2462:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
>  *   environment, line 1834:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
>  *   environment, line 1832:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
>  *   environment, line  701:  Called distutils-r1_run_phase 'python_test'
>  *   environment, line  985:  Called python_test
>  *   environment, line 2826:  Called die
>  * The specific snippet of code:
>  *       pytest -vv || die "Tests fail with ${EPYTHON}"
>  *
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2020-02-16 18:39:43 UTC
Portage 2.3.84 (python 3.6.9-final-0, default/linux/x86/17.0, gcc-9.2.0, glibc-2.29-r7, 4.19.97-gentoo-x86 i686)
=================================================================
System uname: Linux-4.19.97-gentoo-x86-i686-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:     3106584 total,   1329980 free
KiB Swap:     488276 total,    487500 free
Timestamp of repository gentoo: Sun, 16 Feb 2020 15:12:42 +0000
Head commit of repository gentoo: b9fe9f596878981aa8824e94ae5feb76cd3b20bd

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::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="*"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ADA_TARGET="gnat_2018"
ARCH="x86"
BROOT=""
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=jump-misses-init -Wno-error=sign-compare"
CHOST="i686-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
COLLISION_IGNORE="/lib/modules/*"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CPU_FLAGS_X86="mmx mmxext sse sse2"
CXXFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=jump-misses-init -Wno-error=sign-compare"
DEFAULT_ABI="x86"
EDITOR="/usr/bin/mcedit"
ELIBC="glibc"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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"
HOME="/root"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/9.2.0/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.32/info:/usr/share/info"
INPUT_DEVICES="libinput keyboard mouse"
IUSE_IMPLICIT="abi_x86_32 prefix prefix-guest prefix-stack"
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"
OPENCL_PROFILE="ocl-icd"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/9/bin"
PHP_TARGETS="php7-2 php7-3"
POSTGRES_TARGETS="postgres10 postgres11"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_6"
PYTHON_TARGETS="python2_7 python3_6"
QT_GRAPHICSSYSTEM="raster"
ROOT="/"
ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/9/bin"
RUBY_TARGETS="ruby24 ruby25"
SHELL="/bin/bash"
SHLVL="2"
SSH_TTY="/dev/pts/0"
SYSROOT="/"
TERM="tmux-256color"
TMUX="/tmp//tmux-0/default,4864,0"
TMUX_PANE="%1"
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"
XDG_RUNTIME_DIR="/run/user/0"
XDG_SESSION_CLASS="user"
XDG_SESSION_ID="10"
XDG_SESSION_TYPE="tty"
Comment 2 Larry the Git Cow gentoo-dev 2020-02-16 19:59:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f9d03e9acee08e387d8bdcb10f5e7820a56c607

commit 3f9d03e9acee08e387d8bdcb10f5e7820a56c607
Author:     Patrick McLean <chutzpah@gentoo.org>
AuthorDate: 2020-02-16 19:59:01 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-02-16 19:59:01 +0000

    dev-python/libtmux-0.8.2-r1: Pull in >=tmux-2.9a (maybe bug #709834)
    
    It appears upstream tmux changes their error codes, so let's force a
    recent version to make sure that the errors match modern Gentoo
    installations.
    
    Bug: https://bugs.gentoo.org/709834
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 dev-python/libtmux/libtmux-0.8.2-r1.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 3 Patrick McLean gentoo-dev 2020-04-28 01:57:07 UTC
Reporter: please confirm if this is still a problem. I am unable to replicate this on any of my machines.
Comment 4 Larry the Git Cow gentoo-dev 2020-04-28 02:21:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7797a57647da37cf7bf237ba579dbf7e251324d

commit c7797a57647da37cf7bf237ba579dbf7e251324d
Author:     Patrick McLean <chutzpah@gentoo.org>
AuthorDate: 2020-04-28 02:21:21 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-04-28 02:21:21 +0000

    dev-python/libtmux-0.8.2-r2: Revbump, dep on tmux 3 (bug #709834)
    
    Closes: https://bugs.gentoo.org/709834
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 dev-python/libtmux/libtmux-0.8.2-r2.ebuild | 37 ++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)