Nicholas Pini
12/19/2025, 3:56 PM/codebuild/output/src726/src/s3/00/ci/.venv/lib/python3.12/site-packages/pydantic_settings/main.py:425: UserWarning: Config key `pyproject_toml_table_header` is set in model_config but will be ignored because no PyprojectTomlConfigSettingsSource source is configured. To use this config key, add a PyprojectTomlConfigSettingsSource source to the settings sources via the settings_customise_sources hook.
self._settings_warn_unused_config_keys(sources, self.model_config)
/codebuild/output/src726/src/s3/00/ci/.venv/lib/python3.12/site-packages/pydantic_settings/main.py:425: UserWarning: Config key `toml_file` is set in model_config but will be ignored because no TomlConfigSettingsSource source is configured. To use this config key, add a TomlConfigSettingsSource source to the settings sources via the settings_customise_sources hook.
self._settings_warn_unused_config_keys(sources, self.model_config)
/codebuild/output/src726/src/s3/00/ci/.venv/lib/python3.12/site-packages/pydantic/_internal/_generate_schema.py:2249: UnsupportedFieldAttributeWarning: The 'default' attribute with value 'UTC' was provided to the `Field()` function, which has no effect in the context it was used. 'default' is field-specific metadata, and can only be attached to a model field using `Annotated` metadata or by assignment. This may have happened because an `Annotated` type alias using the `type` statement was used, or if the `Field()` function was attached to a single member of a union type.
warnings.warn(
Why?Marvin
12/19/2025, 3:56 PMMarvin
12/19/2025, 3:59 PMpip install --upgrade 'prefect>=3.4.24'
- If you can’t upgrade Prefect yet:
- Pin dependencies to avoid the new warnings:
pip install 'pydantic<2.12' 'pydantic-settings<2.11'
- Or temporarily suppress in CI via environment variable:
export PYTHONWARNINGS="ignore:.*Config key .* will be ignored: pydantic_settings.main;ignore:.*UnsupportedFieldAttributeWarning: pydantic._internal._generate_schema"
Note: use PYTHONWARNINGS or run Python with -W; passing -W to the prefect CLI directly won’t work.
If you can share whether upgrading is possible in your CodeBuild environment, I can suggest the cleanest path (upgrade vs. constraints file) for your setup.