seruman commented on code in PR #65310:
URL: https://github.com/apache/airflow/pull/65310#discussion_r3228078883
##########
airflow-core/tests/unit/serialization/test_dag_serialization.py:
##########
@@ -3864,6 +3869,83 @@ def test_dag_schema_defaults_optimization():
assert dag_non_defaults_data["description"] == "Test description"
+def test_dag_config_driven_fields_always_serialized():
+ """Fields whose schema default was removed are always present on the wire,
+ regardless of whether the value matches the Airflow config default.
+
+ Regression test for: max_active_runs set to the old schema default (16)
+ was silently dropped when cfg max_active_runs_per_dag was also 16.
+ """
+ from airflow.serialization.serialized_objects import LazyDeserializedDAG
Review Comment:
done
--
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]