From 3defdf7d3a58e9c6e66666d4121fd7a7ddf45e9e Mon Sep 17 00:00:00 2001 From: slekkala1 Date: Tue, 16 Sep 2025 11:33:43 -0700 Subject: [PATCH] fix: docker failing to start container[pydantic] (#3460) # What does this PR do? Pinning to latest pydantic version 2.11.9 as sometime we are picking older version and failing to start container in github actions : https://github.com/llamastack/llama-stack-ops/actions/runs/17750263127 Closes https://github.com/llamastack/llama-stack/issues/3461 ## Test Plan Tested locally with the following commands to start a container Build container `llama stack build --distro starter --image-type container` start container `docker run -d -p 8321:8321 --name llama-stack-test distribution-starter:0.2.21` check health http://localhost:8321/v1/health Couldnt repro with older version(`2.8.2`), but `2.11.9` pydantic is able to start the container https://pypi.org/project/pydantic/#history , 2.11.9 is the latest version --- pyproject.toml | 4 ++-- uv.lock | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ce95b758f..0950c0dc2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ dependencies = [ "prompt-toolkit", "python-dotenv", "python-jose[cryptography]", - "pydantic>=2", + "pydantic>=2.11.9", "rich", "starlette", "termcolor", @@ -141,7 +141,7 @@ docs = [ "sphinxcontrib.openapi", "requests", ] -codegen = ["rich", "pydantic", "jinja2>=3.1.6"] +codegen = ["rich", "pydantic>=2.11.9", "jinja2>=3.1.6"] benchmark = [ "locust>=2.39.1", ] diff --git a/uv.lock b/uv.lock index 065eb3876..14848d2d4 100644 --- a/uv.lock +++ b/uv.lock @@ -1893,7 +1893,7 @@ requires-dist = [ { name = "pandas", marker = "extra == 'ui'" }, { name = "pillow" }, { name = "prompt-toolkit" }, - { name = "pydantic", specifier = ">=2" }, + { name = "pydantic", specifier = ">=2.11.9" }, { name = "python-dotenv" }, { name = "python-jose", extras = ["cryptography"] }, { name = "python-multipart", specifier = ">=0.0.20" }, @@ -1911,7 +1911,7 @@ provides-extras = ["ui"] benchmark = [{ name = "locust", specifier = ">=2.39.1" }] codegen = [ { name = "jinja2", specifier = ">=3.1.6" }, - { name = "pydantic" }, + { name = "pydantic", specifier = ">=2.11.9" }, { name = "rich" }, ] dev = [ @@ -3393,7 +3393,7 @@ wheels = [ [[package]] name = "pydantic" -version = "2.11.7" +version = "2.11.9" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "annotated-types" }, @@ -3401,9 +3401,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/00/dd/4325abf92c39ba8623b5af936ddb36ffcfe0beae70405d456ab1fb2f5b8c/pydantic-2.11.7.tar.gz", hash = "sha256:d989c3c6cb79469287b1569f7447a17848c998458d49ebe294e975b9baf0f0db", size = 788350, upload-time = "2025-06-14T08:33:17.137Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ff/5d/09a551ba512d7ca404d785072700d3f6727a02f6f3c24ecfd081c7cf0aa8/pydantic-2.11.9.tar.gz", hash = "sha256:6b8ffda597a14812a7975c90b82a8a2e777d9257aba3453f973acd3c032a18e2", size = 788495, upload-time = "2025-09-13T11:26:39.325Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/6a/c0/ec2b1c8712ca690e5d61979dee872603e92b8a32f94cc1b72d53beab008a/pydantic-2.11.7-py3-none-any.whl", hash = "sha256:dde5df002701f6de26248661f6835bbe296a47bf73990135c7d07ce741b9623b", size = 444782, upload-time = "2025-06-14T08:33:14.905Z" }, + { url = "https://files.pythonhosted.org/packages/3e/d3/108f2006987c58e76691d5ae5d200dd3e0f532cb4e5fa3560751c3a1feba/pydantic-2.11.9-py3-none-any.whl", hash = "sha256:c42dd626f5cfc1c6950ce6205ea58c93efa406da65f479dcb4029d5934857da2", size = 444855, upload-time = "2025-09-13T11:26:36.909Z" }, ] [[package]]