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