Skip to content

Fix: Pin starlette<1.0 to unblock CI / solara tests#3370

Merged
quaquel merged 4 commits intomesa:mainfrom
Nithurshen:fix/starlette-pin
Mar 2, 2026
Merged

Fix: Pin starlette<1.0 to unblock CI / solara tests#3370
quaquel merged 4 commits intomesa:mainfrom
Nithurshen:fix/starlette-pin

Conversation

@Nithurshen
Copy link
Copy Markdown
Contributor

Summary

Pins starlette<0.45.0 in the project dependencies to resolve a breaking CI failure caused by the latest Starlette release.

Bug / Issue

Closes #3369

Starlette 0.45.0 entirely removed the deprecated on_startup parameter. solara currently relies on this parameter during server initialization, causing an immediate TypeError that crashes the pytest test collection step.

Implementation

  • Added starlette<0.45.0 to pyproject.toml optional dependencies. This is a temporary constraint to unblock Mesa's CI until solara updates its framework to use the modern lifespan context manager protocol.

Testing

  • Ran pytest tests/ locally to ensure the test suite successfully initializes and runs without the Starlette initialization error.

@Nithurshen Nithurshen marked this pull request as ready for review February 24, 2026 03:11
@Nithurshen Nithurshen marked this pull request as draft February 27, 2026 12:12
@quaquel quaquel marked this pull request as ready for review March 2, 2026 10:03
@quaquel quaquel merged commit 50caccd into mesa:main Mar 2, 2026
12 of 13 checks passed
@Nithurshen Nithurshen deleted the fix/starlette-pin branch March 2, 2026 10:04
@EwoutH
Copy link
Copy Markdown
Member

EwoutH commented Mar 2, 2026

Sorry, should have commented here. But:

The pin should be <1, if any.

@Nithurshen Nithurshen restored the fix/starlette-pin branch March 2, 2026 12:08
@Nithurshen Nithurshen deleted the fix/starlette-pin branch March 6, 2026 01:43
@EwoutH EwoutH changed the title Fix: Pin starlette<0.45.0 to unblock CI / solara tests Fix: Pin starlette<1.0 to unblock CI / solara tests Mar 13, 2026
@EwoutH EwoutH added the maintenance Release notes label label Mar 13, 2026
@quaquel quaquel mentioned this pull request Mar 14, 2026
EwoutH pushed a commit that referenced this pull request Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Release notes label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI/Tests failing: Solara pytest plugin incompatible with starlette>=1.0.0rc1

3 participants