Skip to content

Commit 71fdab5

Browse files
committed
feat: add multithreading tests
1 parent 025cbb0 commit 71fdab5

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

taskcluster/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ treeherder:
77
'check': 'Checks and lints'
88
'doc': 'Documentation tasks'
99
'unit': 'Unit test tasks'
10+
'unit-multithread': 'Unit test tasks with multithreading enabled'
1011
'integration': 'Integration test tasks'
1112

1213
index:

taskcluster/kinds/test/linux.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,26 @@ unit:
5050
command: >-
5151
uv run coverage run --data-file /builds/worker/artifacts/coverage --context=py{matrix[python]} -m pytest -vv
5252
53+
unit-multithread:
54+
description: "Run unit tests with py{matrix[python]} on Linux with multithreading enabled"
55+
matrix:
56+
set-name: "unit-multithread-py{matrix[python]}"
57+
substitution-fields: [description, run.command, treeherder, worker, attributes]
58+
python: ["314t"]
59+
worker:
60+
docker-image: {in-tree: python}
61+
env:
62+
TASKGRAPH_USE_THREADS: "1"
63+
artifacts:
64+
- type: file
65+
path: "/builds/worker/artifacts/coverage"
66+
name: "public/coverage.py{matrix[python]}"
67+
treeherder:
68+
symbol: unit-multithread(py{matrix[python]})
69+
run:
70+
command: >-
71+
uv run coverage run --data-file /builds/worker/artifacts/coverage --context=py{matrix[python]} -m pytest -vv
72+
5373
integration:
5474
description: "Run unit tests with py{matrix[python]} on Linux with resolution {matrix[resolution]}"
5575
attributes:

0 commit comments

Comments
 (0)