0s autopkgtest [04:09:48]: starting date and time: 2025-02-19 04:09:48+0000 0s autopkgtest [04:09:48]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [04:09:48]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.mlezuvhe/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python-marshmallow --apt-upgrade python-marshmallow-polyfield --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python-marshmallow/3.26.1-0.1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-arm64-6.secgroup --name adt-plucky-arm64-python-marshmallow-polyfield-20250219-040948-juju-7f2275-prod-proposed-migration-environment-15-2676cbc9-646a-4c2d-9084-7b61a8514242 --image adt/ubuntu-plucky-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 432s autopkgtest [04:17:00]: testbed dpkg architecture: arm64 433s autopkgtest [04:17:01]: testbed apt version: 2.9.29 434s autopkgtest [04:17:02]: @@@@@@@@@@@@@@@@@@@@ test bed setup 435s autopkgtest [04:17:03]: testbed release detected to be: None 438s autopkgtest [04:17:06]: updating testbed package index (apt update) 438s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 438s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 438s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 438s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 438s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.6 kB] 438s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [788 kB] 439s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [79.1 kB] 439s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 439s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [97.6 kB] 439s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted arm64 Packages [7960 B] 439s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [698 kB] 439s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [12.1 kB] 439s Fetched 1811 kB in 1s (1838 kB/s) 440s Reading package lists... 441s + lsb_release --codename --short 441s + RELEASE=plucky 441s + cat 441s + [ plucky != trusty ] 441s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y --allow-downgrades -o Dpkg::Options::=--force-confnew dist-upgrade 441s Reading package lists... 441s Building dependency tree... 441s Reading state information... 442s Calculating upgrade... 442s The following packages will be upgraded: 442s dhcpcd-base 442s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 442s Need to get 216 kB of archives. 442s After this operation, 0 B of additional disk space will be used. 442s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 dhcpcd-base arm64 1:10.1.0-7 [216 kB] 443s Fetched 216 kB in 0s (513 kB/s) 443s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 116620 files and directories currently installed.) 443s Preparing to unpack .../dhcpcd-base_1%3a10.1.0-7_arm64.deb ... 443s Unpacking dhcpcd-base (1:10.1.0-7) over (1:10.1.0-6) ... 443s Setting up dhcpcd-base (1:10.1.0-7) ... 443s Processing triggers for man-db (2.13.0-1) ... 444s + rm /etc/apt/preferences.d/force-downgrade-to-release.pref 444s + /usr/lib/apt/apt-helper analyze-pattern ?true 444s + uname -r 444s + sed s/\./\\./g 444s + running_kernel_pattern=^linux-.*6\.12\.0-15-generic.* 444s + apt list ?obsolete 444s + tail -n+2 444s + cut -d/ -f1+ grep -v ^linux-.*6\.12\.0-15-generic.* 444s 444s + true 444s + obsolete_pkgs= 444s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y purge --autoremove 444s Reading package lists... 445s Building dependency tree... 445s Reading state information... 446s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 446s + grep -q trusty /etc/lsb-release 446s + [ ! -d /usr/share/doc/unattended-upgrades ] 446s + [ ! -d /usr/share/doc/lxd ] 446s + [ ! -d /usr/share/doc/lxd-client ] 446s + [ ! -d /usr/share/doc/snapd ] 446s + type iptables 446s + cat 446s + chmod 755 /etc/rc.local 446s + . /etc/rc.local 446s + iptables -w -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 446s + iptables -A OUTPUT -d 10.255.255.1/32 -p tcp -j DROP 446s + iptables -A OUTPUT -d 10.255.255.2/32 -p tcp -j DROP 446s + uname -m 446s + [ aarch64 = ppc64le ] 446s + [ -d /run/systemd/system ] 446s + systemd-detect-virt --quiet --vm 446s + mkdir -p /etc/systemd/system/systemd-random-seed.service.d/ 446s + cat 446s + grep -q lz4 /etc/initramfs-tools/initramfs.conf 446s + echo COMPRESS=lz4 446s autopkgtest [04:17:14]: upgrading testbed (apt dist-upgrade and autopurge) 446s Reading package lists... 446s Building dependency tree... 446s Reading state information... 447s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 447s Starting 2 pkgProblemResolver with broken count: 0 447s Done 447s Entering ResolveByKeep 448s 448s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 448s Reading package lists... 449s Building dependency tree... 449s Reading state information... 449s Starting pkgProblemResolver with broken count: 0 449s Starting 2 pkgProblemResolver with broken count: 0 449s Done 450s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 453s autopkgtest [04:17:21]: testbed running kernel: Linux 6.12.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 4 15:49:33 UTC 2025 453s autopkgtest [04:17:21]: @@@@@@@@@@@@@@@@@@@@ apt-source python-marshmallow-polyfield 454s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-marshmallow-polyfield 5.10-1 (dsc) [2324 B] 454s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-marshmallow-polyfield 5.10-1 (tar) [10.6 kB] 454s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-marshmallow-polyfield 5.10-1 (diff) [2696 B] 454s gpgv: Signature made Sat Sep 18 15:43:30 2021 UTC 454s gpgv: using RSA key 77C9619C49D6A2CDCDF2FFAA428304A1748DCC7A 454s gpgv: Can't check signature: No public key 454s dpkg-source: warning: cannot verify inline signature for ./python-marshmallow-polyfield_5.10-1.dsc: no acceptable signature found 455s autopkgtest [04:17:23]: testing package python-marshmallow-polyfield version 5.10-1 455s autopkgtest [04:17:23]: build not needed 456s autopkgtest [04:17:24]: test upstream-tests: preparing testbed 456s Reading package lists... 456s Building dependency tree... 456s Reading state information... 457s Starting pkgProblemResolver with broken count: 0 457s Starting 2 pkgProblemResolver with broken count: 0 457s Done 457s The following NEW packages will be installed: 457s python3-all python3-iniconfig python3-marshmallow 457s python3-marshmallow-polyfield python3-packaging python3-pluggy 457s python3-pytest python3.12 python3.12-minimal 458s 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. 458s Need to get 3292 kB of archives. 458s After this operation, 10.7 MB of additional disk space will be used. 458s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.12-minimal arm64 3.12.9-1 [2236 kB] 458s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.12 arm64 3.12.9-1 [671 kB] 458s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-all arm64 3.13.1-1~exp2 [894 B] 458s Get:4 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-iniconfig all 1.1.1-2 [6024 B] 458s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-packaging all 24.2-1 [51.5 kB] 458s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 python3-marshmallow all 3.26.1-0.1 [47.5 kB] 458s Get:7 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-marshmallow-polyfield all 5.10-1 [6118 B] 458s Get:8 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pluggy all 1.5.0-1 [21.0 kB] 458s Get:9 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pytest all 8.3.4-1 [252 kB] 459s Fetched 3292 kB in 1s (4545 kB/s) 459s Selecting previously unselected package python3.12-minimal. 459s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 116620 files and directories currently installed.) 459s Preparing to unpack .../0-python3.12-minimal_3.12.9-1_arm64.deb ... 459s Unpacking python3.12-minimal (3.12.9-1) ... 459s Selecting previously unselected package python3.12. 459s Preparing to unpack .../1-python3.12_3.12.9-1_arm64.deb ... 459s Unpacking python3.12 (3.12.9-1) ... 459s Selecting previously unselected package python3-all. 459s Preparing to unpack .../2-python3-all_3.13.1-1~exp2_arm64.deb ... 459s Unpacking python3-all (3.13.1-1~exp2) ... 459s Selecting previously unselected package python3-iniconfig. 459s Preparing to unpack .../3-python3-iniconfig_1.1.1-2_all.deb ... 459s Unpacking python3-iniconfig (1.1.1-2) ... 459s Selecting previously unselected package python3-packaging. 459s Preparing to unpack .../4-python3-packaging_24.2-1_all.deb ... 459s Unpacking python3-packaging (24.2-1) ... 459s Selecting previously unselected package python3-marshmallow. 459s Preparing to unpack .../5-python3-marshmallow_3.26.1-0.1_all.deb ... 459s Unpacking python3-marshmallow (3.26.1-0.1) ... 459s Selecting previously unselected package python3-marshmallow-polyfield. 459s Preparing to unpack .../6-python3-marshmallow-polyfield_5.10-1_all.deb ... 459s Unpacking python3-marshmallow-polyfield (5.10-1) ... 459s Selecting previously unselected package python3-pluggy. 459s Preparing to unpack .../7-python3-pluggy_1.5.0-1_all.deb ... 459s Unpacking python3-pluggy (1.5.0-1) ... 459s Selecting previously unselected package python3-pytest. 459s Preparing to unpack .../8-python3-pytest_8.3.4-1_all.deb ... 459s Unpacking python3-pytest (8.3.4-1) ... 459s Setting up python3-iniconfig (1.1.1-2) ... 459s Setting up python3.12-minimal (3.12.9-1) ... 460s Setting up python3.12 (3.12.9-1) ... 462s Setting up python3-all (3.13.1-1~exp2) ... 462s Setting up python3-packaging (24.2-1) ... 462s Setting up python3-pluggy (1.5.0-1) ... 462s Setting up python3-pytest (8.3.4-1) ... 463s Setting up python3-marshmallow (3.26.1-0.1) ... 463s Setting up python3-marshmallow-polyfield (5.10-1) ... 463s Processing triggers for man-db (2.13.0-1) ... 464s Processing triggers for systemd (257.2-3ubuntu1) ... 465s autopkgtest [04:17:33]: test upstream-tests: [----------------------- 465s 'tests' -> '/tmp/autopkgtest.PsA9BS/autopkgtest_tmp/tests' 465s 'tests/__init__.py' -> '/tmp/autopkgtest.PsA9BS/autopkgtest_tmp/tests/__init__.py' 465s 'tests/polyclasses.py' -> '/tmp/autopkgtest.PsA9BS/autopkgtest_tmp/tests/polyclasses.py' 465s 'tests/shapes.py' -> '/tmp/autopkgtest.PsA9BS/autopkgtest_tmp/tests/shapes.py' 465s 'tests/test_deserialization.py' -> '/tmp/autopkgtest.PsA9BS/autopkgtest_tmp/tests/test_deserialization.py' 465s 'tests/test_polyfield_base.py' -> '/tmp/autopkgtest.PsA9BS/autopkgtest_tmp/tests/test_polyfield_base.py' 465s 'tests/test_serialization.py' -> '/tmp/autopkgtest.PsA9BS/autopkgtest_tmp/tests/test_serialization.py' 465s Running testsuite with python3.12: 465s ============================= test session starts ============================== 465s platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 465s rootdir: /tmp/autopkgtest.PsA9BS/autopkgtest_tmp 465s plugins: typeguard-4.4.1 465s collected 19 items 465s 465s tests/test_deserialization.py ........... [ 57%] 465s tests/test_polyfield_base.py . [ 63%] 465s tests/test_serialization.py ..F.F.F [100%] 465s 465s =================================== FAILURES =================================== 465s _____________________ test_serializing_polyfield_rectangle _____________________ 465s 465s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 465s value = , key = 'shape' 465s obj = Sticker(shape=, image='marshmallow.png') 465s kwargs = {}, schema = 465s 465s def _serialize(self, value, key, obj, **kwargs): 465s if value is None: 465s return None 465s try: 465s if self.many: 465s res = [] 465s for v in value: 465s schema = self.serialization_schema_selector(v, obj) 465s schema.context.update(getattr(self, 'context', {})) 465s res.append(schema.dump(v)) 465s return res 465s else: 465s schema = self.serialization_schema_selector(value, obj) 465s > schema.context.update(getattr(self, 'context', {})) 465s E TypeError: 'NoneType' object is not iterable 465s 465s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:74: TypeError 465s 465s During handling of the above exception, another exception occurred: 465s 465s args_ = () 465s 465s def wrapped(*args_): 465s return [ 465s > func(*(args_ + (a,))) 465s for a in args 465s ] 465s 465s tests/polyclasses.py:15: 465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 465s tests/test_serialization.py:52: in test_serializing_polyfield_rectangle 465s rect_dict = field.serialize('shape', marshmallow_sticker) 465s /usr/lib/python3/dist-packages/marshmallow/fields.py:348: in serialize 465s return self._serialize(value, attr, obj, **kwargs) 465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 465s 465s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 465s value = , key = 'shape' 465s obj = Sticker(shape=, image='marshmallow.png') 465s kwargs = {}, schema = 465s 465s def _serialize(self, value, key, obj, **kwargs): 465s if value is None: 465s return None 465s try: 465s if self.many: 465s res = [] 465s for v in value: 465s schema = self.serialization_schema_selector(v, obj) 465s schema.context.update(getattr(self, 'context', {})) 465s res.append(schema.dump(v)) 465s return res 465s else: 465s schema = self.serialization_schema_selector(value, obj) 465s schema.context.update(getattr(self, 'context', {})) 465s return schema.dump(value) 465s except Exception as err: 465s > raise TypeError( 465s 'Failed to serialize object. Error: {0}\n' 465s ' Ensure the serialization_schema_selector exists and ' 465s ' returns a Schema and that schema' 465s ' can serialize this value {1}'.format(err, value)) 465s E TypeError: Failed to serialize object. Error: 'NoneType' object is not iterable 465s E Ensure the serialization_schema_selector exists and returns a Schema and that schema can serialize this value 465s 465s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:77: TypeError 465s _______________________ test_serializing_polyfield_many ________________________ 465s 465s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 465s value = [, ] 465s key = 'shapes' 465s obj = StickerCollection(shapes=[, ], image='marshmallow.png') 465s kwargs = {}, res = [], v = 465s schema = 465s 465s def _serialize(self, value, key, obj, **kwargs): 465s if value is None: 465s return None 465s try: 465s if self.many: 465s res = [] 465s for v in value: 465s schema = self.serialization_schema_selector(v, obj) 465s > schema.context.update(getattr(self, 'context', {})) 465s E TypeError: 'NoneType' object is not iterable 465s 465s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:69: TypeError 465s 465s During handling of the above exception, another exception occurred: 465s 465s args_ = () 465s 465s def wrapped(*args_): 465s return [ 465s > func(*(args_ + (a,))) 465s for a in args 465s ] 465s 465s tests/polyclasses.py:15: 465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 465s tests/test_serialization.py:79: in test_serializing_polyfield_many 465s shapes = field.serialize('shapes', marshmallow_sticker_collection) 465s /usr/lib/python3/dist-packages/marshmallow/fields.py:348: in serialize 465s return self._serialize(value, attr, obj, **kwargs) 465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 465s 465s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 465s value = [, ] 465s key = 'shapes' 465s obj = StickerCollection(shapes=[, ], image='marshmallow.png') 465s kwargs = {}, res = [], v = 465s schema = 465s 465s def _serialize(self, value, key, obj, **kwargs): 465s if value is None: 465s return None 465s try: 465s if self.many: 465s res = [] 465s for v in value: 465s schema = self.serialization_schema_selector(v, obj) 465s schema.context.update(getattr(self, 'context', {})) 465s res.append(schema.dump(v)) 465s return res 465s else: 465s schema = self.serialization_schema_selector(value, obj) 465s schema.context.update(getattr(self, 'context', {})) 465s return schema.dump(value) 465s except Exception as err: 465s > raise TypeError( 465s 'Failed to serialize object. Error: {0}\n' 465s ' Ensure the serialization_schema_selector exists and ' 465s ' returns a Schema and that schema' 465s ' can serialize this value {1}'.format(err, value)) 465s E TypeError: Failed to serialize object. Error: 'NoneType' object is not iterable 465s E Ensure the serialization_schema_selector exists and returns a Schema and that schema can serialize this value [, ] 465s 465s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:77: TypeError 465s __________________ test_serializing_polyfield_by_parent_type ___________________ 465s 465s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 465s value = , key = 'shape' 465s obj = Sticker(shape=, image='marshmallow.png', type='rectangle') 465s kwargs = {}, schema = 465s 465s def _serialize(self, value, key, obj, **kwargs): 465s if value is None: 465s return None 465s try: 465s if self.many: 465s res = [] 465s for v in value: 465s schema = self.serialization_schema_selector(v, obj) 465s schema.context.update(getattr(self, 'context', {})) 465s res.append(schema.dump(v)) 465s return res 465s else: 465s schema = self.serialization_schema_selector(value, obj) 465s > schema.context.update(getattr(self, 'context', {})) 465s E TypeError: 'NoneType' object is not iterable 465s 465s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:74: TypeError 465s 465s During handling of the above exception, another exception occurred: 465s 465s args_ = () 465s 465s def wrapped(*args_): 465s return [ 465s > func(*(args_ + (a,))) 465s for a in args 465s ] 465s 465s tests/polyclasses.py:15: 465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 465s tests/test_serialization.py:99: in test_serializing_polyfield_by_parent_type 465s rect_dict = field.serialize('shape', marshmallow_sticker) 465s /usr/lib/python3/dist-packages/marshmallow/fields.py:348: in serialize 465s return self._serialize(value, attr, obj, **kwargs) 465s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 465s 465s self = , attribute=None, validate=None, required=False, load_only=False, ...equired': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.'})> 465s value = , key = 'shape' 465s obj = Sticker(shape=, image='marshmallow.png', type='rectangle') 465s kwargs = {}, schema = 465s 465s def _serialize(self, value, key, obj, **kwargs): 465s if value is None: 465s return None 465s try: 465s if self.many: 465s res = [] 465s for v in value: 465s schema = self.serialization_schema_selector(v, obj) 465s schema.context.update(getattr(self, 'context', {})) 465s res.append(schema.dump(v)) 465s return res 465s else: 465s schema = self.serialization_schema_selector(value, obj) 465s schema.context.update(getattr(self, 'context', {})) 465s return schema.dump(value) 465s except Exception as err: 465s > raise TypeError( 465s 'Failed to serialize object. Error: {0}\n' 465s ' Ensure the serialization_schema_selector exists and ' 465s ' returns a Schema and that schema' 465s ' can serialize this value {1}'.format(err, value)) 465s E TypeError: Failed to serialize object. Error: 'NoneType' object is not iterable 465s E Ensure the serialization_schema_selector exists and returns a Schema and that schema can serialize this value 465s 465s /usr/lib/python3/dist-packages/marshmallow_polyfield/polyfield.py:77: TypeError 465s =============================== warnings summary =============================== 465s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_none 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_none returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s tests/test_deserialization.py::TestPolyField::test_deserailize_polyfield_none_required 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserailize_polyfield_none_required returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_type_error 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_type_error returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_validation_error 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_validation_error returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_generic_error 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_generic_error returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_schema_returned_is_invalid 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_invalid_schema_returned_is_invalid returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_errors 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyField::test_deserialize_polyfield_errors returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s tests/test_deserialization.py::TestPolyFieldDisambiguationByProperty::test_deserialize_polyfield 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_deserialization.py::TestPolyFieldDisambiguationByProperty::test_deserialize_polyfield returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s tests/test_serialization.py::test_serializing_named_tuple 465s /tmp/autopkgtest.PsA9BS/autopkgtest_tmp/tests/test_serialization.py:27: ChangedInMarshmallow4Warning: `Field` should not be instantiated. Use `fields.Raw` or another field subclass instead. 465s field = fields.Field() 465s 465s tests/test_serialization.py::test_serializing_polyfield_None 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_serialization.py::test_serializing_polyfield_None returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s tests/test_serialization.py::test_invalid_polyfield 465s /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but tests/test_serialization.py::test_invalid_polyfield returned [None, None], which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? 465s warnings.warn( 465s 465s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 465s =========================== short test summary info ============================ 465s FAILED tests/test_serialization.py::test_serializing_polyfield_rectangle - Ty... 465s FAILED tests/test_serialization.py::test_serializing_polyfield_many - TypeErr... 465s FAILED tests/test_serialization.py::test_serializing_polyfield_by_parent_type 465s ================== 3 failed, 16 passed, 12 warnings in 0.18s =================== 466s autopkgtest [04:17:34]: test upstream-tests: -----------------------] 466s upstream-tests FAIL non-zero exit status 1 466s autopkgtest [04:17:34]: test upstream-tests: - - - - - - - - - - results - - - - - - - - - - 467s autopkgtest [04:17:35]: test autodep8-python3: preparing testbed 688s autopkgtest [04:21:16]: testbed dpkg architecture: arm64 688s autopkgtest [04:21:16]: testbed apt version: 2.9.29 689s autopkgtest [04:21:17]: @@@@@@@@@@@@@@@@@@@@ test bed setup 689s autopkgtest [04:21:17]: testbed release detected to be: plucky 690s autopkgtest [04:21:18]: updating testbed package index (apt update) 690s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 690s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 690s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 690s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 690s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [3120 B] 690s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.6 kB] 690s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [788 kB] 691s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [79.1 kB] 691s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [97.6 kB] 691s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted arm64 Packages [7960 B] 691s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [698 kB] 691s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [12.1 kB] 691s Fetched 1811 kB in 1s (1929 kB/s) 692s Reading package lists... 692s + lsb_release --codename --short 692s + RELEASE=plucky 692s + cat 692s + [ plucky != trusty ] 692s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y --allow-downgrades -o Dpkg::Options::=--force-confnew dist-upgrade 692s Reading package lists... 692s Building dependency tree... 692s Reading state information... 693s Calculating upgrade... 693s The following packages will be upgraded: 693s dhcpcd-base 694s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 694s Need to get 216 kB of archives. 694s After this operation, 0 B of additional disk space will be used. 694s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 dhcpcd-base arm64 1:10.1.0-7 [216 kB] 694s Fetched 216 kB in 0s (505 kB/s) 695s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 116620 files and directories currently installed.) 695s Preparing to unpack .../dhcpcd-base_1%3a10.1.0-7_arm64.deb ... 695s Unpacking dhcpcd-base (1:10.1.0-7) over (1:10.1.0-6) ... 695s Setting up dhcpcd-base (1:10.1.0-7) ... 695s Processing triggers for man-db (2.13.0-1) ... 696s + rm /etc/apt/preferences.d/force-downgrade-to-release.pref 696s + /usr/lib/apt/apt-helper analyze-pattern ?true 696s + uname -r 696s + sed s/\./\\./g 696s + running_kernel_pattern=^linux-.*6\.12\.0-15-generic.* 696s + + cut -d/+ grep -v ^linux-.*6\.12\.0-15-generic.* 696s -f1 696s apt list ?obsolete 696s + tail -n+2 696s + true 696s + obsolete_pkgs= 696s + DEBIAN_FRONTEND=noninteractive eatmydata apt-get -y purge --autoremove 696s Reading package lists... 697s Building dependency tree... 697s Reading state information... 697s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 697s + grep -q trusty /etc/lsb-release 697s + [ ! -d /usr/share/doc/unattended-upgrades ] 697s + [ ! -d /usr/share/doc/lxd ] 697s + [ ! -d /usr/share/doc/lxd-client ] 697s + [ ! -d /usr/share/doc/snapd ] 697s + type iptables 697s + cat 697s + chmod 755 /etc/rc.local 697s + . /etc/rc.local 697s + iptables -w -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 697s + iptables -A OUTPUT -d 10.255.255.1/32 -p tcp -j DROP 697s + iptables -A OUTPUT -d 10.255.255.2/32 -p tcp -j DROP 697s + uname -m 697s + [ aarch64 = ppc64le ] 697s + [ -d /run/systemd/system ] 697s + systemd-detect-virt --quiet --vm 697s + mkdir -p /etc/systemd/system/systemd-random-seed.service.d/ 697s + cat 697s + grep -q lz4 /etc/initramfs-tools/initramfs.conf 697s + echo COMPRESS=lz4 697s autopkgtest [04:21:25]: upgrading testbed (apt dist-upgrade and autopurge) 698s Reading package lists... 698s Building dependency tree... 698s Reading state information... 698s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 699s Starting 2 pkgProblemResolver with broken count: 0 699s Done 699s Entering ResolveByKeep 700s 700s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 700s Reading package lists... 701s Building dependency tree... 701s Reading state information... 701s Starting pkgProblemResolver with broken count: 0 701s Starting 2 pkgProblemResolver with broken count: 0 701s Done 702s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 705s Reading package lists... 705s Building dependency tree... 705s Reading state information... 705s Starting pkgProblemResolver with broken count: 0 706s Starting 2 pkgProblemResolver with broken count: 0 706s Done 706s The following NEW packages will be installed: 706s python3-all python3-marshmallow python3-marshmallow-polyfield 706s python3-packaging python3.12 python3.12-minimal 706s 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. 706s Need to get 3013 kB of archives. 706s After this operation, 9251 kB of additional disk space will be used. 706s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.12-minimal arm64 3.12.9-1 [2236 kB] 707s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.12 arm64 3.12.9-1 [671 kB] 707s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-all arm64 3.13.1-1~exp2 [894 B] 707s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-packaging all 24.2-1 [51.5 kB] 707s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 python3-marshmallow all 3.26.1-0.1 [47.5 kB] 707s Get:6 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-marshmallow-polyfield all 5.10-1 [6118 B] 707s Fetched 3013 kB in 1s (4140 kB/s) 708s Selecting previously unselected package python3.12-minimal. 708s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 116620 files and directories currently installed.) 708s Preparing to unpack .../0-python3.12-minimal_3.12.9-1_arm64.deb ... 708s Unpacking python3.12-minimal (3.12.9-1) ... 708s Selecting previously unselected package python3.12. 708s Preparing to unpack .../1-python3.12_3.12.9-1_arm64.deb ... 708s Unpacking python3.12 (3.12.9-1) ... 708s Selecting previously unselected package python3-all. 708s Preparing to unpack .../2-python3-all_3.13.1-1~exp2_arm64.deb ... 708s Unpacking python3-all (3.13.1-1~exp2) ... 708s Selecting previously unselected package python3-packaging. 708s Preparing to unpack .../3-python3-packaging_24.2-1_all.deb ... 708s Unpacking python3-packaging (24.2-1) ... 708s Selecting previously unselected package python3-marshmallow. 708s Preparing to unpack .../4-python3-marshmallow_3.26.1-0.1_all.deb ... 708s Unpacking python3-marshmallow (3.26.1-0.1) ... 708s Selecting previously unselected package python3-marshmallow-polyfield. 708s Preparing to unpack .../5-python3-marshmallow-polyfield_5.10-1_all.deb ... 708s Unpacking python3-marshmallow-polyfield (5.10-1) ... 708s Setting up python3.12-minimal (3.12.9-1) ... 709s Setting up python3.12 (3.12.9-1) ... 710s Setting up python3-all (3.13.1-1~exp2) ... 710s Setting up python3-packaging (24.2-1) ... 711s Setting up python3-marshmallow (3.26.1-0.1) ... 711s Setting up python3-marshmallow-polyfield (5.10-1) ... 712s Processing triggers for man-db (2.13.0-1) ... 712s Processing triggers for systemd (257.2-3ubuntu1) ... 714s autopkgtest [04:21:42]: test autodep8-python3: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import marshmallow_polyfield; print(marshmallow_polyfield)" ; done 714s autopkgtest [04:21:42]: test autodep8-python3: [----------------------- 714s Testing with python3.12: 714s 714s Testing with python3.13: 714s 715s autopkgtest [04:21:43]: test autodep8-python3: -----------------------] 715s autodep8-python3 PASS (superficial) 715s autopkgtest [04:21:43]: test autodep8-python3: - - - - - - - - - - results - - - - - - - - - - 715s autopkgtest [04:21:43]: @@@@@@@@@@@@@@@@@@@@ summary 715s upstream-tests FAIL non-zero exit status 1 715s autodep8-python3 PASS (superficial) 734s nova [W] Using flock in prodstack6-arm64 734s Creating nova instance adt-plucky-arm64-python-marshmallow-polyfield-20250219-040948-juju-7f2275-prod-proposed-migration-environment-15-2676cbc9-646a-4c2d-9084-7b61a8514242 from image adt/ubuntu-plucky-arm64-server-20250218.img (UUID db1e3557-ca0b-4978-8424-9ef955671030)... 734s nova [W] Timed out waiting for dfcaab6b-3d06-44de-9cbd-1d60f2ff5204 to get deleted. 734s nova [W] Using flock in prodstack6-arm64 734s flock: timeout while waiting to get lock 734s Creating nova instance adt-plucky-arm64-python-marshmallow-polyfield-20250219-040948-juju-7f2275-prod-proposed-migration-environment-15-2676cbc9-646a-4c2d-9084-7b61a8514242 from image adt/ubuntu-plucky-arm64-server-20250218.img (UUID db1e3557-ca0b-4978-8424-9ef955671030)... 734s nova [W] Timed out waiting for 9aadddda-27af-4076-b94e-9348f088e655 to get deleted.