0s autopkgtest [17:00:58]: starting date and time: 2025-11-17 17:00:58+0000 0s autopkgtest [17:00:58]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [17:00:58]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.2wvn05id/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python-ruyaml --apt-upgrade python-yamlfix --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python-ruyaml/0.92.1-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-s390x-9.secgroup --name adt-resolute-s390x-python-yamlfix-20251117-170058-juju-7f2275-prod-proposed-migration-environment-2-a8e33966-a802-4217-8b3d-e3eb2181906d --image adt/ubuntu-resolute-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-s390x -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 6s Creating nova instance adt-resolute-s390x-python-yamlfix-20251117-170058-juju-7f2275-prod-proposed-migration-environment-2-a8e33966-a802-4217-8b3d-e3eb2181906d from image adt/ubuntu-resolute-s390x-server-20251117.img (UUID a3a3e3b9-e6ba-478c-a5e9-fce6f0982a95)... 53s autopkgtest [17:01:51]: testbed dpkg architecture: s390x 53s autopkgtest [17:01:51]: testbed apt version: 3.1.11 54s autopkgtest [17:01:52]: @@@@@@@@@@@@@@@@@@@@ test bed setup 54s autopkgtest [17:01:52]: testbed release detected to be: None 55s autopkgtest [17:01:53]: updating testbed package index (apt update) 55s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 55s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 55s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 55s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 56s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9852 B] 56s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [779 kB] 56s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 56s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [73.2 kB] 56s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [134 kB] 56s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted s390x Packages [940 B] 56s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [488 kB] 56s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [10.6 kB] 56s Fetched 1606 kB in 1s (1548 kB/s) 57s Reading package lists... 58s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 58s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 58s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 58s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 58s Reading package lists... 58s Reading package lists... 59s Building dependency tree... 59s Reading state information... 59s Calculating upgrade... 59s The following packages will be upgraded: 59s apt libapt-pkg7.0 libcrypt-dev libcrypt1 usbutils 59s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 59s Need to get 2926 kB of archives. 59s After this operation, 50.2 kB of additional disk space will be used. 59s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libcrypt-dev s390x 1:4.5.1-1 [127 kB] 59s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x libcrypt1 s390x 1:4.5.1-1 [96.1 kB] 59s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x libapt-pkg7.0 s390x 3.1.12 [1150 kB] 59s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x apt s390x 3.1.12 [1468 kB] 60s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x usbutils s390x 1:019-1 [85.6 kB] 60s dpkg-preconfigure: unable to re-open stdin: No such file or directory 60s Fetched 2926 kB in 1s (3157 kB/s) 60s (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 ... 61309 files and directories currently installed.) 60s Preparing to unpack .../libcrypt-dev_1%3a4.5.1-1_s390x.deb ... 60s Unpacking libcrypt-dev:s390x (1:4.5.1-1) over (1:4.4.38-1build1) ... 60s Preparing to unpack .../libcrypt1_1%3a4.5.1-1_s390x.deb ... 60s Unpacking libcrypt1:s390x (1:4.5.1-1) over (1:4.4.38-1build1) ... 60s Setting up libcrypt1:s390x (1:4.5.1-1) ... 60s (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 ... 61309 files and directories currently installed.) 60s Preparing to unpack .../libapt-pkg7.0_3.1.12_s390x.deb ... 60s Unpacking libapt-pkg7.0:s390x (3.1.12) over (3.1.11) ... 60s Preparing to unpack .../archives/apt_3.1.12_s390x.deb ... 60s Unpacking apt (3.1.12) over (3.1.11) ... 60s Preparing to unpack .../usbutils_1%3a019-1_s390x.deb ... 60s Unpacking usbutils (1:019-1) over (1:018-2) ... 61s Setting up usbutils (1:019-1) ... 61s Setting up libcrypt-dev:s390x (1:4.5.1-1) ... 61s Setting up libapt-pkg7.0:s390x (3.1.12) ... 61s Setting up apt (3.1.12) ... 61s Processing triggers for man-db (2.13.1-1) ... 62s Processing triggers for libc-bin (2.42-2ubuntu2) ... 63s autopkgtest [17:02:01]: upgrading testbed (apt dist-upgrade and autopurge) 64s Reading package lists... 64s Building dependency tree... 64s Reading state information... 64s Calculating upgrade... 64s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 64s Reading package lists... 64s Building dependency tree... 64s Reading state information... 64s Solving dependencies... 65s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 65s autopkgtest [17:02:03]: rebooting testbed after setup commands that affected boot 80s autopkgtest [17:02:18]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP Mon Sep 22 08:56:47 UTC 2025 83s autopkgtest [17:02:21]: @@@@@@@@@@@@@@@@@@@@ apt-source python-yamlfix 85s Get:1 http://ftpmaster.internal/ubuntu resolute/universe python-yamlfix 1.17.0-4 (dsc) [2620 B] 85s Get:2 http://ftpmaster.internal/ubuntu resolute/universe python-yamlfix 1.17.0-4 (tar) [178 kB] 85s Get:3 http://ftpmaster.internal/ubuntu resolute/universe python-yamlfix 1.17.0-4 (diff) [5320 B] 85s gpgv: Signature made Sat Feb 22 16:47:38 2025 UTC 85s gpgv: using RSA key 2EE7A7A517FC124CF115C354651EEFB02527DF13 85s gpgv: issuer "roam@debian.org" 85s gpgv: Can't check signature: No public key 85s dpkg-source: warning: cannot verify inline signature for ./python-yamlfix_1.17.0-4.dsc: no acceptable signature found 85s autopkgtest [17:02:23]: testing package python-yamlfix version 1.17.0-4 85s autopkgtest [17:02:23]: build not needed 86s autopkgtest [17:02:24]: test smoke: preparing testbed 86s Reading package lists... 86s Building dependency tree... 86s Reading state information... 86s Solving dependencies... 87s The following NEW packages will be installed: 87s libjs-jquery libjs-jquery-hotkeys libjs-jquery-isonscreen 87s libjs-jquery-metadata libjs-jquery-tablesorter 87s libjs-jquery-throttle-debounce libjs-sphinxdoc libjs-underscore python3-all 87s python3-annotated-types python3-click python3-coverage python3-dnspython 87s python3-email-validator python3-execnet python3-iniconfig python3-maison 87s python3-pluggy python3-pydantic python3-pydantic-core python3-pytest 87s python3-pytest-cov python3-pytest-xdist python3-ruyaml python3-toml 87s python3-yamlfix 87s 0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded. 87s Need to get 4040 kB of archives. 87s After this operation, 17.1 MB of additional disk space will be used. 87s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 87s Get:2 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jquery-metadata all 12-4 [6582 B] 87s Get:3 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jquery-tablesorter all 1:2.31.3+dfsg1-4 [192 kB] 87s Get:4 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jquery-throttle-debounce all 1.1+dfsg.1-2 [12.5 kB] 87s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 87s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-sphinxdoc all 8.2.3-1ubuntu2 [28.0 kB] 87s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x python3-all s390x 3.13.7-1 [886 B] 87s Get:8 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-annotated-types all 0.7.0-1 [19.4 kB] 87s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x python3-click all 8.2.0+0.really.8.1.8-1 [80.0 kB] 87s Get:10 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-coverage s390x 7.8.2+dfsg1-1 [156 kB] 87s Get:11 http://ftpmaster.internal/ubuntu resolute/main s390x python3-dnspython all 2.7.0-1ubuntu1 [167 kB] 87s Get:12 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-email-validator all 2.2.0-1 [28.5 kB] 87s Get:13 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-execnet all 2.1.1-1 [33.4 kB] 87s Get:14 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-iniconfig all 2.1.0-1 [6840 B] 87s Get:15 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-toml all 0.10.2-1 [16.5 kB] 87s Get:16 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-maison all 2.0.0-3 [48.3 kB] 87s Get:17 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pluggy all 1.6.0-1 [21.0 kB] 87s Get:18 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pydantic-core s390x 2.27.2-3 [2064 kB] 88s Get:19 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pydantic s390x 2.10.6-2 [288 kB] 88s Get:20 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pytest all 8.3.5-2 [252 kB] 88s Get:21 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jquery-hotkeys all 0.2.0-1 [13.3 kB] 88s Get:22 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jquery-isonscreen all 1.2.0-1.1 [3244 B] 88s Get:23 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pytest-cov all 5.0.0-1 [21.3 kB] 88s Get:24 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pytest-xdist all 3.8.0-2 [34.6 kB] 88s Get:25 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x python3-ruyaml all 0.92.1-2 [83.1 kB] 88s Get:26 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-yamlfix all 1.17.0-4 [16.7 kB] 88s Fetched 4040 kB in 1s (2705 kB/s) 88s Selecting previously unselected package libjs-jquery. 88s (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 ... 61309 files and directories currently installed.) 88s Preparing to unpack .../00-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 88s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 88s Selecting previously unselected package libjs-jquery-metadata. 88s Preparing to unpack .../01-libjs-jquery-metadata_12-4_all.deb ... 88s Unpacking libjs-jquery-metadata (12-4) ... 88s Selecting previously unselected package libjs-jquery-tablesorter. 88s Preparing to unpack .../02-libjs-jquery-tablesorter_1%3a2.31.3+dfsg1-4_all.deb ... 88s Unpacking libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 88s Selecting previously unselected package libjs-jquery-throttle-debounce. 89s Preparing to unpack .../03-libjs-jquery-throttle-debounce_1.1+dfsg.1-2_all.deb ... 89s Unpacking libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 89s Selecting previously unselected package libjs-underscore. 89s Preparing to unpack .../04-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 89s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 89s Selecting previously unselected package libjs-sphinxdoc. 89s Preparing to unpack .../05-libjs-sphinxdoc_8.2.3-1ubuntu2_all.deb ... 89s Unpacking libjs-sphinxdoc (8.2.3-1ubuntu2) ... 89s Selecting previously unselected package python3-all. 89s Preparing to unpack .../06-python3-all_3.13.7-1_s390x.deb ... 89s Unpacking python3-all (3.13.7-1) ... 89s Selecting previously unselected package python3-annotated-types. 89s Preparing to unpack .../07-python3-annotated-types_0.7.0-1_all.deb ... 89s Unpacking python3-annotated-types (0.7.0-1) ... 89s Selecting previously unselected package python3-click. 89s Preparing to unpack .../08-python3-click_8.2.0+0.really.8.1.8-1_all.deb ... 89s Unpacking python3-click (8.2.0+0.really.8.1.8-1) ... 89s Selecting previously unselected package python3-coverage. 89s Preparing to unpack .../09-python3-coverage_7.8.2+dfsg1-1_s390x.deb ... 89s Unpacking python3-coverage (7.8.2+dfsg1-1) ... 89s Selecting previously unselected package python3-dnspython. 89s Preparing to unpack .../10-python3-dnspython_2.7.0-1ubuntu1_all.deb ... 89s Unpacking python3-dnspython (2.7.0-1ubuntu1) ... 89s Selecting previously unselected package python3-email-validator. 89s Preparing to unpack .../11-python3-email-validator_2.2.0-1_all.deb ... 89s Unpacking python3-email-validator (2.2.0-1) ... 89s Selecting previously unselected package python3-execnet. 89s Preparing to unpack .../12-python3-execnet_2.1.1-1_all.deb ... 89s Unpacking python3-execnet (2.1.1-1) ... 89s Selecting previously unselected package python3-iniconfig. 89s Preparing to unpack .../13-python3-iniconfig_2.1.0-1_all.deb ... 89s Unpacking python3-iniconfig (2.1.0-1) ... 89s Selecting previously unselected package python3-toml. 89s Preparing to unpack .../14-python3-toml_0.10.2-1_all.deb ... 89s Unpacking python3-toml (0.10.2-1) ... 89s Selecting previously unselected package python3-maison. 89s Preparing to unpack .../15-python3-maison_2.0.0-3_all.deb ... 89s Unpacking python3-maison (2.0.0-3) ... 89s Selecting previously unselected package python3-pluggy. 89s Preparing to unpack .../16-python3-pluggy_1.6.0-1_all.deb ... 89s Unpacking python3-pluggy (1.6.0-1) ... 89s Selecting previously unselected package python3-pydantic-core. 89s Preparing to unpack .../17-python3-pydantic-core_2.27.2-3_s390x.deb ... 89s Unpacking python3-pydantic-core (2.27.2-3) ... 89s Selecting previously unselected package python3-pydantic. 89s Preparing to unpack .../18-python3-pydantic_2.10.6-2_s390x.deb ... 89s Unpacking python3-pydantic (2.10.6-2) ... 89s Selecting previously unselected package python3-pytest. 89s Preparing to unpack .../19-python3-pytest_8.3.5-2_all.deb ... 89s Unpacking python3-pytest (8.3.5-2) ... 89s Selecting previously unselected package libjs-jquery-hotkeys. 89s Preparing to unpack .../20-libjs-jquery-hotkeys_0.2.0-1_all.deb ... 89s Unpacking libjs-jquery-hotkeys (0.2.0-1) ... 89s Selecting previously unselected package libjs-jquery-isonscreen. 89s Preparing to unpack .../21-libjs-jquery-isonscreen_1.2.0-1.1_all.deb ... 89s Unpacking libjs-jquery-isonscreen (1.2.0-1.1) ... 89s Selecting previously unselected package python3-pytest-cov. 89s Preparing to unpack .../22-python3-pytest-cov_5.0.0-1_all.deb ... 89s Unpacking python3-pytest-cov (5.0.0-1) ... 89s Selecting previously unselected package python3-pytest-xdist. 89s Preparing to unpack .../23-python3-pytest-xdist_3.8.0-2_all.deb ... 89s Unpacking python3-pytest-xdist (3.8.0-2) ... 89s Selecting previously unselected package python3-ruyaml. 89s Preparing to unpack .../24-python3-ruyaml_0.92.1-2_all.deb ... 89s Unpacking python3-ruyaml (0.92.1-2) ... 89s Selecting previously unselected package python3-yamlfix. 89s Preparing to unpack .../25-python3-yamlfix_1.17.0-4_all.deb ... 89s Unpacking python3-yamlfix (1.17.0-4) ... 89s Setting up python3-iniconfig (2.1.0-1) ... 89s Setting up python3-pydantic-core (2.27.2-3) ... 89s Setting up python3-all (3.13.7-1) ... 89s Setting up python3-coverage (7.8.2+dfsg1-1) ... 89s Setting up libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 89s Setting up python3-click (8.2.0+0.really.8.1.8-1) ... 89s Setting up python3-annotated-types (0.7.0-1) ... 89s Setting up python3-toml (0.10.2-1) ... 89s Setting up python3-pluggy (1.6.0-1) ... 89s Setting up python3-dnspython (2.7.0-1ubuntu1) ... 90s Setting up python3-email-validator (2.2.0-1) ... 90s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 90s Setting up libjs-jquery-hotkeys (0.2.0-1) ... 90s Setting up python3-execnet (2.1.1-1) ... 90s Setting up python3-ruyaml (0.92.1-2) ... 90s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 90s Setting up python3-pytest (8.3.5-2) ... 90s Setting up libjs-jquery-metadata (12-4) ... 90s Setting up python3-pydantic (2.10.6-2) ... 91s Setting up libjs-jquery-isonscreen (1.2.0-1.1) ... 91s Setting up libjs-sphinxdoc (8.2.3-1ubuntu2) ... 91s Setting up libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 91s Setting up python3-pytest-xdist (3.8.0-2) ... 91s Setting up python3-pytest-cov (5.0.0-1) ... 91s Setting up python3-maison (2.0.0-3) ... 91s Setting up python3-yamlfix (1.17.0-4) ... 91s Processing triggers for man-db (2.13.1-1) ... 92s autopkgtest [17:02:30]: test smoke: [----------------------- 93s 93s *************************** 93s *** Testing with python3.13 93s *************************** 93s 93s Content of current working folder: 93s 93s total 12 93s drwxr-xr-x 3 ubuntu ubuntu 4096 Nov 17 17:02 . 93s drwxrwxrwx 5 root root 4096 Nov 17 17:02 .. 93s drwxrwxr-x 5 ubuntu ubuntu 4096 Nov 17 17:02 tests 93s Running tests... 93s 93s ============================= test session starts ============================== 93s platform linux -- Python 3.13.9, pytest-8.3.5, pluggy-1.6.0 93s rootdir: /tmp/autopkgtest.Dy1NEC/autopkgtest_tmp 93s plugins: typeguard-4.4.2, xdist-3.8.0, cov-5.0.0 93s collected 139 items 93s 93s tests/e2e/test_cli.py ..................... [ 15%] 93s tests/unit/test_adapter_yaml.py ....FF............................ [ 39%] 93s tests/unit/test_services.py ............................................ [ 71%] 93s ..................F...FF............... [ 99%] 93s tests/unit/test_version.py . [100%] 93s 93s =================================== FAILURES =================================== 93s _________________ TestYamlAdapter.test_if_line_length_expands __________________ 93s 93s self = 93s 93s def test_if_line_length_expands(self) -> None: 93s """Test if configurable line-length expands string value.""" 93s source = dedent( 93s """\ 93s key: value value value value value value 93s value value value value value value 93s value value value value value value 93s value value value value value value 93s value value value value value value 93s value value value value value value 93s """ 93s ) 93s fixed_source = dedent( 93s """\ 93s --- 93s key: value value value value value value value value value value value value value value value value value 93s value value value value value value value value value value value value value value value value value 93s value value 93s """ # noqa: E501 93s ) 93s config = YamlfixConfig() 93s config.line_length = 100 93s 93s result = fix_code(source, config) 93s 93s > assert result == fixed_source 93s E AssertionError: assert '---\nkey: va...value value\n' == '---\nkey: va...value value\n' 93s E 93s E Skipping 94 identical leading characters in diff, use -v to show 93s E - alue value value 93s E ? ------ 93s E + alue value 93s E - value value value value value value value value value value value value value value value value value 93s E ? -----... 93s E 93s E ...Full output truncated (3 lines hidden), use '-vv' to show 93s 93s tests/unit/test_adapter_yaml.py:146: AssertionError 93s ------------------------------ Captured log call ------------------------------- 93s [+] Setting up ruamel yaml 'quote simple values' configuration... 93s [+] Setting up ruamel yaml 'sequence flow style' configuration... 93s [+] Running ruamel yaml base configuration... 93s [+] Running source code fixers... 93s [+] Fixing truthy strings... 93s [+] Fixing jinja2 variables... 93s [+] Running ruamel yaml fixer... 93s [+] Restoring truthy strings... 93s [+] Restoring jinja2 variables... 93s [+] Restoring double exclamations... 93s [+] Fixing comments... 93s [+] Fixing flow-style lists... 93s [+] Fixing top level lists... 93s ________________ TestYamlAdapter.test_if_line_length_contracts _________________ 93s 93s self = 93s 93s def test_if_line_length_contracts(self) -> None: 93s """Test if configurable line-length contracts string value.""" 93s source = dedent( 93s """\ 93s key: value value value value value value 93s value value value value value value 93s value value value value value value 93s value value value value value value 93s value value value value value value 93s value value value value value value 93s """ 93s ) 93s fixed_source = dedent( 93s """\ 93s --- 93s key: value value value 93s value value value value 93s value value value value 93s value value value value 93s value value value value 93s value value value value 93s value value value value 93s value value value value 93s value value value value 93s value 93s """ 93s ) 93s config = YamlfixConfig() 93s config.line_length = 20 93s 93s result = fix_code(source, config) 93s 93s > assert result == fixed_source 93s E AssertionError: assert '---\nkey: va...e \n value\n' == '---\nkey: va...ue\n value\n' 93s E 93s E --- 93s E - key: value value value 93s E ? ----- 93s E + key: value value 93s E - value value value value 93s E ? -----... 93s E 93s E ...Full output truncated (26 lines hidden), use '-vv' to show 93s 93s tests/unit/test_adapter_yaml.py:180: AssertionError 93s ------------------------------ Captured log call ------------------------------- 93s [+] Setting up ruamel yaml 'quote simple values' configuration... 93s [+] Setting up ruamel yaml 'sequence flow style' configuration... 93s [+] Running ruamel yaml base configuration... 93s [+] Running source code fixers... 93s [+] Fixing truthy strings... 93s [+] Fixing jinja2 variables... 93s [+] Running ruamel yaml fixer... 93s [+] Restoring truthy strings... 93s [+] Restoring jinja2 variables... 93s [+] Restoring double exclamations... 93s [+] Fixing comments... 93s [+] Fixing flow-style lists... 93s [+] Fixing top level lists... 93s ________ TestFixCode.test_anchors_and_aliases_with_duplicate_merge_keys ________ 93s 93s self = 93s 93s def test_anchors_and_aliases_with_duplicate_merge_keys(self) -> None: 93s """All anchors and aliases should be preserved even with multiple merge keys 93s and merge keys should be formatted as a list in a single line. 93s """ 93s source = dedent( 93s """\ 93s --- 93s x-node-volumes: &node-volumes 93s node3_data: 93s x-vault-volumes: &vault-volumes 93s vault_data: 93s x-mongo-volumes: &mongo-volumes 93s mongo_data: 93s x-certmgr-volumes: &certmgr-volumes 93s cert_data: 93s volumes: 93s <<: *node-volumes 93s <<: *vault-volumes 93s <<: *mongo-volumes 93s <<: *certmgr-volumes 93s """ 93s ) 93s desired_source = dedent( 93s """\ 93s --- 93s x-node-volumes: &node-volumes 93s node3_data: 93s x-vault-volumes: &vault-volumes 93s vault_data: 93s x-mongo-volumes: &mongo-volumes 93s mongo_data: 93s x-certmgr-volumes: &certmgr-volumes 93s cert_data: 93s volumes: 93s <<: 93s - *node-volumes 93s - *vault-volumes 93s - *mongo-volumes 93s - *certmgr-volumes 93s """ 93s ) 93s config = YamlfixConfig() 93s config.allow_duplicate_keys = True 93s 93s result = fix_code(source, config) 93s 93s > assert result == desired_source 93s E AssertionError: assert '---\nx-node-...ode-volumes\n' == '---\nx-node-...mgr-volumes\n' 93s E 93s E Skipping 54 identical leading characters in diff, use -v to show 93s E - t-volumes: &vault-volumes 93s E + t-volumes: 93s E vault_data: 93s E - x-mongo-volumes: &mongo-volumes 93s E + x-mongo-volumes:... 93s E 93s E ...Full output truncated (13 lines hidden), use '-vv' to show 93s 93s tests/unit/test_services.py:576: AssertionError 93s ------------------------------ Captured log call ------------------------------- 93s [+] Setting up ruamel yaml 'quote simple values' configuration... 93s [+] Setting up ruamel yaml 'sequence flow style' configuration... 93s [+] Running ruamel yaml base configuration... 93s [+] Running source code fixers... 93s [+] Fixing truthy strings... 93s [+] Fixing jinja2 variables... 93s [+] Running ruamel yaml fixer... 93s [+] Restoring truthy strings... 93s [+] Restoring jinja2 variables... 93s [+] Restoring double exclamations... 93s [+] Fixing comments... 93s [+] Fixing flow-style lists... 93s [+] Fixing top level lists... 93s ___________ TestFixCode.test_fix_code_respects_many_jinja_variables ____________ 93s 93s self = 93s 93s def test_fix_code_respects_many_jinja_variables( 93s self, 93s ) -> None: 93s """ 93s Given: Code with a long string that contains two jinja variables 93s When: fix_code is run 93s Then: The jinja string is not broken 93s """ 93s source = ( 93s "---\n" 93s "project: This is a long long {{ variable_1 }} line that should not be " 93s "split on the jinja {{ variable_2 }}" 93s ) 93s desired_source = ( 93s "---\n" 93s "project: This is a long long {{ variable_1 }} line that should not be " 93s "split on the\n" 93s " jinja {{ variable_2 }}\n" 93s ) 93s 93s result = fix_code(source) 93s 93s > assert result == desired_source 93s E AssertionError: assert '---\nproject...riable_2 }}\n' == '---\nproject...riable_2 }}\n' 93s E 93s E Skipping 73 identical leading characters in diff, use -v to show 93s E - split on the 93s E ? --- 93s E + split on 93s E - jinja {{ variable_2 }} 93s E + the jinja {{ variable_2 }} 93s E ? ++++ 93s 93s tests/unit/test_services.py:663: AssertionError 93s ------------------------------ Captured log call ------------------------------- 93s [+] Setting up ruamel yaml 'quote simple values' configuration... 93s [+] Setting up ruamel yaml 'sequence flow style' configuration... 93s [+] Running ruamel yaml base configuration... 93s [+] Running source code fixers... 93s [+] Fixing truthy strings... 93s [+] Fixing jinja2 variables... 93s [+] Running ruamel yaml fixer... 93s [+] Restoring truthy strings... 93s [+] Restoring jinja2 variables... 93s [+] Restoring double exclamations... 93s [+] Fixing comments... 93s [+] Fixing flow-style lists... 93s [+] Fixing top level lists... 93s ______ TestFixCode.test_fix_code_respects_jinja_variables_with_operations ______ 93s 93s self = 93s 93s def test_fix_code_respects_jinja_variables_with_operations( 93s self, 93s ) -> None: 93s """ 93s Given: Code with a long string that contains a jinja variable with operations 93s When: fix_code is run 93s Then: The jinja string is not broken 93s """ 93s source = ( 93s "---\n" 93s "project: This is a long long long long line that should not be split on " 93s "the jinja {{ variable that contains different words }}" 93s ) 93s desired_source = ( 93s "---\n" 93s "project: This is a long long long long line that should not be split on " 93s "the jinja\n" 93s " {{ variable that contains different words }}\n" 93s ) 93s 93s result = fix_code(source) 93s 93s > assert result == desired_source 93s E AssertionError: assert '---\nproject...nt words }}\n' == '---\nproject...nt words }}\n' 93s E 93s E Skipping 70 identical leading characters in diff, use -v to show 93s E - it on the jinja 93s E ? ----- 93s E + it on the 93s E - {{ variable that contains different words }} 93s E + jinja {{ variable that contains different words }} 93s E ? ++++++ 93s 93s tests/unit/test_services.py:687: AssertionError 93s ------------------------------ Captured log call ------------------------------- 93s [+] Setting up ruamel yaml 'quote simple values' configuration... 93s [+] Setting up ruamel yaml 'sequence flow style' configuration... 93s [+] Running ruamel yaml base configuration... 93s [+] Running source code fixers... 93s [+] Fixing truthy strings... 93s [+] Fixing jinja2 variables... 93s [+] Running ruamel yaml fixer... 93s [+] Restoring truthy strings... 93s [+] Restoring jinja2 variables... 93s [+] Restoring double exclamations... 93s [+] Fixing comments... 93s [+] Fixing flow-style lists... 93s [+] Fixing top level lists... 93s =============================== warnings summary =============================== 93s tests/e2e/test_cli.py:73 93s /tmp/autopkgtest.Dy1NEC/autopkgtest_tmp/tests/e2e/test_cli.py:73: PytestUnknownMarkWarning: Unknown pytest.mark.secondary - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 93s @pytest.mark.secondary() 93s 93s tests/e2e/test_cli.py:153 93s /tmp/autopkgtest.Dy1NEC/autopkgtest_tmp/tests/e2e/test_cli.py:153: PytestUnknownMarkWarning: Unknown pytest.mark.secondary - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 93s @pytest.mark.secondary() 93s 93s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 93s =========================== short test summary info ============================ 93s FAILED tests/unit/test_adapter_yaml.py::TestYamlAdapter::test_if_line_length_expands 93s FAILED tests/unit/test_adapter_yaml.py::TestYamlAdapter::test_if_line_length_contracts 93s FAILED tests/unit/test_services.py::TestFixCode::test_anchors_and_aliases_with_duplicate_merge_keys 93s FAILED tests/unit/test_services.py::TestFixCode::test_fix_code_respects_many_jinja_variables 93s FAILED tests/unit/test_services.py::TestFixCode::test_fix_code_respects_jinja_variables_with_operations 93s ================== 5 failed, 134 passed, 2 warnings in 0.45s =================== 94s autopkgtest [17:02:32]: test smoke: -----------------------] 94s autopkgtest [17:02:32]: test smoke: - - - - - - - - - - results - - - - - - - - - - 94s smoke FAIL non-zero exit status 1 95s autopkgtest [17:02:33]: @@@@@@@@@@@@@@@@@@@@ summary 95s smoke FAIL non-zero exit status 1