anmolxlight opened a new pull request, #66131: URL: https://github.com/apache/airflow/pull/66131
Fixes #66127. ## What - Use the actual invocation time as the DagRun start_date for DAG.test()/airflow dags test. - Keep logical_date and run_after semantics unchanged. - Add a CLI regression test proving historical logical dates do not become DagRun.start_date. ## Test plan - uv run --project airflow-core pytest airflow-core/tests/unit/cli/commands/test_dag_command.py::TestCliDags::test_dag_test_uses_current_time_as_start_date -q - uv run --project airflow-core pytest airflow-core/tests/unit/cli/commands/test_dag_command.py::TestCliDags::test_dag_test_with_custom_timetable airflow-core/tests/unit/cli/commands/test_dag_command.py::TestCliDags::test_dag_test_uses_current_time_as_start_date -q - uv run prek run --files airflow-core/tests/unit/cli/commands/test_dag_command.py task-sdk/src/airflow/sdk/definitions/dag.py -- 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]
