[ 
https://ovirt-jira.atlassian.net/browse/OVIRT-2783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39706#comment-39706
 ] 

Marcin Sobczyk commented on OVIRT-2783:
---------------------------------------

Hi,

it's a known issue:

https://stackoverflow.com/questions/54648246/invalid-syntax-in-more-itertools-when-running-pytest

Posted a patch for this:

https://gerrit.ovirt.org/#/c/102849/

Regards, Marcin

On 8/25/19 8:04 PM, Nir Soffer wrote:
>
>
> On Sun, Aug 25, 2019, 15:19 Pavel Bar <p...@redhat.com 
> <mailto:p...@redhat.com>> wrote:
>
>     Hi,
>     We experience problems with failed CI on VDSM patches.
>
>
> Does it work locally and in travis?
>
>     Examples:
>     http://jenkins.ovirt.org/job/vdsm_standard-check-patch/10633/
>     http://jenkins.ovirt.org/job/vdsm_standard-check-patch/10634/
>     http://jenkins.ovirt.org/job/vdsm_standard-check-patch/10635/
>
>     This is what we see in logs:
>
>     out=`tox --version`; \
>     if [ $? -ne 0 ]; then \
>     echo "Error: cannot run tox, please install tox \
>     2.9.1 or later"; \
>     exit 1; \
>     fi; \
>     version=`echo $out | cut -d' ' -f1`; \
>     if python2.7 build-aux/vercmp $version 2.9.1; then \
>     echo "Error: tox is too old, please install tox \
>     2.9.1 or later"; \
>     exit 1; \
>     fi
>     Traceback (most recent call last):
>       File "/usr/bin/tox", line 7, in <module>
>         from tox import cmdline
>       File "/usr/lib/python2.7/site-packages/tox/__init__.py", line 4,
>     in <module>
>         from .hookspecs import hookimpl
>       File "/usr/lib/python2.7/site-packages/tox/hookspecs.py", line
>     4, in <module>
>         from pluggy import HookimplMarker
>       File "/usr/lib/python2.7/site-packages/pluggy/__init__.py", line
>     16, in <module>
>         from .manager import PluginManager, PluginValidationError
>       File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line
>     6, in <module>
>         import importlib_metadata
>       File
>     "/usr/lib/python2.7/site-packages/importlib_metadata/__init__.py",
>     line 9, in <module>
>         import zipp
>       File "/usr/lib/python2.7/site-packages/zipp.py", line 12, in
>     <module>
>         import more_itertools
>       File
>     "/usr/lib/python2.7/site-packages/more_itertools/__init__.py",
>     line 1, in <module>
>         from more_itertools.more import *  # noqa
>       File "/usr/lib/python2.7/site-packages/more_itertools/more.py",
>     line 340
>         def _collate(*iterables, key=lambda a: a, reverse=False):
>                                    ^
>     SyntaxError: invalid syntax
>     Error: cannot run tox, please install tox 2.9.1 or later
>     make: *** [tox] Error 1
>     + teardown
>     + res=2
>     + '[' 2 -ne 0 ']'
>     + echo '*** err: 2'
>     *** err: 2
>     + collect_logs
>     + tar --directory /var/log --exclude 'journal/*' -czf
>     
> /home/jenkins/workspace/vdsm_standard-check-patch/vdsm/exported-artifacts/mock_varlogs.tar.gz
>     .
>     + tar --directory /var/host_log --exclude 'journal/*' -czf
>     
> /home/jenkins/workspace/vdsm_standard-check-patch/vdsm/exported-artifacts/host_varlogs.tar.gz
>     .
>     + teardown_storage
>     + python2 tests/storage/userstorage.py teardown
>
>     Can someone look at it?
>
>     Thank you in advance!
>
>     Pavel
>
>     _______________________________________________
>     Devel mailing list -- de...@ovirt.org <mailto:de...@ovirt.org>
>     To unsubscribe send an email to devel-le...@ovirt.org
>     <mailto:devel-le...@ovirt.org>
>     Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>     oVirt Code of Conduct:
>     https://www.ovirt.org/community/about/community-guidelines/
>     List Archives:
>     
> https://lists.ovirt.org/archives/list/de...@ovirt.org/message/VADZM35IRVN4EY24MOM3JIHLWQKASLRG/
>
>
> _______________________________________________
> Devel mailing list -- de...@ovirt.org
> To unsubscribe send an email to devel-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/de...@ovirt.org/message/AVD6QSBEPRTDYI7W2XNWSEPD4OT35LIW/

> CI fails - tox error
> --------------------
>
>                 Key: OVIRT-2783
>                 URL: https://ovirt-jira.atlassian.net/browse/OVIRT-2783
>             Project: oVirt - virtualization made easy
>          Issue Type: By-EMAIL
>            Reporter: Pavel Bar
>            Assignee: infra
>
> Hi,
> We experience problems with failed CI on VDSM patches.
> Examples:
> http://jenkins.ovirt.org/job/vdsm_standard-check-patch/10633/
> http://jenkins.ovirt.org/job/vdsm_standard-check-patch/10634/
> http://jenkins.ovirt.org/job/vdsm_standard-check-patch/10635/
> This is what we see in logs:
> out=`tox --version`; \
> if [ $? -ne 0 ]; then \
> echo "Error: cannot run tox, please install tox \
> 2.9.1 or later"; \
> exit 1; \
> fi; \
> version=`echo $out | cut -d' ' -f1`; \
> if python2.7 build-aux/vercmp $version 2.9.1; then \
> echo "Error: tox is too old, please install tox \
> 2.9.1 or later"; \
> exit 1; \
> fi
> Traceback (most recent call last):
>   File "/usr/bin/tox", line 7, in <module>
>     from tox import cmdline
>   File "/usr/lib/python2.7/site-packages/tox/__init__.py", line 4, in
> <module>
>     from .hookspecs import hookimpl
>   File "/usr/lib/python2.7/site-packages/tox/hookspecs.py", line 4, in
> <module>
>     from pluggy import HookimplMarker
>   File "/usr/lib/python2.7/site-packages/pluggy/__init__.py", line 16, in
> <module>
>     from .manager import PluginManager, PluginValidationError
>   File "/usr/lib/python2.7/site-packages/pluggy/manager.py", line 6, in
> <module>
>     import importlib_metadata
>   File "/usr/lib/python2.7/site-packages/importlib_metadata/__init__.py",
> line 9, in <module>
>     import zipp
>   File "/usr/lib/python2.7/site-packages/zipp.py", line 12, in <module>
>     import more_itertools
>   File "/usr/lib/python2.7/site-packages/more_itertools/__init__.py", line
> 1, in <module>
>     from more_itertools.more import *  # noqa
>   File "/usr/lib/python2.7/site-packages/more_itertools/more.py", line 340
>     def _collate(*iterables, key=lambda a: a, reverse=False):
>                                ^
> SyntaxError: invalid syntax
> Error: cannot run tox, please install tox 2.9.1 or later
> make: *** [tox] Error 1
> + teardown
> + res=2
> + '[' 2 -ne 0 ']'
> + echo '*** err: 2'
> *** err: 2
> + collect_logs
> + tar --directory /var/log --exclude 'journal/*' -czf
> /home/jenkins/workspace/vdsm_standard-check-patch/vdsm/exported-artifacts/mock_varlogs.tar.gz
> .
> + tar --directory /var/host_log --exclude 'journal/*' -czf
> /home/jenkins/workspace/vdsm_standard-check-patch/vdsm/exported-artifacts/host_varlogs.tar.gz
> .
> + teardown_storage
> + python2 tests/storage/userstorage.py teardown
> Can someone look at it?
> Thank you in advance!
> Pavel



--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100107)
_______________________________________________
Infra mailing list -- infra@ovirt.org
To unsubscribe send an email to infra-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/infra@ovirt.org/message/QYBUKIT5ZZ76Y6YCMTS5PW575SMYZG4I/

Reply via email to