Bump hacking

hacking 3.0.x is too old.

Also remove the note about very old pip's behavior.

Change-Id: I6d2d180a9ec80664efae498f86a4d1f734aacfa5
This commit is contained in:
Takashi Kajinami 2024-01-28 16:14:09 +09:00
parent 2c85927511
commit 5c900d4ab5
7 changed files with 14 additions and 21 deletions

View File

@ -1,6 +1,3 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr!=2.1.0,>=2.0.0 # Apache-2.0 pbr!=2.1.0,>=2.0.0 # Apache-2.0
alembic>=0.9.6 # MIT alembic>=0.9.6 # MIT

View File

@ -1,8 +1,4 @@
# The order of packages is significant, because pip processes them in the order hacking>=6.1.0,<6.2.0 # Apache-2.0
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
# Metrics and style
hacking>=3.0.1,<3.1.0 # Apache-2.0
# Backends # Backends
redis>=3.0.0 # MIT redis>=3.0.0 # MIT

View File

@ -301,14 +301,14 @@ def retries_on_autoreconnect(func):
break break
except errors.AutoReconnect as ex: except errors.AutoReconnect as ex:
LOG.warning(u'Caught AutoReconnect, retrying the ' LOG.warning('Caught AutoReconnect, retrying the '
'call to {0}'.format(func)) 'call to %s', func.__name__)
last_ex = ex last_ex = ex
time.sleep(sleep_sec * (2 ** attempt)) time.sleep(sleep_sec * (2 ** attempt))
else: else:
LOG.error(u'Caught AutoReconnect, maximum attempts ' LOG.error('Caught AutoReconnect, maximum attempts '
'to {0} exceeded.'.format(func)) 'to %s exceeded.', func.__name__)
raise last_ex raise last_ex

View File

@ -203,13 +203,13 @@ def retries_on_connection_error(func):
# MasterNotFoundError. # MasterNotFoundError.
ex = sys.exc_info()[1] ex = sys.exc_info()[1]
LOG.warning(u'Caught ConnectionError, retrying the ' LOG.warning('Caught ConnectionError, retrying the '
'call to {0}'.format(func)) 'call to %s', func.__name__)
time.sleep(sleep_sec * (2 ** attempt)) time.sleep(sleep_sec * (2 ** attempt))
else: else:
LOG.error(u'Caught ConnectionError, maximum attempts ' LOG.error('Caught ConnectionError, maximum attempts '
'to {0} exceeded.'.format(func)) 'to %s exceeded.', func.__name__)
raise ex raise ex
return wrapper return wrapper

View File

@ -83,8 +83,8 @@ class BaseWalkMigrationTestCase(object):
getattr(command, alembic_command)(*args, **kwargs) getattr(command, alembic_command)(*args, **kwargs)
res = buf.getvalue().strip() res = buf.getvalue().strip()
LOG.debug('Alembic command {command} returns: {result}'.format( LOG.debug('Alembic command {command} returns: {result}',
command=alembic_command, result=res)) {'command': alembic_command, 'result': res})
return res return res
@ -160,7 +160,7 @@ class BaseWalkMigrationTestCase(object):
check(engine, data) check(engine, data)
except Exception: except Exception:
LOG.error("Failed to migrate to version {version} on engine " LOG.error("Failed to migrate to version {version} on engine "
"{engine}".format(version=version, engine=engine)) "{engine}", {'version': version, 'engine': engine})
raise raise

View File

@ -266,7 +266,7 @@ class TestFlavorsMongoDB(base.V2Base):
self.simulate_delete(self.flavor_path) self.simulate_delete(self.flavor_path)
query = 'limit={0}&detailed={1}'.format(limit, detailed) query = 'limit={0}&detailed={1}'.format(limit, detailed)
if marker: if marker:
query += '&marker={2}'.format(marker) query += '&marker={0}'.format(marker)
with flavors(self, count): with flavors(self, count):
result = self.simulate_get(self.url_prefix + '/flavors', result = self.simulate_get(self.url_prefix + '/flavors',

View File

@ -186,7 +186,7 @@ class TestSubscriptionsMongoDB(base.V2Base):
query = 'limit={0}'.format(limit) query = 'limit={0}'.format(limit)
if marker: if marker:
query += '&marker={1}'.format(marker) query += '&marker={0}'.format(marker)
resp = self.simulate_get(self.subscription_path, resp = self.simulate_get(self.subscription_path,
query_string=query, query_string=query,