Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Bug 1788643 - Add a nightly cron task for performance tests. (#26761)
Browse files Browse the repository at this point in the history
* Bug 1788643 - Add a nightly cron task for performance tests.

* Fix bad function name.

* Run nightly-test cron manually.
  • Loading branch information
gmierz authored Sep 1, 2022
1 parent bc6ec7a commit 3033b26
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
when:
- {hour: 5, minute: 0}
- {hour: 17, minute: 0}
- name: nightly-test
job:
type: decision-task
treeherder-symbol: Nt
target-tasks-method: nightly-test
when: []
- name: fennec-production
job:
type: decision-task
Expand Down
4 changes: 2 additions & 2 deletions taskcluster/ci/browsertime/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ kind-dependencies:
primary-dependency: signing

only-for-build-types:
- nightly
- nightly-simulation

only-for-abis:
- armeabi-v7a
Expand All @@ -22,7 +22,7 @@ only-for-abis:
task-defaults:
attributes:
artifact_prefix: public/test_info
nightly: true
nightly-test: true
dependencies:
geckoview-nightly: geckoview-nightly
notify:
Expand Down
8 changes: 8 additions & 0 deletions taskcluster/fenix_taskgraph/target_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ def filter(task, parameters):
return [l for l, t in full_task_graph.tasks.items() if filter(t, parameters)]


@_target_task("nightly-test")
def target_tasks_nightly_test(full_task_graph, parameters, graph_config):
"""Select the set of tasks required for a nightly build."""
def filter(task, parameters):
return task.attributes.get("nightly-test", False)
return [l for l, t in full_task_graph.tasks.items() if filter(t, parameters)]


def _filter_fennec(fennec_type, task, parameters):
return task.attributes.get("build-type", "") == "fennec-{}".format(fennec_type)

Expand Down

0 comments on commit 3033b26

Please sign in to comment.