Skip to content

Commit 8b7408e

Browse files
authored
Add MTE-1596 [v119] Add Firebase Performance Test Taskcluster Task (#16561)
* Empty Commit * add firebase perf kind.yml * add firebase performance target task * add firebase performance cron * update symbol and platform name * update symbol and platform name * trigger tasks * update task names * update cron job name * update device model * update device model * change simulator perftest workflow name
1 parent a4e85a7 commit 8b7408e

File tree

5 files changed

+49
-10
lines changed

5 files changed

+49
-10
lines changed

.cron.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@ jobs:
1010
target-tasks-method: l10n_screenshots
1111
treeherder-symbol: l10-screenshots
1212
when: [] # Manual trigger only
13-
- name: tab-performance-test
13+
- name: bitrise-performance-test
1414
job:
1515
type: decision-task
16-
target-tasks-method: tab_performance_test
17-
treeherder-symbol: tab-performance-test
16+
target-tasks-method: bitrise_performance_test
17+
treeherder-symbol: bitrise-performance
18+
when:
19+
- {hour: 22, minute: 0}
20+
- name: firebase-performance-test
21+
job:
22+
type: decision-task
23+
target-tasks-method: firebase_performance_test
24+
treeherder-symbol: firebase-performance
1825
when:
1926
- {hour: 22, minute: 0}

bitrise.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ workflows:
13151315
bitrise.io:
13161316
stack: osx-xcode-14.3.x-ventura
13171317
machine_type_id: g2-m1.8core
1318-
perfherder-test:
1318+
Bitrise_Performance_Test:
13191319
steps:
13201320
- cache-pull@2.1:
13211321
is_always_run: true

taskcluster/ci/performance/kind.yml taskcluster/ci/bitrise-performance/kind.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ transforms:
1313

1414
tasks:
1515
tests:
16-
bitrise-workflow: perfherder-test
17-
description: Run performance tests and generate data
16+
bitrise-workflow: Bitrise_Performance_Test
17+
description: Run Performance Tests on iOS Simulator in Bitrise
1818
run-on-tasks-for: []
1919
treeherder:
20-
symbol: perf
20+
symbol: bitrise-performance
2121
kind: test
22-
platform: ios/opt
22+
platform: ios-simulator-iphone14-16.4/opt
2323
tier: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
---
5+
loader: taskgraph.loader.transform:loader
6+
7+
transforms:
8+
- ffios_taskgraph.transforms.bitrise:transforms
9+
- ffios_taskgraph.transforms.secrets:transforms
10+
- taskgraph.transforms.job:transforms
11+
- taskgraph.transforms.task:transforms
12+
13+
14+
tasks:
15+
tests:
16+
bitrise-workflow: Firebase_Performance_Test
17+
description: Run Performance Tests on Physical Devices in Firebase
18+
run-on-tasks-for: []
19+
treeherder:
20+
symbol: firebase-performance
21+
kind: test
22+
platform: ios-physical-iphone13pro-15.7/opt
23+
tier: 1

taskcluster/ffios_taskgraph/target_tasks.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,20 @@ def filter(task, parameters):
1515

1616
return [l for l, t in full_task_graph.tasks.items() if filter(t, parameters)]
1717

18-
@_target_task('tab_performance_test')
18+
@_target_task('bitrise_performance_test')
1919
def target_tasks_default(full_task_graph, parameters, graph_config):
2020
"""Target the tasks which have indicated they should be run on this project
2121
via the `run_on_projects` attributes."""
2222
def filter(task, parameters):
23-
return task.kind == "performance"
23+
return task.kind == "bitrise-performance"
24+
25+
return [l for l, t in full_task_graph.tasks.items() if filter(t, parameters)]
26+
27+
@_target_task('firebase_performance_test')
28+
def target_tasks_default(full_task_graph, parameters, graph_config):
29+
"""Target the tasks which have indicated they should be run on this project
30+
via the `run_on_projects` attributes."""
31+
def filter(task, parameters):
32+
return task.kind == "firebase-performance"
2433

2534
return [l for l, t in full_task_graph.tasks.items() if filter(t, parameters)]

0 commit comments

Comments
 (0)