mock 1.1 breaking py26 job

Bug #1474925 reported by Matt Riedemann
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sqlalchemy-migrate
Fix Committed
Critical
Matt Riedemann

Bug Description

http://logs.openstack.org/09/202009/1/check/gate-sqlalchemy-migrate-python26/eea82d4/console.html

2015-07-15 14:15:56.204 | running testr
2015-07-15 14:15:56.204 | Traceback (most recent call last):
2015-07-15 14:15:56.204 | File "setup.py", line 21, in <module>
2015-07-15 14:15:56.205 | pbr=True)
2015-07-15 14:15:56.205 | File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
2015-07-15 14:15:56.205 | dist.run_commands()
2015-07-15 14:15:56.205 | File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
2015-07-15 14:15:56.206 | self.run_command(cmd)
2015-07-15 14:15:56.206 | File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
2015-07-15 14:15:56.206 | cmd_obj.run()
2015-07-15 14:15:56.207 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/testrepository/setuptools_command.py", line 75, in run
2015-07-15 14:15:56.207 | testr_ret = self._run_testr("run", "--parallel", *self.testr_args)
2015-07-15 14:15:56.207 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/testrepository/setuptools_command.py", line 52, in _run_testr
2015-07-15 14:15:56.208 | sys.stdin, sys.stdout, sys.stderr)
2015-07-15 14:15:56.208 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/testrepository/commands/__init__.py", line 184, in run_argv
2015-07-15 14:15:56.209 | cmdclass = _find_command(cmd_name)
2015-07-15 14:15:56.209 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/testrepository/commands/__init__.py", line 51, in _find_command
2015-07-15 14:15:56.209 | _temp = __import__(modname, globals(), locals(), [classname])
2015-07-15 14:15:56.209 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/testrepository/commands/run.py", line 34, in <module>
2015-07-15 14:15:56.210 | from testrepository.commands.load import load
2015-07-15 14:15:56.210 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/testrepository/commands/load.py", line 31, in <module>
2015-07-15 14:15:56.210 | from testrepository.testcommand import TestCommand
2015-07-15 14:15:56.211 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/testrepository/testcommand.py", line 35, in <module>
2015-07-15 14:15:56.211 | from fixtures import Fixture
2015-07-15 14:15:56.211 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/fixtures/__init__.py", line 87, in <module>
2015-07-15 14:15:56.212 | from fixtures._fixtures import (
2015-07-15 14:15:56.212 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/fixtures/_fixtures/__init__.py", line 55, in <module>
2015-07-15 14:15:56.212 | from fixtures._fixtures.mockpatch import (
2015-07-15 14:15:56.213 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/fixtures/_fixtures/mockpatch.py", line 22, in <module>
2015-07-15 14:15:56.213 | mock = extras.try_imports(['unittest.mock', 'mock'], None)
2015-07-15 14:15:56.213 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/extras/__init__.py", line 87, in try_imports
2015-07-15 14:15:56.214 | module = try_import(module_name, error_callback=error_callback)
2015-07-15 14:15:56.214 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/extras/__init__.py", line 46, in try_import
2015-07-15 14:15:56.214 | module = __import__(module_name)
2015-07-15 14:15:56.215 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/mock/__init__.py", line 2, in <module>
2015-07-15 14:15:56.215 | import mock.mock as _mock
2015-07-15 14:15:56.216 | File "/home/jenkins/workspace/gate-sqlalchemy-migrate-python26/.tox/py26/lib/python2.6/site-packages/mock/mock.py", line 132
2015-07-15 14:15:56.216 | _builtins = {name for name in dir(builtins) if not name.startswith('_')}
2015-07-15 14:15:56.238 | ^
2015-07-15 14:15:56.238 | SyntaxError: invalid syntax
2015-07-15 14:15:56.239 | The test run didn't actually run any tests

We have to update requirements to avoid mock 1.1 on py26.

Matt Riedemann (mriedem)
Changed in sqlalchemy-migrate:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Matt Riedemann (mriedem)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sqlalchemy-migrate (master)

Fix proposed to branch: master
Review: https://review.openstack.org/202170

Changed in sqlalchemy-migrate:
status: Triaged → In Progress
Revision history for this message
Matt Riedemann (mriedem) wrote :

This is fixed with mock 1.2 so that should be the minimum version now.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sqlalchemy-migrate (master)

Reviewed: https://review.openstack.org/202170
Committed: https://git.openstack.org/cgit/stackforge/sqlalchemy-migrate/commit/?id=8252703f56d394743199e702c38f1ecc1db590e5
Submitter: Jenkins
Branch: master

commit 8252703f56d394743199e702c38f1ecc1db590e5
Author: Matt Riedemann <email address hidden>
Date: Wed Jul 15 09:02:50 2015 -0700

    Unblock migrate (py26 and py3* testing issues)

    There are two changes which have to go together to pass the gate
    tests:

    1. Update pbr and mock requirements from global-requirements

    mock 1.2 supports py26 again so make that the minimum version. The
    same change is being made in g-r with:

    Ic6b9e18eaec9c81bbbbc57129e024904be928e09

    Sync up with latest pbr in global-requirements while we're at it.

    Closes-Bug: #1474925

    2. Fix the importpath module to work with python >= 3.3 where the
    __import__ built-in is raising an ImportError on a temporary file
    that is added to the system path.

    Closes-Bug: #1475339

    Change-Id: Ie98938ba75f3983094dd540b7d26a7ec46be4f6e

Changed in sqlalchemy-migrate:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.