Bug 1370515

Summary: check-patches fails due to flake8 dependency in test suite
Product: [Community] Repoman Reporter: Sandro Bonazzola <sbonazzo>
Component: PackagingAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED CURRENTRELEASE QA Contact: Eyal Edri <eedri>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.0Keywords: BuildBlocker
Target Milestone: 2.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-14 05:07:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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