Your message dated Fri, 09 Dec 2022 13:49:18 +0000
with message-id <e1p3dkc-00bw4y...@fasolo.debian.org>
and subject line Bug#1024783: fixed in ironic 1:21.1.0-2
has caused the Debian Bug report #1024783,
regarding ironic: (autopkgtest) needs update for python3.11: Cannot spec a Mock 
object
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1024783: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024783
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: ironic
Version: 1:21.1.0-1
Severity: serious
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: needs-update
User: debian-pyt...@lists.debian.org
Usertags: python3.11
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of adding python3.11 as a supported Python version [0]. With a recent upload of python3-defaults the autopkgtest of ironic fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
python3-defaults       from testing    3.10.6-3
ironic                 from testing    1:21.1.0-1
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.11.html lists what's new in Python3.11, it may help to identify what needs to be updated.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0] https://bugs.debian.org/1021984
[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/s390x/i/ironic/28630776/log.gz

======================================================================
FAIL: ironic.tests.unit.drivers.modules.irmc.test_inspect.IRMCInspectTestCase.test_inspect_hardware
ironic.tests.unit.drivers.modules.irmc.test_inspect.IRMCInspectTestCase.test_inspect_hardware
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.11/unittest/mock.py", line 1369, in patched
    return func(*newargs, **newkeywargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/autopkgtest-lxc.xfyi6n2m/downtmp/build.Dl6/src/ironic/tests/unit/drivers/modules/irmc/test_inspect.py", line 207, in test_inspect_hardware
    new_port_mock1 = mock.MagicMock(spec=objects.Port)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/unittest/mock.py", line 2082, in __init__
    _safe_super(MagicMixin, self).__init__(*args, **kw)
  File "/usr/lib/python3.11/unittest/mock.py", line 1100, in __init__
    _safe_super(CallableMixin, self).__init__(
  File "/usr/lib/python3.11/unittest/mock.py", line 451, in __init__
    self._mock_add_spec(spec, spec_set, _spec_as_instance, _eat_self)
  File "/usr/lib/python3.11/unittest/mock.py", line 502, in _mock_add_spec
    raise InvalidSpecError(f'Cannot spec a Mock object. [object={spec!r}]')
unittest.mock.InvalidSpecError: Cannot spec a Mock object. [object=<MagicMock name='Port' spec_set='Port' id='4395951012176'>]


======================================================================
FAIL: ironic.tests.unit.drivers.modules.irmc.test_inspect.IRMCInspectTestCase.test_inspect_hardware_with_power_off
ironic.tests.unit.drivers.modules.irmc.test_inspect.IRMCInspectTestCase.test_inspect_hardware_with_power_off
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.11/unittest/mock.py", line 1369, in patched
    return func(*newargs, **newkeywargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/autopkgtest-lxc.xfyi6n2m/downtmp/build.Dl6/src/ironic/tests/unit/drivers/modules/irmc/test_inspect.py", line 262, in test_inspect_hardware_with_power_off
    new_port_mock1 = mock.MagicMock(spec=objects.Port)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/unittest/mock.py", line 2082, in __init__
    _safe_super(MagicMixin, self).__init__(*args, **kw)
  File "/usr/lib/python3.11/unittest/mock.py", line 1100, in __init__
    _safe_super(CallableMixin, self).__init__(
  File "/usr/lib/python3.11/unittest/mock.py", line 451, in __init__
    self._mock_add_spec(spec, spec_set, _spec_as_instance, _eat_self)
  File "/usr/lib/python3.11/unittest/mock.py", line 502, in _mock_add_spec
    raise InvalidSpecError(f'Cannot spec a Mock object. [object={spec!r}]')
unittest.mock.InvalidSpecError: Cannot spec a Mock object. [object=<MagicMock name='Port' spec_set='Port' id='4395956173584'>]


----------------------------------------------------------------------
Ran 8768 tests in 240.038s

FAILED (failures=2, skipped=44)

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: ironic
Source-Version: 1:21.1.0-2
Done: Thomas Goirand <z...@debian.org>

We believe that the bug you reported is fixed in the latest version of
ironic, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1024...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <z...@debian.org> (supplier of updated ironic package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 09 Dec 2022 14:02:25 +0100
Source: ironic
Architecture: source
Version: 1:21.1.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <team+openst...@tracker.debian.org>
Changed-By: Thomas Goirand <z...@debian.org>
Closes: 1024783
Changes:
 ironic (1:21.1.0-2) unstable; urgency=medium
 .
   * Add py3.11_fix_unit_tests.patch (Closes: #1024783).
Checksums-Sha1:
 e18710e601fb4b6ac30a3aa511b454c48b2050bc 4020 ironic_21.1.0-2.dsc
 0a4be90e367eeaf7d5ed936680a9077f816841e4 16404 ironic_21.1.0-2.debian.tar.xz
 0cb0543e6201240fbe5bc4934fc55c70cdb3abf0 22077 ironic_21.1.0-2_amd64.buildinfo
Checksums-Sha256:
 58ae0498951c18ed8f662bf4f3d0bd9359c70896542818e3ea43335cb3b04fa7 4020 
ironic_21.1.0-2.dsc
 e47952c8e462fee8cd0c3e9c7eb52edca3cdc46ec20cf3ce0d54e03bbd78560d 16404 
ironic_21.1.0-2.debian.tar.xz
 7e8017d741d30a2c6cc711df0e0d8f2062c44f7a0c86c0e0d57f8764886006c4 22077 
ironic_21.1.0-2_amd64.buildinfo
Files:
 47b48918248d241f466ae387ffafe598 4020 net optional ironic_21.1.0-2.dsc
 8dc511d97dd217fc34e3ec5f7b862ed0 16404 net optional 
ironic_21.1.0-2.debian.tar.xz
 fc1537685ae7c7b2097541b9d5d9db64 22077 net optional 
ironic_21.1.0-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmOTN3MACgkQ1BatFaxr
Q/65MA/+IbMYNBjrMoIsWJa6qp+rvlV1HhER4u3iellBAko3WhO0jlnm4sMhyYZ4
3o6jb+PqmYQj6hoYRooBbX81NsqARYseGvBfKoLIomoQZ6THjDK7+gjzsijYv3LU
UsR3d15zaKpqA+c3F9WZL58SjCz+sAW6vNYH5PyIcav8mdYGrjAue5CnnTk9CNw7
uqTchZUVZqFhqFzQph/1f086FTrCc60OEv/rtRL/BZibjKyjZCChK1oEPJqirMEB
GevFCzo0S/1wHTOaqd0PPb8V8gRVQhW/Sb8/kqDmiEHL+o6brcK9PauCIeYrfDhf
hkdQSvKJgWWx/1xQW8DGy4DTloQYH05mb0X+8YefSWEY7uWoJqZQbMO0lqi+OROH
sTwe+K3QsEM4FIFMuTaVrf90nzHqsEC0r/scYmxts9/Ub19L/UJi9Pmd53EohKIQ
jmlXg+9EdnHHEh85ExR5X5scTw3V1CCTluc6TVrvqZDBotckh1pN29MgZmQEoVsQ
i8cMzrcpBwXvO+zIechm4az2XfWuoXFbGmY6eqjLEOJ6Nug7IKr4PNNPnSVKluoz
rAbik0DLOkO7ZPoOgd8jxnm6ftkfyss8sFjDSTRJC5ZH7zrAHlCQL/5Qaa+XTjou
e30iD9bZdVj1v+5LAFNI4sCDfKUx5+IZ5Voprnr1o2aIoVeawtk=
=F1wg
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to