Skip to content

Commit 6662c0f

Browse files
committed
Diagnosing on CI since I can't repro locally even on my linux box
1 parent 31db513 commit 6662c0f

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ dev = [
197197
"pyarrow>=19.0.0",
198198
"pygithub==2.5.0",
199199
"pytest-asyncio>=0.23.3",
200+
"pytest-timeout>=2.3.1",
200201
"pytest>=7.4.4",
201202
"pyyaml>=6.0.3",
202203
"ruff>=0.15.1",

python/tests/test_pickle_multiprocessing.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
import multiprocessing as mp
4444

45+
import pytest
4546
from datafusion import col, lit
4647

4748
from tests._pickle_multiprocessing_helpers import (
@@ -51,6 +52,12 @@
5152
register_udf_on_global_ctx,
5253
)
5354

55+
# Hard upper bound for any single test in this module. If a spawn worker dies
56+
# silently during arg unpickling or initializer execution, ``Pool.map`` blocks
57+
# forever; ``pytest-timeout`` turns that into a real failure with a traceback
58+
# instead of a 30-minute job-level CI timeout.
59+
pytestmark = pytest.mark.timeout(60)
60+
5461

5562
def test_builtin_expr_through_multiprocessing_pool() -> None:
5663
"""A built-in ``Expr`` survives a real ``multiprocessing.Pool`` dispatch."""

uv.lock

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)