Skip to content

Commit df2f323

Browse files
committed
Support getting suite and chunk for fuzzing ccov tasks
1 parent 67250a7 commit df2f323

File tree

3 files changed

+114
-0
lines changed

3 files changed

+114
-0
lines changed

bot/code_coverage_bot/taskcluster.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ def get_suite(task):
126126
return "build-signing"
127127
elif tags.get("kind") == "source-test":
128128
return "source-test"
129+
elif tags.get("kind") == "fuzzing":
130+
return "fuzzing"
129131
elif "suite" in extra:
130132
if isinstance(extra["suite"], dict):
131133
return extra["suite"]["name"]
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"provisionerId": "gecko-t",
3+
"workerType": "win11-64-2009-source",
4+
"taskQueueId": "gecko-t/win11-64-2009-source",
5+
"schedulerId": "gecko-level-3",
6+
"projectId": "none",
7+
"taskGroupId": "VJjEns0FQU26bhsggfboIQ",
8+
"dependencies": [
9+
"DH-mnrnVRK2GBdWNSC73Lg",
10+
"eiC54KPpTQ6bGQGR82lZZw"
11+
],
12+
"requires": "all-completed",
13+
"routes": [
14+
"tc-treeherder.v2.mozilla-central.7aa82d7563335ed4da92818c597c9ddea8aac4f4"
15+
],
16+
"priority": "medium",
17+
"retries": 5,
18+
"created": "2024-07-17T15:34:47.027Z",
19+
"deadline": "2024-07-18T15:34:47.027Z",
20+
"expires": "2024-10-15T15:34:47.027Z",
21+
"scopes": [
22+
"secrets:get:project/taskcluster/gecko/hgfingerprint",
23+
"secrets:get:project/taskcluster/gecko/hgmointernal",
24+
"generic-worker:cache:gecko-level-3-checkouts"
25+
],
26+
"payload": {
27+
"env": {
28+
"GECKO_PATH": "./build/src",
29+
"MOZ_FETCHES": "[{\"artifact\": \"public/build/python.tar.zst\", \"extract\": true, \"task\": \"eiC54KPpTQ6bGQGR82lZZw\"}, {\"artifact\": \"public/build/target.zip\", \"extract\": true, \"task\": \"DH-mnrnVRK2GBdWNSC73Lg\"}]",
30+
"HG_STORE_PATH": "y:/hg-shared",
31+
"MOZ_SCM_LEVEL": "3",
32+
"GECKO_HEAD_REV": "7aa82d7563335ed4da92818c597c9ddea8aac4f4",
33+
"MOZ_AUTOMATION": "1",
34+
"MOZ_FETCHES_DIR": "fetches",
35+
"MOZ_PYTHON_HOME": "fetches/python",
36+
"SCCACHE_DISABLE": "1",
37+
"GECKO_BINARY_PATH": "$MOZ_FETCHES_DIR/firefox/firefox.exe",
38+
"GECKO_BASE_REPOSITORY": "https://hg.mozilla.org/mozilla-unified",
39+
"GECKO_HEAD_REPOSITORY": "https://hg.mozilla.org/mozilla-central"
40+
},
41+
"mounts": [
42+
{
43+
"cacheName": "gecko-level-3-checkouts",
44+
"directory": "./build"
45+
},
46+
{
47+
"file": "./run-task",
48+
"content": {
49+
"url": "http://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/VJjEns0FQU26bhsggfboIQ/artifacts/public/run-task"
50+
}
51+
},
52+
{
53+
"file": "./fetch-content",
54+
"content": {
55+
"url": "http://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/VJjEns0FQU26bhsggfboIQ/artifacts/public/fetch-content"
56+
}
57+
},
58+
{
59+
"file": "./robustcheckout.py",
60+
"content": {
61+
"url": "http://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/VJjEns0FQU26bhsggfboIQ/artifacts/public/robustcheckout.py"
62+
}
63+
}
64+
],
65+
"command": [
66+
"C:/mozilla-build/python3/python3.exe run-task --gecko-checkout=./build/src --task-cwd build/src -- bash -cx \"python3 ./mach python-test --subsuite fuzzing --run-slow\""
67+
],
68+
"maxRunTime": 1800,
69+
"onExitStatus": {
70+
"retry": [
71+
1073807364,
72+
3221225786,
73+
137
74+
]
75+
}
76+
},
77+
"metadata": {
78+
"name": "fuzzing-grizzly-windows64-ccov",
79+
"owner": "[email protected]",
80+
"source": "https://hg.mozilla.org/mozilla-central/file/7aa82d7563335ed4da92818c597c9ddea8aac4f4/taskcluster/kinds/fuzzing",
81+
"description": "Python Fuzzing Smoke Tests ([Treeherder job](https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&revision=7aa82d7563335ed4da92818c597c9ddea8aac4f4&selectedTaskRun=EySSqDwdTIOG2trg4W8sCQ))"
82+
},
83+
"tags": {
84+
"os": "windows",
85+
"kind": "fuzzing",
86+
"label": "fuzzing-grizzly-windows64-ccov",
87+
"retrigger": "false",
88+
"createdForUser": "[email protected]",
89+
"worker-implementation": "generic-worker"
90+
},
91+
"extra": {
92+
"index": {
93+
"rank": 0
94+
},
95+
"parent": "VJjEns0FQU26bhsggfboIQ",
96+
"treeherder": {
97+
"tier": 3,
98+
"symbol": "fuzzing-python",
99+
"jobKind": "test",
100+
"machine": {
101+
"platform": "windows2012-64"
102+
},
103+
"collection": {
104+
"ccov": true
105+
}
106+
},
107+
"treeherder-platform": "windows2012-64/ccov"
108+
}
109+
}

bot/tests/test_taskcluster.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def test_chunk_to_suite(chunk, expected):
215215
("build-win64-ccov/debug", "build"),
216216
("build-signing-win64-ccov/debug", "build-signing"),
217217
("source-test-node-newtab-unit-tests-ccov", "source-test"),
218+
("fuzzing-grizzly-windows64-ccov", "fuzzing"),
218219
],
219220
)
220221
def test_get_chunk(task_name, expected):
@@ -244,6 +245,7 @@ def test_get_chunk(task_name, expected):
244245
("build-win64-ccov/debug", "build"),
245246
("build-signing-win64-ccov/debug", "build-signing"),
246247
("source-test-node-newtab-unit-tests-ccov", "source-test"),
248+
("fuzzing-grizzly-windows64-ccov", "fuzzing"),
247249
],
248250
)
249251
def test_get_suite(task_name, expected):
@@ -270,6 +272,7 @@ def test_get_suite(task_name, expected):
270272
("build-win64-ccov/debug", "windows"),
271273
("build-signing-win64-ccov/debug", "windows"),
272274
("source-test-node-newtab-unit-tests-ccov", "linux"),
275+
("fuzzing-grizzly-windows64-ccov", "windows"),
273276
],
274277
)
275278
def test_get_platform(task_name, expected):

0 commit comments

Comments
 (0)