You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ru...@apache.org on 2025/10/10 05:05:26 UTC

(spark) branch master updated: [MINOR][PYTHON][TESTS] Retry `test_observe_with_map_type`

This is an automated email from the ASF dual-hosted git repository.

ruifengz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new dc11b66bdd9c [MINOR][PYTHON][TESTS] Retry `test_observe_with_map_type`
dc11b66bdd9c is described below

commit dc11b66bdd9c0e2864f874842a047853bb10ab26
Author: Ruifeng Zheng <ru...@apache.org>
AuthorDate: Fri Oct 10 13:05:12 2025 +0800

    [MINOR][PYTHON][TESTS] Retry `test_observe_with_map_type`
    
    ### What changes were proposed in this pull request?
    Retry `test_observe_with_map_type`
    
    ### Why are the changes needed?
    it occasionally fails https://github.com/apache/spark/actions/runs/18387627760/job/52390087983
    
    ### Does this PR introduce _any_ user-facing change?
    no, test-only
    
    ### How was this patch tested?
    ci
    
    ### Was this patch authored or co-authored using generative AI tooling?
    no
    
    Closes #52566 from zhengruifeng/retry_test_observe_with_map_type.
    
    Authored-by: Ruifeng Zheng <ru...@apache.org>
    Signed-off-by: Ruifeng Zheng <ru...@apache.org>
---
 python/pyspark/sql/tests/test_observation.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/python/pyspark/sql/tests/test_observation.py b/python/pyspark/sql/tests/test_observation.py
index 5af709d191c1..37ebe9c9a6f1 100644
--- a/python/pyspark/sql/tests/test_observation.py
+++ b/python/pyspark/sql/tests/test_observation.py
@@ -25,7 +25,7 @@ from pyspark.errors import (
     PySparkValueError,
 )
 from pyspark.testing.sqlutils import ReusedSQLTestCase
-from pyspark.testing.utils import assertDataFrameEqual
+from pyspark.testing.utils import assertDataFrameEqual, eventually
 
 
 class DataFrameObservationTestsMixin:
@@ -214,6 +214,7 @@ class DataFrameObservationTestsMixin:
 
         self.assertEqual(observation.get, {"array": [10]})
 
+    @eventually(timeout=60.0, catch_assertions=True)
     def test_observe_with_map_type(self):
         observation = Observation("map")
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org