Skip to content

Commit c4403c4

Browse files
committed
ci(perf): reduce threads to 1 when running duckdb test suite in parallel to avoid thrashing
1 parent 601ea3e commit c4403c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ibis/backends/duckdb/tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import os
34
from typing import TYPE_CHECKING
45

56
import pytest
@@ -107,6 +108,8 @@ def connect(*, tmpdir, worker_id, **kw) -> BaseBackend:
107108
extension_directory = tmpdir.getbasetemp().joinpath("duckdb_extensions")
108109
extension_directory.mkdir(exist_ok=True)
109110
kw["extension_directory"] = extension_directory
111+
112+
kw["threads"] = 1 if worker_id != "master" else os.cpu_count() // 2
110113
return ibis.duckdb.connect(**kw)
111114

112115
def _load_tpc(self, *, suite, scale_factor):

0 commit comments

Comments
 (0)