forked from taskcluster/taskgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux.yml
More file actions
91 lines (87 loc) · 2.91 KB
/
linux.yml
File metadata and controls
91 lines (87 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
task-defaults:
matrix:
substitution-fields:
- attributes
- description
- run.command
- treeherder
- worker
attributes:
artifact_prefix: public
retrigger: true
code-review: true
python: "{matrix[python]}"
platform: linux
resolution: default
worker-type: t-linux
worker:
docker-image: {in-tree: python}
max-run-time: 1800
env:
PYTHONUTF8: "0"
PYTHONCOERCECLOCALE: "0"
HGENCODING: "utf-8"
LC_ALL: "C"
UV_PYTHON: "{matrix[python]}"
treeherder:
platform: test-linux/opt
kind: test
tier: 1
run:
using: run-task
cwd: '{checkout}'
use-caches: [checkout, uv]
unit:
description: "Run unit tests with py{matrix[python]} on Linux"
matrix:
set-name: "unit-py{matrix[python]}"
substitution-fields: [description, run.command, treeherder, worker, attributes]
python: ["314t", "314", "313", "312", "311", "310", "39"]
worker:
docker-image: {in-tree: python}
artifacts:
- type: file
path: "/builds/worker/artifacts/coverage"
name: "public/coverage.py{matrix[python]}"
treeherder:
symbol: unit(py{matrix[python]})
run:
command: >-
uv run coverage run --data-file /builds/worker/artifacts/coverage --context=py{matrix[python]} -m pytest -vv
unit-multithread:
description: "Run unit tests with py{matrix[python]} on Linux with multithreading enabled"
matrix:
set-name: "unit-multithread-py{matrix[python]}"
substitution-fields: [description, run.command, treeherder, worker, attributes]
python: ["314t"]
worker:
docker-image: {in-tree: python}
env:
TASKGRAPH_USE_THREADS: "1"
artifacts:
- type: file
path: "/builds/worker/artifacts/coverage"
name: "public/coverage.py{matrix[python]}"
treeherder:
symbol: unit-multithread(py{matrix[python]})
run:
command: >-
uv run coverage run --data-file /builds/worker/artifacts/coverage --context=py{matrix[python]} -m pytest -vv
integration:
description: "Run unit tests with py{matrix[python]} on Linux with resolution {matrix[resolution]}"
attributes:
resolution: "{matrix[resolution]}"
matrix:
set-name: "integration-py{matrix[python]}-deps-{matrix[resolution]}"
python: ["314", "39"]
resolution: ["highest", "lowest-direct"]
exclude:
- python: "314"
resolution: "lowest-direct"
- python: "39"
resolution: "highest"
treeherder:
symbol: integration(py{matrix[python]}-{matrix[resolution]})
run:
command: >-
uv run --isolated --resolution={matrix[resolution]} pytest -vv