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

   ## Summary
   
   `scripts/ci/notify_uv_lock_conflicts.py` constructs the GitHub GraphQL 
client as:
   
   ```python
   self._http = httpx.Client(base_url=GRAPHQL_URL, ...)
   ...
   r = self._http.post("", json=...)
   ```
   
   `httpx` normalises `base_url` to end with `/`, so 
`base_url="https://api.github.com/graphql"` plus a relative path of `""` 
resolves to `https://api.github.com/graphql/` (trailing slash) — which GitHub's 
GraphQL API rejects with `404 Not Found`. This breaks the `Notify uv.lock 
conflicts` workflow on every main-branch push.
   
   ```
   httpx.HTTPStatusError: Client error '404 Not Found' for url 
'https://api.github.com/graphql/'
   ```
   
   Failure: 
https://github.com/apache/airflow/actions/runs/25492428820/job/74803563077
   
   ## Fix
   
   Drop the `base_url=` kwarg and pass the full `GRAPHQL_URL` to `.post()` 
directly so httpx never adds the trailing slash. Comment in the code records 
why so the next person who is tempted to "clean it up" doesn't reintroduce the 
bug.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.7)
   
   Generated-by: Claude Code (Opus 4.7) 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to