The GitHub Actions job "Tests (AMD)" on airflow.git/backport-d8865dd-v3-2-test 
has succeeded.
Run started by GitHub user vatsrahul1001 (triggered by vatsrahul1001).

Head commit for run:
ea4bb1b48e349263277d11415a8dc63c2ae85a58 / Jarek Potiuk <[email protected]>
[v3-2-test] Fix log server path extraction to use removeprefix (#66749)

The log server uses request.url.path.lstrip("/log/") to extract the
requested filename from the URL path. str.lstrip() strips any
combination of the argument characters (here {/, l, o, g}) from the
left of the string -- it does not remove the literal prefix "/log/".
This is a documented Python pitfall.

Switch to str.removeprefix("/log/") (Python 3.9+, already required by
Airflow) so the filename extracted for JWT validation matches the one
the underlying Starlette StaticFiles mount uses to locate the file on
disk.
(cherry picked from commit d8865dd42499d1ded98640ddf9d88f37a8209904)

Co-authored-by: Jarek Potiuk <[email protected]>
Generated-by: Claude Opus 4.7 (1M context) following the guidelines at
https: 
//github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

Report URL: https://github.com/apache/airflow/actions/runs/25801088504

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to