Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ jobs:
enable-cache: false
- run: uvx --with tox-uv tox run -e ${{ matrix.testenv }}
working-directory: python
timeout-minutes: 10
timeout-minutes: 15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are the tests actually taking more than 10 minutes now consistently?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @nate,

Yes, the tests that involve installing the LiteLLM package are consistently taking more than 10 minutes. This is because grpcio==1.67.1 does not have prebuilt wheels for Python 3.14, so the CI has to build it from source. That build step alone often exceeds the 10-minute limit, which is why the pipelines are timing out. After increasing the timeout to 15 minutes, these jobs are able to complete.

The actual tests themselves are not taking that long, the delay is specifically due to the grpcio build process on Python 3.14.

2 changes: 1 addition & 1 deletion .github/workflows/python-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
enable-cache: false
- run: uvx --with tox-uv tox r -e ${{ matrix.testenv }} -- -ra -x
working-directory: python
timeout-minutes: 10
timeout-minutes: 15
- run: touch ${{ runner.temp }}/${{ matrix.testenv }}
if: failure()
- uses: actions/upload-artifact@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import litellm
import pytest
from litellm import OpenAIChatCompletion # type: ignore[attr-defined]
from litellm import OpenAIChatCompletion # type: ignore[attr-defined, unused-ignore]
from litellm.types.utils import EmbeddingResponse, ImageObject, ImageResponse, Usage
from litellm.types.utils import Message as LitellmMessage
from opentelemetry.sdk.resources import Resource
Expand Down