The GitHub Actions job "Tests AMD" on airflow.git/main has failed.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
672ec992634ef09a55db870e14c8e679128db189 / Kaxil Naik <[email protected]>
Fix Pydantic ``ForwardRef`` error by reordering discriminated union definitions 
(#50688)

In some rare cases, the DAG parse subprocess (`DagFileProcessorProcess`) could 
raise a `PydanticUserError` related to unresolved ForwardRefs in the 
discriminated union ToDagProcessor.

This was caused by `TypeAdapter[ToDagProcessor]` being instantiated before 
`DagFileParseRequest` was defined. While this is not always reproducible, it 
can happen in forked subprocesses depending on import order.

This change moves the union definitions (`ToDagProcessor`, `ToManager`) after 
the relevant Pydantic models are declared, ensuring all references are fully 
resolved at definition time.

closes https://github.com/apache/airflow/issues/50530

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

With regards,
GitHub Actions via GitBox


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

Reply via email to