gopidesupavan commented on code in PR #49647:
URL: https://github.com/apache/airflow/pull/49647#discussion_r2056709446


##########
airflow-core/tests/unit/serialization/test_dag_serialization.py:
##########
@@ -685,10 +685,14 @@ def validate_deserialized_dag(self, serialized_dag: DAG, 
dag: DAG):
         for field in fields_to_check:
             actual = getattr(serialized_dag, field)
             expected = getattr(dag, field, None)
+
+            if field == "max_consecutive_failed_dag_runs":
+                # TaskSDK sets -1 default to max_consecutive_failed_dag_runs
+                assert actual in [expected, 0], f"{dag.dag_id}.{field} does 
not match"
+                continue
             assert actual == expected, f"{dag.dag_id}.{field} does not match"
         # _processor_dags_folder is only populated at serialization time
         # it's only used when relying on serialized dag to determine a dag's 
relative path
-        assert dag._processor_dags_folder is None

Review Comment:
   `_processor_dags_folder` is not available if its TaskSDK dag. 



-- 
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]

Reply via email to