Swift 2023.2, swiftaio unit tests fails because of python 3.11 dependencies
This bug report will be marked for expiration in 28 days if no further activity occurs. (find out why)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
=======
FAILED obj/test_
FAILED obj/test_
FAILED obj/test_
FAILED obj/test_
FAILED obj/test_
FAILED obj/test_
FAILED obj/test_
FAILED obj/test_
FAILED proxy/test_
= 9 failed, 8507 passed, 1 skipped, 3 deselected, 26 warnings in 554.59s (0:09:14) =
Some detailed logs-
=======
_____ TestObjectUpdat
self = <DebugLogAdapter swift.unit.
name = 'get_increment_
def __getattribute_
try:
> return object.
E AttributeError: 'DebugLogAdapter' object has no attribute 'get_increment_
/usr/local/
During handling of the above exception, another exception occurred:
self = <test.unit.
def test_obj_
headers = {
> daemon = self._check_
/usr/local/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/
daemon.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <DebugLogAdapter swift.unit.
name = 'get_increment_
def __getattribute_
try:
return object.
except AttributeError:
> return getattr(
E AttributeError: 'DebugLogger' object has no attribute 'get_increment_
/usr/local/
-------
___ TestObjectUpdat
self = <DebugLogAdapter swift.unit.
name = 'get_increment_
def __getattribute_
try:
> return object.
E AttributeError: 'DebugLogAdapter' object has no attribute 'get_increment_
/usr/local/
During handling of the above exception, another exception occurred:
self = <test.unit.
def test_obj_
headers = {
> self._check_
/usr/local/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/
daemon.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <DebugLogAdapter swift.unit.
name = 'get_increment_
def __getattribute_
try:
return object.
except AttributeError:
> return getattr(
E AttributeError: 'DebugLogger' object has no attribute 'get_increment_
/usr/local/
-------
_________ TestObjectUpdat
self = <DebugLogAdapter swift.unit.
name = 'get_increment_
def __getattribute_
try:
> return object.
E AttributeError: 'DebugLogAdapter' object has no attribute 'get_increment_
/usr/local/
During handling of the above exception, another exception occurred:
self = <test.unit.
def test_obj_
policies = list(POLICIES)
# setup updater
conf = {
}
daemon = object_
async_dir = os.path.
dfmanager = DiskFileManager
ts_obj = next(self.ts_iter)
# run once
ts_redirect = next(self.ts_iter)
# 1st round of redirects, 2nd round of redirects
[(301, resp_headers_1)] * 3 + [(301, resp_headers_2)] * 3)
with mocked_http_conn(
with mock.patch(
# only *one* set of redirected requests is attempted per cycle
root_part = daemon.
> daemon.
/usr/local/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <DebugLogAdapter swift.unit.
name = 'get_increment_
def __getattribute_
try:
return object.
except AttributeError:
> return getattr(
E AttributeError: 'DebugLogger' object has no attribute 'get_increment_
/usr/local/
-------
Those stats-related functions moved in https:/ /github. com/openstack/ swift/commit/ 00bfc425 to a new FakeStatsdClient. That was included in 2.32.0, and updated the affected tests to reference (for example) daemon. logger. statsd_ client. get_increment_ counts
What SHA are you working from? Any chance you've got a dirty working tree?