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

build_client_sdk_with_poetry action fails #318

Open
demeringo opened this issue Sep 25, 2024 · 3 comments
Open

build_client_sdk_with_poetry action fails #318

demeringo opened this issue Sep 25, 2024 · 3 comments
Labels
bug Something isn't working ci Related to continuous integration workflows

Comments

@demeringo
Copy link
Collaborator

demeringo commented Sep 25, 2024

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 demeringo added the bug Something isn't working label Sep 25, 2024
@demeringo demeringo added the ci Related to continuous integration workflows label Sep 25, 2024
@demeringo
Copy link
Collaborator Author

demeringo commented Sep 25, 2024

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:

  • is the image of the API working fine (does it serves the json) ?

@demeringo
Copy link
Collaborator Author

demeringo commented Sep 25, 2024

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
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci Related to continuous integration workflows
Projects
None yet
Development

No branches or pull requests

1 participant