0s autopkgtest [16:01:42]: starting date and time: 2024-07-26 16:01:42+0000 0s autopkgtest [16:01:42]: git checkout: fd3bed09 nova: allow more retries for quota issues 0s autopkgtest [16:01:42]: host juju-7f2275-prod-proposed-migration-environment-3; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.jd68_m25/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:pydantic --apt-upgrade python-maison --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=pydantic/2.4.2-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-3@bos03-arm64-13.secgroup --name adt-oracular-arm64-python-maison-20240726-160142-juju-7f2275-prod-proposed-migration-environment-3-81b7fb83-6677-48cb-9f69-e47d6f84ceaa --image adt/ubuntu-oracular-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-3 --net-id=net_prod-proposed-migration -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 109s autopkgtest [16:03:31]: testbed dpkg architecture: arm64 110s autopkgtest [16:03:32]: testbed apt version: 2.9.6 110s autopkgtest [16:03:32]: @@@@@@@@@@@@@@@@@@@@ test bed setup 111s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease [126 kB] 111s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/universe Sources [436 kB] 111s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/main Sources [50.6 kB] 111s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/restricted Sources [8548 B] 111s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse Sources [4288 B] 111s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main arm64 Packages [88.6 kB] 111s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/main arm64 c-n-f Metadata [2116 B] 111s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/restricted arm64 Packages [43.9 kB] 111s Get:9 http://ftpmaster.internal/ubuntu oracular-proposed/restricted arm64 c-n-f Metadata [364 B] 111s Get:10 http://ftpmaster.internal/ubuntu oracular-proposed/universe arm64 Packages [482 kB] 111s Get:11 http://ftpmaster.internal/ubuntu oracular-proposed/universe arm64 c-n-f Metadata [8752 B] 111s Get:12 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse arm64 Packages [8744 B] 111s Get:13 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse arm64 c-n-f Metadata [276 B] 113s Fetched 1261 kB in 1s (1507 kB/s) 113s Reading package lists... 116s Reading package lists... 116s Building dependency tree... 116s Reading state information... 116s Calculating upgrade... 117s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 117s Reading package lists... 117s Building dependency tree... 117s Reading state information... 118s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 119s Hit:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease 119s Hit:2 http://ftpmaster.internal/ubuntu oracular InRelease 119s Hit:3 http://ftpmaster.internal/ubuntu oracular-updates InRelease 119s Hit:4 http://ftpmaster.internal/ubuntu oracular-security InRelease 120s Reading package lists... 121s Reading package lists... 121s Building dependency tree... 121s Reading state information... 121s Calculating upgrade... 122s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 122s Reading package lists... 122s Building dependency tree... 122s Reading state information... 123s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 128s autopkgtest [16:03:50]: testbed running kernel: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 02:32:42 UTC 2024 128s autopkgtest [16:03:50]: @@@@@@@@@@@@@@@@@@@@ apt-source python-maison 130s Get:1 http://ftpmaster.internal/ubuntu oracular/universe python-maison 1.4.2-1 (dsc) [2201 B] 130s Get:2 http://ftpmaster.internal/ubuntu oracular/universe python-maison 1.4.2-1 (tar) [61.2 kB] 130s Get:3 http://ftpmaster.internal/ubuntu oracular/universe python-maison 1.4.2-1 (diff) [2628 B] 131s gpgv: Signature made Fri Nov 17 12:49:35 2023 UTC 131s gpgv: using RSA key FB8ACFA78C726089C38AD0269605A1098C63B92A 131s gpgv: Can't check signature: No public key 131s dpkg-source: warning: cannot verify inline signature for ./python-maison_1.4.2-1.dsc: no acceptable signature found 131s autopkgtest [16:03:53]: testing package python-maison version 1.4.2-1 131s autopkgtest [16:03:53]: build not needed 132s autopkgtest [16:03:54]: test run-tests: preparing testbed 134s Reading package lists... 134s Building dependency tree... 134s Reading state information... 134s Starting pkgProblemResolver with broken count: 0 134s Starting 2 pkgProblemResolver with broken count: 0 134s Done 135s The following additional packages will be installed: 135s python3-all python3-annotated-types python3-click python3-colorama 135s python3-dnspython python3-email-validator python3-iniconfig python3-maison 135s python3-packaging python3-pluggy python3-pydantic python3-pydantic-core 135s python3-pytest python3-toml 135s Suggested packages: 135s python3-trio python3-aioquic python3-h2 python3-httpx python3-httpcore 135s The following NEW packages will be installed: 135s autopkgtest-satdep python3-all python3-annotated-types python3-click 135s python3-colorama python3-dnspython python3-email-validator python3-iniconfig 135s python3-maison python3-packaging python3-pluggy python3-pydantic 135s python3-pydantic-core python3-pytest python3-toml 135s 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. 135s Need to get 2463 kB/2463 kB of archives. 135s After this operation, 9849 kB of additional disk space will be used. 135s Get:1 /tmp/autopkgtest.jCzTPL/1-autopkgtest-satdep.deb autopkgtest-satdep arm64 0 [724 B] 135s Get:2 http://ftpmaster.internal/ubuntu oracular/main arm64 python3-all arm64 3.12.3-0ubuntu1 [888 B] 135s Get:3 http://ftpmaster.internal/ubuntu oracular/universe arm64 python3-annotated-types all 0.7.0-1 [19.4 kB] 135s Get:4 http://ftpmaster.internal/ubuntu oracular/main arm64 python3-colorama all 0.4.6-4 [32.1 kB] 136s Get:5 http://ftpmaster.internal/ubuntu oracular/main arm64 python3-click all 8.1.7-1 [79.1 kB] 136s Get:6 http://ftpmaster.internal/ubuntu oracular/main arm64 python3-dnspython all 2.6.1-1ubuntu1 [163 kB] 136s Get:7 http://ftpmaster.internal/ubuntu oracular/universe arm64 python3-email-validator all 2.2.0-1 [28.5 kB] 136s Get:8 http://ftpmaster.internal/ubuntu oracular/universe arm64 python3-iniconfig all 1.1.1-2 [6024 B] 136s Get:9 http://ftpmaster.internal/ubuntu oracular/universe arm64 python3-pydantic-core arm64 2.11.0-1 [1479 kB] 136s Get:10 http://ftpmaster.internal/ubuntu oracular-proposed/main arm64 python3-pydantic arm64 2.4.2-1 [262 kB] 136s Get:11 http://ftpmaster.internal/ubuntu oracular/universe arm64 python3-toml all 0.10.2-1 [16.5 kB] 136s Get:12 http://ftpmaster.internal/ubuntu oracular/universe arm64 python3-maison all 1.4.2-1 [8876 B] 136s Get:13 http://ftpmaster.internal/ubuntu oracular/main arm64 python3-packaging all 24.1-1 [41.4 kB] 136s Get:14 http://ftpmaster.internal/ubuntu oracular/universe arm64 python3-pluggy all 1.5.0-1 [21.0 kB] 136s Get:15 http://ftpmaster.internal/ubuntu oracular/universe arm64 python3-pytest all 7.4.4-1 [305 kB] 136s Fetched 2463 kB in 1s (3173 kB/s) 137s Selecting previously unselected package python3-all. 137s (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 ... 78607 files and directories currently installed.) 137s Preparing to unpack .../00-python3-all_3.12.3-0ubuntu1_arm64.deb ... 137s Unpacking python3-all (3.12.3-0ubuntu1) ... 137s Selecting previously unselected package python3-annotated-types. 137s Preparing to unpack .../01-python3-annotated-types_0.7.0-1_all.deb ... 137s Unpacking python3-annotated-types (0.7.0-1) ... 137s Selecting previously unselected package python3-colorama. 137s Preparing to unpack .../02-python3-colorama_0.4.6-4_all.deb ... 137s Unpacking python3-colorama (0.4.6-4) ... 137s Selecting previously unselected package python3-click. 138s Preparing to unpack .../03-python3-click_8.1.7-1_all.deb ... 138s Unpacking python3-click (8.1.7-1) ... 138s Selecting previously unselected package python3-dnspython. 138s Preparing to unpack .../04-python3-dnspython_2.6.1-1ubuntu1_all.deb ... 138s Unpacking python3-dnspython (2.6.1-1ubuntu1) ... 138s Selecting previously unselected package python3-email-validator. 138s Preparing to unpack .../05-python3-email-validator_2.2.0-1_all.deb ... 138s Unpacking python3-email-validator (2.2.0-1) ... 138s Selecting previously unselected package python3-iniconfig. 138s Preparing to unpack .../06-python3-iniconfig_1.1.1-2_all.deb ... 138s Unpacking python3-iniconfig (1.1.1-2) ... 138s Selecting previously unselected package python3-pydantic-core. 139s Preparing to unpack .../07-python3-pydantic-core_2.11.0-1_arm64.deb ... 139s Unpacking python3-pydantic-core (2.11.0-1) ... 139s Selecting previously unselected package python3-pydantic. 139s Preparing to unpack .../08-python3-pydantic_2.4.2-1_arm64.deb ... 139s Unpacking python3-pydantic (2.4.2-1) ... 139s Selecting previously unselected package python3-toml. 139s Preparing to unpack .../09-python3-toml_0.10.2-1_all.deb ... 139s Unpacking python3-toml (0.10.2-1) ... 139s Selecting previously unselected package python3-maison. 139s Preparing to unpack .../10-python3-maison_1.4.2-1_all.deb ... 139s Unpacking python3-maison (1.4.2-1) ... 139s Selecting previously unselected package python3-packaging. 139s Preparing to unpack .../11-python3-packaging_24.1-1_all.deb ... 139s Unpacking python3-packaging (24.1-1) ... 139s Selecting previously unselected package python3-pluggy. 139s Preparing to unpack .../12-python3-pluggy_1.5.0-1_all.deb ... 139s Unpacking python3-pluggy (1.5.0-1) ... 139s Selecting previously unselected package python3-pytest. 139s Preparing to unpack .../13-python3-pytest_7.4.4-1_all.deb ... 139s Unpacking python3-pytest (7.4.4-1) ... 139s Selecting previously unselected package autopkgtest-satdep. 140s Preparing to unpack .../14-1-autopkgtest-satdep.deb ... 140s Unpacking autopkgtest-satdep (0) ... 140s Setting up python3-iniconfig (1.1.1-2) ... 140s Setting up python3-pydantic-core (2.11.0-1) ... 140s Setting up python3-colorama (0.4.6-4) ... 140s Setting up python3-all (3.12.3-0ubuntu1) ... 140s Setting up python3-click (8.1.7-1) ... 140s Setting up python3-annotated-types (0.7.0-1) ... 141s Setting up python3-packaging (24.1-1) ... 141s Setting up python3-toml (0.10.2-1) ... 141s Setting up python3-pluggy (1.5.0-1) ... 141s Setting up python3-dnspython (2.6.1-1ubuntu1) ... 142s Setting up python3-email-validator (2.2.0-1) ... 142s Setting up python3-pytest (7.4.4-1) ... 142s Setting up python3-pydantic (2.4.2-1) ... 143s Setting up python3-maison (1.4.2-1) ... 143s Setting up autopkgtest-satdep (0) ... 143s Processing triggers for man-db (2.12.1-2) ... 150s (Reading database ... 79207 files and directories currently installed.) 150s Removing autopkgtest-satdep (0) ... 151s autopkgtest [16:04:13]: test run-tests: [----------------------- 152s ============================= test session starts ============================== 152s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 -- /usr/bin/python3.12 152s cachedir: .pytest_cache 152s rootdir: /tmp/autopkgtest.jCzTPL/autopkgtest_tmp 153s collecting ... collected 45 items 153s 153s tests/test_main.py::test_main_succeeds PASSED [ 2%] 153s tests/unit/test_config.py::TestProjectConfig::test_repr PASSED [ 4%] 153s tests/unit/test_config.py::TestProjectConfig::test_to_dict PASSED [ 6%] 153s tests/unit/test_config.py::TestGetOption::test_valid_pyproject PASSED [ 8%] 153s tests/unit/test_config.py::TestGetOption::test_no_pyproject PASSED [ 11%] 153s tests/unit/test_config.py::TestGetOption::test_default PASSED [ 13%] 153s tests/unit/test_config.py::TestGetOption::test_valid_pyproject_with_no_project_section PASSED [ 15%] 153s tests/unit/test_config.py::TestSourceFiles::test_not_found PASSED [ 17%] 153s tests/unit/test_config.py::TestSourceFiles::test_unrecognised_file_extension PASSED [ 20%] 153s tests/unit/test_config.py::TestSourceFiles::test_single_valid_toml_source PASSED [ 22%] 153s tests/unit/test_config.py::TestSourceFiles::test_multiple_valid_toml_sources PASSED [ 24%] 153s tests/unit/test_config.py::TestSourceFiles::test_absolute_path PASSED [ 26%] 153s tests/unit/test_config.py::TestSourceFiles::test_absolute_path_not_exist PASSED [ 28%] 153s tests/unit/test_config.py::TestIniFiles::test_valid_ini_file PASSED [ 31%] 153s tests/unit/test_config.py::TestValidation::test_no_schema PASSED [ 33%] 153s tests/unit/test_config.py::TestValidation::test_one_schema_with_valid_config PASSED [ 35%] 153s tests/unit/test_config.py::TestValidation::test_one_schema_injected_at_validation PASSED [ 37%] 153s tests/unit/test_config.py::TestValidation::test_use_schema_values FAILED [ 40%] 153s 153s =================================== FAILURES =================================== 153s ____________________ TestValidation.test_use_schema_values _____________________ 153s 153s self = 153s create_pyproject_toml = ._create_pyproject_toml at 0xfaa684cc0900> 153s 153s def test_use_schema_values( 153s self, 153s create_pyproject_toml: Callable[..., Path], 153s ) -> None: 153s """ 153s Given an instance of `ProjectConfig` with a given schema, 153s When the `validate` method is called, 153s Then the configuration is validated and values are cast to those in the schema 153s and default values are used 153s """ 153s 153s class Schema(ConfigSchema): 153s """Defines schema.""" 153s 153s bar: str 153s other: str = "hello" 153s 153s pyproject_path = create_pyproject_toml(content={"bar": 1}) 153s config = ProjectConfig( 153s project_name="foo", 153s starting_path=pyproject_path, 153s config_schema=Schema, 153s ) 153s 153s > config.validate() 153s 153s tests/unit/test_config.py:332: 153s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 153s 153s self = , config_schema = None, use_schema_values = True 153s 153s def validate( 153s self, 153s config_schema: Optional[Type[ConfigSchema]] = None, 153s use_schema_values: bool = True, 153s ) -> Dict[str, Any]: 153s """Validate the configuration. 153s 153s Warning: 153s Using this method with `use_schema_values` set to `True` will cast values to 153s whatever is defined in the schema. For example, for the following schema: 153s 153s class Schema(ConfigSchema): 153s foo: str 153s 153s Validating a config with: 153s 153s {"foo": 1} 153s 153s Will result in: 153s 153s {"foo": "1"} 153s 153s Args: 153s config_schema: an optional `ConfigSchema` to define the schema. This 153s takes precedence over a schema provided at object instantiation. 153s use_schema_values: an optional boolean to indicate whether the result 153s of passing the config through the schema should overwrite the existing 153s config values, meaning values are cast to types defined in the schema as 153s described above, and default values defined in the schema are used. 153s 153s Returns: 153s the config values 153s 153s Raises: 153s NoSchemaError: when validation is attempted but no schema has been provided 153s """ 153s if not (config_schema or self.config_schema): 153s raise NoSchemaError 153s 153s schema: Type[ConfigSchema] = config_schema or self.config_schema # type: ignore 153s 153s > validated_schema = schema(**self._config_dict) 153s E pydantic_core._pydantic_core.ValidationError: 1 validation error for Schema 153s E bar 153s E Input should be a valid string [type=string_type, input_value=1, input_type=int] 153s E For further information visit https://errors.pydantic.dev/2.4/v/string_type 153s 153s /usr/lib/python3/dist-packages/maison/config.py:156: ValidationError 153s =============================== warnings summary =============================== 153s tests/unit/test_config.py::TestValidation::test_one_schema_with_valid_config 153s tests/unit/test_config.py::TestValidation::test_one_schema_injected_at_validation 153s /usr/lib/python3/dist-packages/maison/config.py:159: PydanticDeprecatedSince20: The `dict` method is deprecated; use `model_dump` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.4/migration/ 153s self._config_dict = validated_schema.dict() 153s 153s tests/unit/test_config.py::TestValidation::test_one_schema_with_valid_config 153s tests/unit/test_config.py::TestValidation::test_one_schema_injected_at_validation 153s /usr/lib/python3/dist-packages/pydantic/main.py:962: PydanticDeprecatedSince20: The `dict` method is deprecated; use `model_dump` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.4/migration/ 153s warnings.warn('The `dict` method is deprecated; use `model_dump` instead.', DeprecationWarning) 153s 153s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 153s =========================== short test summary info ============================ 153s FAILED tests/unit/test_config.py::TestValidation::test_use_schema_values - py... 153s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 153s =================== 1 failed, 17 passed, 4 warnings in 1.22s =================== 154s autopkgtest [16:04:16]: test run-tests: -----------------------] 155s autopkgtest [16:04:17]: test run-tests: - - - - - - - - - - results - - - - - - - - - - 155s run-tests FAIL non-zero exit status 1 155s autopkgtest [16:04:17]: @@@@@@@@@@@@@@@@@@@@ summary 155s run-tests FAIL non-zero exit status 1 175s nova [W] Skipping flock in bos03-arm64 175s Creating nova instance adt-oracular-arm64-python-maison-20240726-160142-juju-7f2275-prod-proposed-migration-environment-3-81b7fb83-6677-48cb-9f69-e47d6f84ceaa from image adt/ubuntu-oracular-arm64-server-20240726.img (UUID 33caccb7-bc3b-4ecc-9e17-59d67995dc9e)...