Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check warnings in testbank #803

Open
Tracked by #1036
veenstrajelmer opened this issue Mar 13, 2024 · 0 comments
Open
Tracked by #1036

check warnings in testbank #803

veenstrajelmer opened this issue Mar 13, 2024 · 0 comments

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Mar 13, 2024

Warnings from system/unittests at 2024-08-05 in github python 3.12 action.

By cdsapi (because of of usage of deprecated pkg_resources API), documented in ecmwf/cdsapi#89:

../../../../../opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/cdsapi/api.py:17
  /opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/cdsapi/api.py:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

Caused by pydantic:

../../../../../opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/pydantic/v1/fields.py:437
  /opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/pydantic/v1/fields.py:437: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    return smart_deepcopy(self.default) if self.default_factory is None else self.default_factory()

Caused by dfm_tools:

tests/conftest.py:12
  /home/runner/work/dfm_tools/dfm_tools/tests/conftest.py:12: PytestRemovedIn9Warning: Marks applied to fixtures have no effect
  See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
    @pytest.mark.requiressecrets

Caused by multiurl (cdsapi), reported in ecmwf/multiurl#14

tests/test_download.py::test_cds_credentials
  /opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/multiurl/http.py:10: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
    import cgi

Caused by copernicusmarine, reported to helpdesk on 16-5-2024 (and updated on 5-8-2024, registered under [CMT-5]):

tests/test_download.py: 15 warnings
tests/test_observations.py: 20 warnings
  /opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/cachier/core.py:223: DeprecationWarning: `ignore_cache` is deprecated and will be removed in a future release, use `cachier__` alternative instead.
    ignore_cache = _pop_kwds_with_deprecation(

tests/test_download.py::test_download_cmems_my
tests/test_observations.py::test_ssh_retrieve_data[cmems]
  /opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/aiohttp/connector.py:776: DeprecationWarning: The object should be created within an async function
    super().__init__(

tests/test_download.py::test_download_cmems_my
tests/test_observations.py::test_ssh_retrieve_data[cmems]
  /opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/aiohttp/connector.py:788: DeprecationWarning: The object should be created within an async function
    resolver = DefaultResolver(loop=self._loop)

tests/test_download.py::test_download_cmems_my
tests/test_observations.py::test_ssh_retrieve_data[cmems]
  /opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/copernicusmarine/core_functions/sessions.py:38: DeprecationWarning: The object should be created within an async function
    return aiohttp.ClientSession(connector=connector, trust_env=TRUST_ENV)

tests/test_download.py::test_download_cmems_my
tests/test_observations.py::test_ssh_retrieve_data[cmems]
  /opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/aiohttp/cookiejar.py:84: DeprecationWarning: The object should be created within an async function
    super().__init__(loop=loop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant