Skip to content

PR Review action fails: uv cannot resolve litellm pre-release dependency #119

@jpshackelford

Description

@jpshackelford

Problem

The pr-review plugin fails when resolving dependencies because openhands-sdk depends on litellm>=1.80.10, but litellm has pre-release markers that uv doesn't resolve by default.

Error

× No solution found when resolving `--with` dependencies:
╰─▶ Because there are no versions of litellm and openhands-sdk<=1.3.0
    depends on litellm>=1.77.7.dev9, we can conclude that
    openhands-sdk<=1.3.0 cannot be used.
    ...
    hint: Pre-releases are available for `openhands-sdk` in the requested
    range (e.g., 1.0.0a6), but pre-releases weren't enabled (try:
    `--prerelease=allow`)

    hint: `litellm` was requested with a pre-release marker (e.g.,
    litellm>=1.77.7.dev9), but pre-releases weren't enabled (try:
    `--prerelease=allow`)

Location

plugins/pr-review/action.yml line ~100:

uv run --with openhands-sdk --with openhands-tools --with lmnr \
  python ../extensions/plugins/pr-review/scripts/agent_script.py

Proposed Fix

Add --prerelease=allow to the uv run command:

uv run --prerelease=allow --with openhands-sdk --with openhands-tools --with lmnr \
  python ../extensions/plugins/pr-review/scripts/agent_script.py

Reproduction

Any repository using the pr-review action will fail. Example:
https://github.com/jpshackelford/demorec/actions/runs/23491703065/job/68361406358

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions