aaron-y-chen opened a new pull request, #77176:
URL: https://github.com/apache/airflow/pull/77176
## Problem
Go/Java SDKs check cron shape but leave range validation to core. Unlike
Python Dag parsing, language SDK parsing omitted `timetable.validate()`, so `0
24 * * *` was accepted without an import error and could not be scheduled.
## Reproduction
On main branch, apply only the new regression test, without the production
fix, and run the command below. The fake runtime returns an invalid-cron Dag
alongside a valid daily Dag; both `CronTriggerTimetable` and
`CronDataIntervalTimetable` cases fail because the invalid Dag remains accepted.
```sh
uv run --project airflow-core --no-sync pytest \
airflow-core/tests/unit/dag_processing/test_lang_sdk_processor.py::TestLangSDKDagFileProcessorProcess::test_a_dag_with_an_invalid_cron_is_an_import_error
\
-v --tb=short --show-capture=no
```
<img width="983" height="425" alt="image"
src="https://github.com/user-attachments/assets/30503adf-a60f-4629-82a3-243685729bd4"
/>
## Fix
Call `deserialized.timetable.validate()` in the language SDK processor to
reuse core's validator. Existing error handling records an import error and
excludes the invalid Dag while preserving valid Dags in the same result.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — OpenAI Codex (GPT-6)
Generated-by: OpenAI Codex (GPT-6) 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]