Skip to content

chore: lift the fastapi<0.137 cap#133

Merged
lesnik512 merged 1 commit into
mainfrom
chore/lift-fastapi-cap
Jun 24, 2026
Merged

chore: lift the fastapi<0.137 cap#133
lesnik512 merged 1 commit into
mainfrom
chore/lift-fastapi-cap

Conversation

@lesnik512

Copy link
Copy Markdown
Member

What

Lifts the temporary fastapi<0.137 cap introduced in 1.1.1, now that the upstream fix has shipped.

  • Remove fastapi<0.137 from the fastapi extra (the base every fastapi-* extra composes from).
  • Raise the fastapi-metrics floor: prometheus-fastapi-instrumentator>=6.1>=8.0.1.

Why

The cap existed solely because prometheus-fastapi-instrumentator (≤8.0.0) read route.path unconditionally and crashed on FastAPI 0.137's internal _IncludedRouter. That's fixed upstream in instrumentator v8.0.1 (issue #370, closed 2026-06-22). The crash needed FastAPI ≥0.137 and instrumentator ≤8.0.0, so the FastAPI uncap is paired with an instrumentator floor that guarantees the fix wherever metrics are installed.

Verification

Re-resolved and ran against the previously-forbidden combination FastAPI 0.138.0 + prometheus-fastapi-instrumentator 8.0.2:

  • FastAPI suite green (offline-docs + metrics — the exact _IncludedRouter crash surface)
  • Full suite: 201 passed, 100% coverage
  • just lint clean (ruff + ty)

lite-bootstrap's own offline-docs isinstance(route, Route) guard (from 1.1.1) stays in place.

Release

Backward compatible with 1.2.0 — purely a resolution-constraint loosening. Release notes drafted as planning/releases/1.2.1.md; intended as a 1.2.1 patch.

🤖 Generated with Claude Code

The cap (1.1.1) existed only because prometheus-fastapi-instrumentator <=8.0.0
crashed on FastAPI 0.137's _IncludedRouter. Fixed upstream in instrumentator
8.0.1 (issue #370). Remove fastapi<0.137 and raise the fastapi-metrics floor to
>=8.0.1 so the fix is guaranteed wherever metrics are installed. Verified against
FastAPI 0.138.0 + instrumentator 8.0.2: full suite green at 100%.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lesnik512 lesnik512 merged commit 3bb26ad into main Jun 24, 2026
7 checks passed
@lesnik512 lesnik512 deleted the chore/lift-fastapi-cap branch June 24, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant