dheerajturaga opened a new pull request, #61332: URL: https://github.com/apache/airflow/pull/61332
The test constructed ExecuteTask and TaskInstance via model_construct(), which bypasses Pydantic validation. Fields added or made required by #50825 (dag_version_id, pool_slots) and inherited from BaseDagBundleWorkload (token, dag_rel_path, bundle_info, log_path) were missing. This went unnoticed until #60675 changed task dispatch to run in ProcessPoolExecutor subprocesses where mock patches don't apply, causing the real execute_workload (with full schema validation) to run on the worker. --- ##### 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". --> - [ ] Yes (please specify the tool below) ClaudeCode -- 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]
