You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Revanth14 (via GitHub)" <gi...@apache.org> on 2026/06/15 18:01:21 UTC

[PR] Cap fastapi <0.137 and fix execution API health empty-path route [airflow]

Revanth14 opened a new pull request, #68578:
URL: https://github.com/apache/airflow/pull/68578

   Closes: #68562
   
   FastAPI 0.137.0's lazy router inclusion breaks api-server and dag-processor startup in two ways: the execution API health route used `@router.get("")` under `prefix="/health"`, which now raises `Prefix and path cannot be both empty`, and
   Cadwyn's versioned router generation is not yet compatible with FastAPI 0.137.0.
   
   - Cap `fastapi<0.137.0`, with `uv.lock` synced, to restore startup while waiting for Cadwyn compatibility.
   - Change the execution API health routes to explicit paths (`/health`, `/health/ping`) so they remain valid once the cap is lifted. External paths are unchanged.
   - Add a regression test to prevent reintroducing an empty health route path.
   
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   <!--
   If generative AI tooling has been used in the process of authoring this PR, please
   change below checkbox to `[X]` followed by the name of the tool, uncomment the "Generated-by".
   -->
   
   - [X] Yes (Opus 4.8)
   
   <!--
   Generated-by: [Tool Name] following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Cap fastapi <0.137 and fix execution API health empty-path route [airflow]

Posted by "Revanth14 (via GitHub)" <gi...@apache.org>.
Revanth14 commented on PR #68578:
URL: https://github.com/apache/airflow/pull/68578#issuecomment-4765324964

   > I believe Cadwyn 7.1.0 has now support for 0.137.1+ -> I think we should bring it back @Revanth14 ?
   
   Thanks for the heads-up @potiuk. I checked Cadwyn 7.1.0 and it now declares `fastapi>=0.137.1`, so I agree we can remove the temporary `fastapi<0.137.0` cap.
   
   I’ll open a follow-up PR to bump Cadwyn to `>=7.1.0`, relax FastAPI to `>=0.137.1`, refresh `uv.lock`, and run the relevant API/versioned-router regression tests.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Cap fastapi <0.137 and fix execution API health empty-path route [airflow]

Posted by "Revanth14 (via GitHub)" <gi...@apache.org>.
Revanth14 commented on PR #68578:
URL: https://github.com/apache/airflow/pull/68578#issuecomment-4765919466

   > I believe Cadwyn 7.1.0 has now support for 0.137.1+ -> I think we should bring it back @Revanth14 ?
   
   Opened the follow-up PR #68826
   
   @potiuk @shahar1 : bumped Cadwyn to `>=7.1.0` and FastAPI to `>=0.137.1`. Heads-up that the bump surfaced a second 0.137 incompatibility beyond the empty-path fix: lazy router inclusion freezes a router's dependencies at `include_router()` time, so the execution API's OTel trace-context dependency (injected after assembly) was being dropped. Reworked the router assembly into a build-time factory to fix it, preserving the `unsafe-always` / `only-authenticated` / `never` ordering. Full execution-API suite (480 tests) green, would appreciate a look when you have a moment.
   Thank you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Cap fastapi <0.137 and fix execution API health empty-path route [airflow]

Posted by "Revanth14 (via GitHub)" <gi...@apache.org>.
Revanth14 commented on PR #68578:
URL: https://github.com/apache/airflow/pull/68578#issuecomment-4715087763

   Thanks for the review and approval @shahar1 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Cap fastapi <0.137 and fix execution API health empty-path route [airflow]

Posted by "shahar1 (via GitHub)" <gi...@apache.org>.
shahar1 merged PR #68578:
URL: https://github.com/apache/airflow/pull/68578


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Cap fastapi <0.137 and fix execution API health empty-path route [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #68578:
URL: https://github.com/apache/airflow/pull/68578#issuecomment-4764389382

   I believe Cadwyn 7.1.0 has now support for 0.137.1+ -> I think we should bring it back @Revanth14  ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org