Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
71 stars 23 forks source link

build_client_sdk_with_poetry action fails #318

Open demeringo opened 3 days ago

demeringo commented 3 days ago

Bug description

The current action that we use to build client sdk in CI (build_client_sdk_with_poetry.yml) fails.

Failed run:

To Reproduce

Expected behavior

JSON OUTPUT

Additional context

demeringo commented 3 days ago

Context: When the workflow executes:

  1. it builds a docker image of the API
  2. this container is launched to serve the API
  3. a second docker container is launched to generate a client by reading the openapi.json file served by the API

=> we have a timeout when attempting to read this json file.

Ideas to test / to verify:

demeringo commented 3 days ago

It seems that the latest docker image is broken with a module not found error, could be related to the cache issue ( #317) ?

docker run ghcr.io/boavizta/boaviztapi:1.3

[....]

  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.9/site-packages/pydantic/main.py", line 28, in <module>
    import pydantic_core
  File "/usr/local/lib/python3.9/site-packages/pydantic_core/__init__.py", line 6, in <module>
    from ._pydantic_core import (
ModuleNotFoundError: No module named 'pydantic_core._pydantic_core'
demeringo commented 3 days ago

I merge #317, we should try to republish a docker image.