Bug 1370515 - check-patches fails due to flake8 dependency in test suite
Summary: check-patches fails due to flake8 dependency in test suite
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Repoman
Classification: Community
Component: Packaging
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: 2.0
Assignee: Sandro Bonazzola
QA Contact: Eyal Edri
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-26 14:23 UTC by Sandro Bonazzola
Modified: 2017-12-14 05:07 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-14 05:07:50 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 82668 0 None None None 2017-10-11 12:10:10 UTC

Description Sandro Bonazzola 2016-08-26 14:23:49 UTC
Description of problem:
The test suite is relying on flake8 installed outside the rpm packaging.
flake8 is now assuming to use python3 and fails to build:

00:01:33.469   Running setup.py install for pbr
00:01:33.469     Traceback (most recent call last):
00:01:33.470       File "<string>", line 1, in <module>
00:01:33.470       File "/home/jenkins/workspace/repoman_master_check-patch-el7-x86_64/repoman/.tox/pep8/build/pbr/setup.py", line 22, in <module>
00:01:33.470         **util.cfg_to_args())
00:01:33.470       File "pbr/util.py", line 264, in cfg_to_args
00:01:33.470         wrap_commands(kwargs)
00:01:33.470       File "pbr/util.py", line 573, in wrap_commands
00:01:33.470         cmdclass = ep.load(False)
00:01:33.470       File "/home/jenkins/workspace/repoman_master_check-patch-el7-x86_64/repoman/.tox/pep8/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
00:01:33.470         entry = __import__(self.module_name, globals(),globals(), ['__name__'])
00:01:33.471       File "/home/jenkins/workspace/repoman_master_check-patch-el7-x86_64/repoman/.tox/pep8/lib/python2.7/site-packages/flake8/main/setuptools_command.py", line 6, in <module>
00:01:33.471         from flake8.main import application as app
00:01:33.471       File "/home/jenkins/workspace/repoman_master_check-patch-el7-x86_64/repoman/.tox/pep8/lib/python2.7/site-packages/flake8/main/application.py", line 12, in <module>
00:01:33.471         from flake8 import style_guide
00:01:33.471       File "/home/jenkins/workspace/repoman_master_check-patch-el7-x86_64/repoman/.tox/pep8/lib/python2.7/site-packages/flake8/style_guide.py", line 3, in <module>
00:01:33.471         import enum
00:01:33.471     ImportError: No module named enum
00:01:33.472     Complete output from command /home/jenkins/workspace/repoman_master_check-patch-el7-x86_64/repoman/.tox/pep8/bin/python2.7 -c "import 


Please avoid to use packages not installable via yum / dnf;

Comment 1 Sandro Bonazzola 2016-08-26 14:24:18 UTC
Detected by Jenkins:
http://jenkins.ovirt.org/job/repoman_master_check-patch-el7-x86_64/35/console


Note You need to log in before you can comment on or make changes to this bug.