Skip to content

Commit 94758de

Browse files
author
Alexandre Lissy
committed
FxCI: Run some test suites for Enterprise builds
1 parent 97fc62b commit 94758de

File tree

7 files changed

+83
-17
lines changed

7 files changed

+83
-17
lines changed

taskcluster/gecko_taskgraph/target_tasks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,11 @@ def target_tasks_enterprise_firefox_with_tests(
486486
)
487487

488488
def filter(task):
489+
# Enabling tests suites triggers many jobs not required, limit execution
490+
# to enterprise builds for now
491+
if task.kind in ["test", "mochitest"] and "enterprise" not in task.label:
492+
return False
493+
489494
# Only keep builds that have been explicitely flagged
490495
if task.kind == "build" and not "enterprise-firefox" in task.attributes.get(
491496
"run_on_projects"

taskcluster/gecko_taskgraph/transforms/job/mozharness_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,12 @@ def mozharness_test_on_docker(config, job, taskdesc):
175175
else:
176176
assert "MOZ_ENABLE_WAYLAND" not in env
177177

178+
if "enterprise" in job["label"]:
179+
assert "MOZ_AUTOMATION" in env
180+
assert "MOZ_BYPASS_FELT" in env
181+
else:
182+
assert "MOZ_BYPASS_FELT" not in env
183+
178184
if mozharness.get("mochitest-flavor"):
179185
env["MOCHITEST_FLAVOR"] = mozharness["mochitest-flavor"]
180186

taskcluster/gecko_taskgraph/transforms/test/worker.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@
6969
"virtual-with-gpu": "win11-64-24h2-gpu",
7070
"hardware": "win11-64-24h2-hw",
7171
},
72+
"windows11-64-24h2-enterprise": {
73+
"virtual": "win11-64-24h2",
74+
"virtual-with-gpu": "win11-64-24h2-gpu",
75+
"hardware": "win11-64-24h2-hw",
76+
},
7277
"windows11-64-24h2-ccov": {
7378
"virtual": "win11-64-24h2",
7479
"virtual-with-gpu": "win11-64-24h2-gpu",
@@ -218,3 +223,16 @@ def set_wayland_env(config, tasks):
218223
env["WAYLAND_DISPLAY"] = "wayland-0"
219224
env["NEED_GNOME_KEYRING"] = "true"
220225
yield task
226+
227+
228+
@transforms.add
229+
def set_enterprise_bypass_env(config, tasks):
230+
for task in tasks:
231+
if "enterprise" not in task["test-platform"]:
232+
yield task
233+
continue
234+
235+
env = task.setdefault("worker", {}).setdefault("env", {})
236+
env["MOZ_AUTOMATION"] = "1"
237+
env["MOZ_BYPASS_FELT"] = "1"
238+
yield task

taskcluster/kinds/mochitest/kind.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ transforms:
2121
# https://wiki.mozilla.org/Sheriffing/Job_Visibility_Policy
2222

2323
task-defaults:
24-
run-on-repo-type: [hg]
24+
run-on-repo-type: ["hg", "git"]
2525
attributes:
2626
retrigger: true
2727
use-python: default

taskcluster/kinds/test/kind.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ tasks-from:
3737
- xpcshell.yml
3838

3939
task-defaults:
40-
run-on-repo-type: [hg]
40+
run-on-repo-type: ["hg", "git"]
4141
attributes:
4242
retrigger: true
4343
use-python: default

taskcluster/test_configs/test-platforms.yml

Lines changed: 37 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ linux2404-64/opt:
6161
- web-platform-tests
6262
- web-platform-tests-backlog
6363

64+
linux2404-64-enterprise/opt:
65+
build-platform: linux64-enterprise/opt
66+
test-sets:
67+
- linux-tests-enterprise
68+
6469
linux2404-64-shippable/opt:
6570
build-platform: linux64-shippable/opt
6671
test-sets:
@@ -240,6 +245,15 @@ windows11-64-24h2/opt:
240245
- browsertime
241246
- windows-talos-webgl
242247

248+
windows11-64-24h2-enterprise/opt:
249+
build-platform: win64-enterprise/opt
250+
build-signing-label:
251+
by-variant:
252+
msi: repackage-signing-msi-win64-enterprise/opt
253+
default: build-signing-win64-enterprise/opt
254+
test-sets:
255+
- windows11-24h2-tests-enterprise
256+
243257
windows11-64-24h2-shippable/opt:
244258
build-platform: win64-shippable/opt
245259
build-signing-label:
@@ -300,28 +314,36 @@ windows11-aarch64-24h2/debug:
300314
##
301315
# MacOS X platforms (matching /macosx.*/)
302316

303-
##  TODO: This is trying to fetch build not done on enterprise-firefox
304-
##  Exception: Task 'test-macosx1500-aarch64-shippable/opt-xpcshell-1-cf' lists a dependency that does not exist: 'repackage-macosx64-shippable/opt'
305-
## macosx1500-aarch64/debug:
306-
## build-platform: macosx64-aarch64/debug
307-
## build-signing-label: repackage-macosx64-aarch64/debug
308-
## test-sets:
309-
## - macosx1500-aarch64-tests
310-
## - macosx1500-64-jittests
317+
macosx1500-aarch64/debug:
318+
build-platform: macosx64-aarch64/debug
319+
build-signing-label: repackage-macosx64-aarch64/debug
320+
test-sets:
321+
- macosx1500-aarch64-tests
322+
- macosx1500-64-jittests
323+
311324
##
312-
## macosx1500-aarch64-shippable/opt:
313-
## build-platform: macosx64-shippable/opt
314-
## build-signing-label: repackage-macosx64-shippable/opt
315-
## test-sets:
316-
## - macosx1500-64-jittests
317-
## - macosx1500-64-tests
318-
## - macosx1500-64-perftests
325+
# TODO: Generates weird error on PRs for Enterprise
326+
# Exception: Task 'test-macosx1500-aarch64-shippable/opt-xpcshell-1-cf' lists a dependency that does not exist: 'repackage-macosx64-shippable/opt'
327+
#
328+
# macosx1500-aarch64-shippable/opt:
329+
# build-platform: macosx64-shippable/opt
330+
# build-signing-label: repackage-macosx64-shippable/opt
331+
# test-sets:
332+
# - macosx1500-64-jittests
333+
# - macosx1500-64-tests
334+
# - macosx1500-64-perftests
319335

320336
macosx1470-64-nightlyasrelease/opt:
321337
build-platform: macosx64-nightlyasrelease/opt
322338
test-sets:
323339
- browsertime
324340

341+
macosx1500-64-enterprise/opt:
342+
build-platform: macosx64-enterprise/opt
343+
build-signing-label: repackage-macosx64-enterprise/opt
344+
test-sets:
345+
- macosx1500-64-tests-enterprise
346+
325347
macosx1470-64-shippable/opt:
326348
build-platform: macosx64-shippable/opt
327349
test-sets:

taskcluster/test_configs/test-sets.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ linux-tests:
193193
- test-verify-wpt
194194
- xpcshell
195195

196+
linux-tests-enterprise:
197+
- marionette-integration
198+
- mochitest-plain
199+
- xpcshell
200+
196201
linux-2404-tsan-tests:
197202
- cppunittest
198203
- crashtest
@@ -342,6 +347,11 @@ windows11-24h2-tests:
342347
- test-verify-wpt
343348
- xpcshell
344349

350+
windows11-24h2-tests-enterprise:
351+
- marionette-integration
352+
- mochitest-plain
353+
- xpcshell
354+
345355
mingwclang-tests-debug:
346356
- cppunittest
347357
- firefox-ui-functional
@@ -428,6 +438,11 @@ macosx1500-64-tests:
428438
- web-platform-tests-webcodecs
429439
- web-platform-tests-eme
430440

441+
macosx1500-64-tests-enterprise:
442+
- marionette-integration
443+
- mochitest-plain
444+
- xpcshell
445+
431446
macosx1500-aarch64-tests:
432447
- cppunittest
433448
- mochitest-media

0 commit comments

Comments
 (0)