Bug 1808605 - part 20: Add Fenix test/ui-test kinds
parent
f5d9615487
commit
a84a9e5dfd
@ -1,122 +0,0 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
---
|
||||
loader: taskgraph.loader.transform:loader
|
||||
|
||||
transforms:
|
||||
- fenix_taskgraph.transforms.test:transforms
|
||||
- taskgraph.transforms.job:transforms
|
||||
- taskgraph.transforms.task:transforms
|
||||
|
||||
kind-dependencies:
|
||||
- toolchain
|
||||
|
||||
|
||||
task-defaults:
|
||||
attributes:
|
||||
retrigger: true
|
||||
description: Test Fenix
|
||||
extra:
|
||||
notify:
|
||||
slackBlocks: |
|
||||
[
|
||||
{
|
||||
"type": "header",
|
||||
"text": {
|
||||
"type": "plain_text",
|
||||
"text": "Fenix :firefox: ${task.metadata.name} :x:\n "
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "divider"
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*Task*: <https://firefox-ci-tc.services.mozilla.com/tasks/${status.taskId}|Taskcluster>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*Owner*: ${task.metadata.owner}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*Source*: <${task.payload.env.MOBILE_BASE_REPOSITORY}/commit/${task.payload.env.MOBILE_HEAD_REV}|Commit> :github:"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*Test Summary*: <https://firefoxci.taskcluster-artifacts.net/${status.taskId}/0/public/reports/test/testDebugUnitTest/index.html|Results> :debug:"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "divider"
|
||||
},
|
||||
{
|
||||
"type": "context",
|
||||
"elements": [
|
||||
{
|
||||
"type": "mrkdwn",
|
||||
"text": ":testops-notify: created by <https://mana.mozilla.org/wiki/x/P_zNBw|Mobile Test Engineering>"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
fetches:
|
||||
toolchain:
|
||||
- android-sdk-linux
|
||||
- android-gradle-dependencies
|
||||
include-pull-request-number: false
|
||||
run:
|
||||
using: gradlew
|
||||
use-caches: false
|
||||
routes:
|
||||
- notify.slack-channel.G016BC5FUHJ.on-failed
|
||||
scopes:
|
||||
- queue:route:notify.slack-channel.G016BC5FUHJ.on-failed
|
||||
- notify:slack-channel:G016BC5FUHJ
|
||||
treeherder:
|
||||
kind: test
|
||||
tier: 2
|
||||
worker-type: b-android
|
||||
worker:
|
||||
docker-image: {in-tree: base}
|
||||
max-run-time: 7200
|
||||
|
||||
tasks:
|
||||
debug:
|
||||
attributes:
|
||||
build-type: debug
|
||||
code-review: true
|
||||
run:
|
||||
pre-gradlew:
|
||||
- ['java', '-version']
|
||||
gradlew:
|
||||
- 'clean'
|
||||
- 'testDebugUnitTest'
|
||||
- 'githubTestDetails'
|
||||
treeherder:
|
||||
platform: 'android-all/opt'
|
||||
symbol: debug(T)
|
||||
tier: 1
|
||||
worker:
|
||||
artifacts:
|
||||
- name: public/reports/index.html
|
||||
path: /builds/worker/checkouts/vcs/app/build/reports/tests/testDebugUnitTest/index.html
|
||||
type: file
|
||||
- name: public/reports/test
|
||||
path: /builds/worker/checkouts/vcs/app/build/reports/tests
|
||||
type: directory
|
||||
- name: public/github
|
||||
path: /builds/worker/github
|
||||
type: directory
|
@ -1,161 +0,0 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
---
|
||||
loader: taskgraph.loader.transform:loader
|
||||
|
||||
transforms:
|
||||
- fenix_taskgraph.transforms.test:transforms
|
||||
- taskgraph.transforms.job:transforms
|
||||
- taskgraph.transforms.task:transforms
|
||||
|
||||
task-defaults:
|
||||
attributes:
|
||||
build-type: debug
|
||||
code-review: true
|
||||
retrigger: true
|
||||
dependencies:
|
||||
signing: signing-debug
|
||||
signing-android-test: signing-android-test-debug
|
||||
include-pull-request-number: true
|
||||
routes:
|
||||
- notify.slack-channel.G016BC5FUHJ.on-failed
|
||||
scopes:
|
||||
- queue:route:notify.slack-channel.G016BC5FUHJ.on-failed
|
||||
- notify:slack-channel:G016BC5FUHJ
|
||||
extra:
|
||||
notify:
|
||||
# slackText: 'https://firefox-ci-tc.services.mozilla.com/tasks/${status.taskId} | ${task.metadata.name} | ${task.metadata.source}'
|
||||
slackBlocks: |
|
||||
[
|
||||
{
|
||||
"type": "header",
|
||||
"text": {
|
||||
"type": "plain_text",
|
||||
"text": "Fenix :firefox: ${task.metadata.name} :x:\n "
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "divider"
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*Task*: <https://firefox-ci-tc.services.mozilla.com/tasks/${status.taskId}|Taskcluster>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*Owner*: ${task.metadata.owner}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "*Source*: <${task.payload.env.MOBILE_BASE_REPOSITORY}/commit/${task.payload.env.MOBILE_HEAD_REV}|Commit> :github:"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "divider"
|
||||
},
|
||||
{
|
||||
"type": "context",
|
||||
"elements": [
|
||||
{
|
||||
"type": "mrkdwn",
|
||||
"text": ":testops-notify: created by <https://mana.mozilla.org/wiki/x/P_zNBw|Mobile Test Engineering>"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
run:
|
||||
commands:
|
||||
- [wget, {artifact-reference: '<signing/public/build/arm64-v8a/target.apk>'}, '-O', app.apk]
|
||||
- [wget, {artifact-reference: '<signing-android-test/public/build/noarch/target.apk>'}, '-O', android-test.apk]
|
||||
secrets:
|
||||
- name: project/mobile/fenix/firebase
|
||||
key: firebaseToken
|
||||
path: .firebase_token.json
|
||||
json: true
|
||||
using: run-commands
|
||||
use-caches: false
|
||||
treeherder:
|
||||
kind: test
|
||||
platform: 'ui-test/opt'
|
||||
tier: 2
|
||||
worker:
|
||||
docker-image: {in-tree: ui-tests}
|
||||
max-run-time: 7200
|
||||
env:
|
||||
GOOGLE_APPLICATION_CREDENTIALS: '.firebase_token.json'
|
||||
GOOGLE_PROJECT: moz-fenix
|
||||
artifacts:
|
||||
- name: public
|
||||
path: /builds/worker/artifacts
|
||||
type: directory
|
||||
retry-exit-status: [20]
|
||||
worker-type: b-android
|
||||
|
||||
tasks:
|
||||
arm-debug:
|
||||
description: Test Fenix
|
||||
run-on-tasks-for: [github-pull-request, github-push]
|
||||
run-on-git-branches: ["^((?!releases[_/]).+)$"]
|
||||
run:
|
||||
commands:
|
||||
- [automation/taskcluster/androidTest/ui-test.sh, arm64-v8a, app.apk, android-test.apk, '100']
|
||||
treeherder:
|
||||
symbol: debug(ui-test-arm)
|
||||
screenshots-arm:
|
||||
attributes:
|
||||
screenshots: true
|
||||
description: Run UI screenshots tests to keep them up to date
|
||||
run-on-tasks-for: []
|
||||
run-on-git-branches: [main]
|
||||
run:
|
||||
commands:
|
||||
- [automation/taskcluster/androidTest/ui-test.sh, arm-screenshots-tests, app.apk, android-test.apk, '1']
|
||||
treeherder:
|
||||
symbol: debug(screenshots-arm)
|
||||
arm-beta:
|
||||
attributes:
|
||||
build-type: beta-firebase
|
||||
description: Test Fenix
|
||||
run-on-tasks-for: [github-push]
|
||||
run-on-git-branches: ["^releases[/_].+$"]
|
||||
dependencies:
|
||||
signing: signing-beta-firebase
|
||||
signing-android-test: signing-android-test-beta
|
||||
run:
|
||||
commands:
|
||||
- [automation/taskcluster/androidTest/ui-test.sh, arm-beta-tests, app.apk, android-test.apk, '2']
|
||||
treeherder:
|
||||
symbol: beta(ui-test-arm-beta)
|
||||
arm-nightly:
|
||||
attributes:
|
||||
build-type: nightly-firebase
|
||||
description: Test Fenix
|
||||
run-on-tasks-for: [github-push]
|
||||
dependencies:
|
||||
signing: signing-nightly-firebase
|
||||
signing-android-test: signing-android-test-nightly
|
||||
run:
|
||||
commands:
|
||||
- [automation/taskcluster/androidTest/ui-test.sh, arm-start-test, app.apk, android-test.apk, '2']
|
||||
treeherder:
|
||||
symbol: nightly(ui-test-arm-nightly)
|
||||
legacy-arm:
|
||||
attributes:
|
||||
legacy: true
|
||||
description: Run select UI tests on older Android API on cron
|
||||
run-on-tasks-for: []
|
||||
run-on-git-branches: [main]
|
||||
run:
|
||||
commands:
|
||||
- [automation/taskcluster/androidTest/ui-test.sh, arm-legacy-api-tests, app.apk, android-test.apk, '50']
|
||||
treeherder:
|
||||
symbol: debug(legacy-arm)
|
@ -1,20 +0,0 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from taskgraph.transforms.base import TransformSequence
|
||||
|
||||
|
||||
transforms = TransformSequence()
|
||||
|
||||
|
||||
@transforms.add
|
||||
def add_pr_number(config, tasks):
|
||||
for task in tasks:
|
||||
include_pr = task.pop("include-pull-request-number")
|
||||
if include_pr and config.params["pull_request_number"]:
|
||||
task["worker"]["env"]["PULL_REQUEST_NUMBER"] = str(
|
||||
config.params["pull_request_number"]
|
||||
)
|
||||
|
||||
yield task
|
Loading…
Reference in New Issue