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 :
1775026312
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
This commit is contained in:
slekkala1 2025-09-16 11:33:43 -07:00 committed by GitHub
parent 6b855af96f
commit 3defdf7d3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View file

@ -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",
]

10
uv.lock generated
View file

@ -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]]