Skip to content

build: bump fastapi and starlette pins in openai frontend - #8940

Merged
mc-nv merged 1 commit into
mainfrom
mchorny/TRI-1736/bump-fastapi-starlette-pins
Aug 26, 2026
Merged

build: bump fastapi and starlette pins in openai frontend#8940
mc-nv merged 1 commit into
mainfrom
mchorny/TRI-1736/bump-fastapi-starlette-pins

Conversation

@mc-nv

@mc-nv mc-nv commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

What does the PR do?

Bumps the fastapi and starlette pins in the openai frontend.

starlette moves to >=1.3.1,<2 to pick up the CVE fix. That floor cannot be
met by the pinned fastapi, because releases before 0.133.0 cap starlette below
1.0, so fastapi moves to 0.136.3. The upper bound stays below 0.137.0
because vllm requires fastapi[standard]<0.137.0,>=0.133.0. The two pins are
coupled, which is why they move together.

Checklist

  • PR title reflects the change and is of format <commit_type>: <Title>
  • Changes are described in the pull request.
  • Related issues are referenced.
  • Populated github labels field
  • Added test plan and verified test passes.
  • Verified that the PR passes existing CI.
  • Verified copyright is correct on all changed files.
  • Added succinct git squash message before merging ref.
  • All template sections are filled out.
  • Optional: Additional screenshots for behavior/output changes with before/after.

Commit Type:

Check the conventional commit type
box here and add the label to the github PR.

  • build
  • ci
  • docs
  • feat
  • fix
  • perf
  • refactor
  • revert
  • style
  • test

Related PRs:

Where should the reviewer start?

python/openai/requirements.txt — the fastapi upper bound and the starlette
floor, and whether the vllm constraint still holds.

Test plan:

  • CI Pipeline ID:

Caveats:

The fastapi bound is dictated by vllm's own requirement range, so a future vllm
bump may need this revisited.

Background

Split out of #8939, which carried this commit
alongside unrelated build-secret work. Separating it keeps that PR to a single
concern. The two are independent and can merge in either order.

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • Relates to: TRI-1736

@mc-nv mc-nv added Build Build system or external dependencies (build: PRs) cherry-pick Cherry-picked from another branch labels Aug 26, 2026
@mc-nv mc-nv self-assigned this Aug 26, 2026
@mc-nv
mc-nv marked this pull request as ready for review August 26, 2026 15:35
@greptile-apps

greptile-apps Bot commented Aug 26, 2026

Copy link
Copy Markdown

Greptile Summary

This PR updates the OpenAI frontend’s coupled FastAPI and Starlette constraints to admit the Starlette security-fix release while remaining within vLLM’s FastAPI range.

  • Pins FastAPI to 0.136.3.
  • Requires Starlette 1.3.1 or newer while remaining below 2.0.
  • Documents why the two dependency constraints must move together.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
python/openai/requirements.txt Updates the coupled FastAPI and Starlette runtime constraints; no eligible follow-up defect remains.

Reviews (2): Last reviewed commit: "build: bump fastapi and starlette pins i..." | Re-trigger Greptile

whoisj
whoisj previously approved these changes Aug 26, 2026
fastapi 0.121.2 capped starlette<0.50.0, blocking the starlette 1.x
floor. Move fastapi to 0.136.3, the newest release inside vllm's
fastapi[standard]<0.137.0,>=0.133.0 window, and raise starlette to
>=1.3.1,<2.

Verified in tritonserver 26.08-py3-stage and 26.07-vllm-python-py3-stage:
pip resolves to fastapi 0.136.3 / starlette 1.6.0, pip check reports no
fastapi or starlette conflicts, and the openai frontend test suite is
unchanged from baseline (25 passed, 8 pre-existing environment errors).

(cherry picked from commit aa33708)
(cherry picked from commit a939910)
(cherry picked from commit 32d1677)
@mc-nv
mc-nv force-pushed the mchorny/TRI-1736/bump-fastapi-starlette-pins branch from 32d1677 to a6eaf27 Compare August 26, 2026 16:13
@mc-nv
mc-nv changed the base branch from mchorny/TRI-1736/enable-token-based-authorization-for-github to main August 26, 2026 16:14
@mc-nv
mc-nv dismissed whoisj’s stale review August 26, 2026 16:14

The base branch was changed.

@mc-nv
mc-nv requested a review from whoisj August 26, 2026 16:14
@mc-nv
mc-nv merged commit 1482dfb into main Aug 26, 2026
4 checks passed
@mc-nv
mc-nv deleted the mchorny/TRI-1736/bump-fastapi-starlette-pins branch August 26, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Build system or external dependencies (build: PRs) cherry-pick Cherry-picked from another branch

Development

Successfully merging this pull request may close these issues.

2 participants