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

   `RenderedTaskInstanceFields` renders its stored pod spec via 
`PodGenerator.construct_pod()`, which assigns a brand-new random name — 
independent of the real name Kubernetes already gave the pod. So the pod name 
shown in RTIF's rendered spec almost never matched the actual running pod.
   
   Since RTIF is written from inside the real pod, and Kubernetes sets a pod's 
hostname to its own `metadata.name` by default, this substitutes 
`socket.gethostname()` in on that in-pod rendering path only — the separate 
on-demand/preview path (used before a pod exists) is left untouched.
   
   Includes a regression test with a negative control confirming it fails on 
the pre-fix code.
   
   closes: #28186
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Sonnet 5)
   
   Generated-by: Claude Code (Sonnet 5) 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