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