Bug 1887861 - Run Snap Selenium tests on Ubuntu 22.04 and 24.04 r=releng-reviewers,taskgraph-reviewers,bhearsum

Differential Revision: https://phabricator.services.mozilla.com/D216378
This commit is contained in:
Alexandre Lissy 2024-10-16 07:38:14 +00:00
parent f106b327f6
commit 78e435008c
4 changed files with 65 additions and 21 deletions

View File

@ -923,11 +923,16 @@ workers:
implementation: generic-worker
os: linux
worker-type: 't-linux-vm-2204-wayland'
t-linux-wayland-snap:
t-linux-2204-wayland-snap:
provisioner: '{trust-domain}-t'
implementation: generic-worker
os: linux
worker-type: 't-linux-2204-wayland-snap'
t-linux-2404-wayland-snap:
provisioner: '{trust-domain}-t'
implementation: generic-worker
os: linux
worker-type: 't-linux-2404-wayland-snap'
t-osx-1015-r8:
provisioner: releng-hardware
implementation: generic-worker

View File

@ -467,6 +467,11 @@ snap_test_type
For Snap tests tasks, used to disambiguate task label
snap_test_release
=================
For Snap tests tasks, used to disambiguate task label by distro release
.. _primary one: https://taskcluster-taskgraph.readthedocs.io/en/latest/reference/transforms/from_deps.html#primary-kind
build-type

View File

@ -20,9 +20,12 @@ transforms = TransformSequence()
def fill_template(config, tasks):
for task in tasks:
test_type = task.get("attributes")["snap_test_type"]
test_release = task.get("attributes")["snap_test_release"]
assert "-test-" in task.get("label")
task["label"] = task.get("label").replace("-test-", "-test-" + test_type + "-")
task["label"] = task.get("label").replace(
"-test-", "-test-" + test_type + "-" + test_release + "-"
)
dep = get_primary_dependency(config, task)
assert dep
@ -36,6 +39,8 @@ def fill_template(config, tasks):
+ "-snap-"
+ task.get("label").split("-")[-2]
+ "-"
+ test_release
+ "-"
+ task.get("label").split("-")[-1]
)

View File

@ -17,18 +17,21 @@ kind-dependencies:
- snap-upstream-build
task-defaults:
from-deps:
group-by: single-with-filters
attributes:
retrigger: true
cron: true
treeherder:
kind: test
tier: 2
scopes:
- generic-worker:os-group:gecko-t/t-linux-2204-wayland-snap/snap_sudo
worker-type: t-linux-wayland-snap
run:
using: run-task
checkout: false
fetches:
snap-upstream-build:
- firefox.snap
- snap-tests.zip
worker:
max-run-time: 900
env:
@ -42,36 +45,62 @@ task-defaults:
- snap_sudo
tasks:
basic:
from-deps:
group-by: single-with-filters
description: Runs basic tests on a Firefox Snap package
basic-2204:
description: Runs basic tests on a Firefox Snap package against Ubuntu 22.04
scopes:
- generic-worker:os-group:gecko-t/t-linux-2204-wayland-snap/snap_sudo
worker-type: t-linux-2204-wayland-snap
run:
command: >-
export TASKCLUSTER_ROOT_DIR=$PWD && cd $MOZ_FETCHES_DIR/ && ./tests.sh --basic
fetches:
snap-upstream-build:
- firefox.snap
- snap-tests.zip
treeherder:
platform: linux64/opt
symbol: Sel(basic)
attributes:
snap_test_type: basic
snap_test_release: "2204"
qa:
from-deps:
group-by: single-with-filters
description: Runs some QA tests on a Firefox Snap package
qa-2204:
description: Runs some QA tests on a Firefox Snap package against Ubuntu 22.04
scopes:
- generic-worker:os-group:gecko-t/t-linux-2204-wayland-snap/snap_sudo
worker-type: t-linux-2204-wayland-snap
run:
command: >-
export TASKCLUSTER_ROOT_DIR=$PWD && cd $MOZ_FETCHES_DIR/ && ./tests.sh --qa
fetches:
snap-upstream-build:
- firefox.snap
- snap-tests.zip
treeherder:
platform: linux64/opt
symbol: Sel(QA)
attributes:
snap_test_type: qa
snap_test_release: "2204"
basic-2404:
description: Runs basic tests on a Firefox Snap package against Ubuntu 24.04
scopes:
- generic-worker:os-group:gecko-t/t-linux-2404-wayland-snap/snap_sudo
worker-type: t-linux-2404-wayland-snap
run:
command: >-
export TASKCLUSTER_ROOT_DIR=$PWD && cd $MOZ_FETCHES_DIR/ && ./tests.sh --basic
treeherder:
platform: linux64/opt
symbol: Sel(basic)
attributes:
snap_test_type: basic
snap_test_release: "2404"
qa-2404:
description: Runs some QA tests on a Firefox Snap package against Ubuntu 24.04
scopes:
- generic-worker:os-group:gecko-t/t-linux-2404-wayland-snap/snap_sudo
worker-type: t-linux-2404-wayland-snap
run:
command: >-
export TASKCLUSTER_ROOT_DIR=$PWD && cd $MOZ_FETCHES_DIR/ && ./tests.sh --qa
treeherder:
platform: linux64/opt
symbol: Sel(QA)
attributes:
snap_test_type: qa
snap_test_release: "2404"