Skip to content

Commit 46d426d

Browse files
Further testing for CI hanging
Signed-off-by: Albert van Houten <[email protected]>
1 parent fe39a02 commit 46d426d

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

library/pyproject.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,3 @@ markers = [
420420
"xpu", # mark tests which require Intel dGPU,
421421
]
422422
python_files = "tests/**/*.py"
423-
timeout = 300
424-
timeout_method = "thread"
425-
# Prevent forking issues in CI
426-
addopts = "--tb=short --strict-markers"
427-
# Force fork start method for multiprocessing to avoid deadlocks
428-
env = [
429-
"PYTHONDONTWRITEBYTECODE=1",
430-
]

library/tests/conftest.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# SPDX-License-Identifier: Apache-2.0
33
from __future__ import annotations
44

5-
import multiprocessing
65
import os
76
from collections import defaultdict
87
from pathlib import Path
@@ -24,15 +23,8 @@
2423
from tests.utils import ExportCase2Test
2524

2625

27-
# Configure multiprocessing to use 'spawn' to avoid deadlocks in CI
2826
def pytest_configure(config):
2927
"""Configure pytest to prevent hanging in CI environments."""
30-
try: # noqa: SIM105
31-
# Set multiprocessing start method to 'spawn' to avoid fork issues
32-
multiprocessing.set_start_method("spawn", force=True)
33-
except RuntimeError:
34-
# Already set, ignore
35-
pass
3628

3729
# Limit thread usage to prevent resource contention
3830
os.environ.setdefault("OMP_NUM_THREADS", "1")

0 commit comments

Comments
 (0)