wjddn279 commented on code in PR #63871:
URL: https://github.com/apache/airflow/pull/63871#discussion_r3207320050


##########
airflow-core/tests/unit/serialization/test_dag_serialization.py:
##########
@@ -704,6 +706,17 @@ def test_deserialization_across_process(self):
         for dag_id in stringified_dags:
             self.validate_deserialized_dag(stringified_dags[dag_id], 
dags[dag_id])
 
+    @pytest.mark.db_test
+    @conf_vars({("core", "load_examples"): "false"})
+    def test_reserialize_should_make_equal_hash_with_dag_processor(self):
+        dagbag1 = DagBag(TEST_DAGS_FOLDER / "test_dag_decorator_version.py")
+        hash_result1 = 
LazyDeserializedDAG.from_dag(next(iter(dagbag1.dags.values()))).hash
+
+        dagbag2 = DagBag(TEST_DAGS_FOLDER / "test_dag_decorator_version.py")
+        hash_result2 = 
LazyDeserializedDAG.from_dag(next(iter(dagbag2.dags.values()))).hash
+
+        assert hash_result1 == hash_result2

Review Comment:
   migrate from https://github.com/apache/airflow/pull/65705
   
   error when using AS-IS logic
   ```
   FAILED 
airflow-core/tests/unit/serialization/test_dag_serialization.py::TestStringifiedDAGs::test_reserialize_should_make_equal_hash_with_dag_processor
 - AssertionError: assert equals failed
     'c2b44f25dbfff98d131ccf67824081  '741b8de117c6d1c8a7cc7f6530c47d 
     3b'                              1e'
   ```



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