You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by pa...@apache.org on 2026/09/18 21:06:22 UTC

(sedona-db) branch main updated: chore(ci): Widen timeout for child processes in pyogrio tests (#1307)

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

paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git


The following commit(s) were added to refs/heads/main by this push:
     new 2366b10ea chore(ci): Widen timeout for child processes in pyogrio tests (#1307)
2366b10ea is described below

commit 2366b10ea5fb80fefbce399e8d2d88bc90169f6a
Author: Dewey Dunnington <de...@dunnington.ca>
AuthorDate: Fri Sep 18 21:06:17 2026 +0000

    chore(ci): Widen timeout for child processes in pyogrio tests (#1307)
---
 python/sedonadb/tests/io/test_pyogrio.py | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/python/sedonadb/tests/io/test_pyogrio.py b/python/sedonadb/tests/io/test_pyogrio.py
index 3f8061efc..f3fe8c559 100644
--- a/python/sedonadb/tests/io/test_pyogrio.py
+++ b/python/sedonadb/tests/io/test_pyogrio.py
@@ -36,6 +36,8 @@ import sedonadb
 import shapely
 from sedonadb.datasource import PyogrioFormatSpec
 
+CHILD_PROCESS_TIMEOUT_SECONDS = 15
+
 
 def test_read_ogr_projection(con):
     n = 1024
@@ -547,10 +549,10 @@ def _exit_child_process(result_sender):
 
 def _terminate_child(process):
     process.terminate()
-    process.join(5)
+    process.join(CHILD_PROCESS_TIMEOUT_SECONDS)
     if process.is_alive():
         process.kill()
-        process.join(5)
+        process.join(CHILD_PROCESS_TIMEOUT_SECONDS)
 
 
 def _run_child_process(target, *args, timeout):
@@ -601,12 +603,12 @@ def test_independent_scans_child_timeout_is_bounded():
     started = time.monotonic()
     with pytest.raises(TimeoutError, match="exceeded 0.2 seconds"):
         _run_child_process(_block_child_process, timeout=0.2)
-    assert time.monotonic() - started < 5
+    assert time.monotonic() - started < CHILD_PROCESS_TIMEOUT_SECONDS
 
 
 def test_child_process_nonzero_exit_is_reported():
     with pytest.raises(AssertionError, match="child process exited with 17: None"):
-        _run_child_process(_exit_child_process, timeout=5)
+        _run_child_process(_exit_child_process, timeout=CHILD_PROCESS_TIMEOUT_SECONDS)
 
 
 @pytest.mark.parametrize("extension", ["fgb", "gpkg"])
@@ -636,7 +638,10 @@ def test_independent_reader_progress_while_first_reader_is_paused(extension):
     with tempfile.TemporaryDirectory() as td:
         paths = _write_pyogrio_pair(td, extension, expected_values)
         result = _run_child_process(
-            _run_paused_pyogrio_readers, paths, expected_values, timeout=15
+            _run_paused_pyogrio_readers,
+            paths,
+            expected_values,
+            timeout=CHILD_PROCESS_TIMEOUT_SECONDS,
         )
 
     assert result["ok"], result["error"]