TestEngineering/Performance/Raptor: Difference between revisions

→‎Raptor on Mobile projects (Fenix, Reference-Browser): Update instructions now that projects use taskgraph.
(→‎Raptor on Mobile projects (Fenix, Reference-Browser): Update instructions now that projects use taskgraph.)
Line 697: Line 697:
! Project !! Repository !! Tests results !! Schedule
! Project !! Repository !! Tests results !! Schedule
|-
|-
| Fenix (aka Firefox Preview) || [https://github.com/mozilla-mobile/fenix/ Github] || [https://treeherder.mozilla.org/#/jobs?repo=fenix Treeherder view] || Every 24 hours [https://tools.taskcluster.net/hooks/project-mobile/fenix-raptor Taskcluster Hook]
| Fenix (aka Firefox Preview) || [https://github.com/mozilla-mobile/fenix/ Github] || [https://treeherder.mozilla.org/#/jobs?repo=fenix Treeherder view] || Every 24 hours [https://tools.taskcluster.net/hooks/project-releng/cron-task-mozilla-mobile-fenix%2Fraptor Taskcluster force hook]
|-
|-
| Reference-Browser || [https://github.com/mozilla-mobile/reference-browser/ Github] || [https://treeherder.mozilla.org/#/jobs?repo=reference-browser Treeherder view] || On demand [https://tools.taskcluster.net/hooks/project-mobile/reference-browser-raptor Taskcluster Hook]
| Reference-Browser || [https://github.com/mozilla-mobile/reference-browser/ Github] || [https://treeherder.mozilla.org/#/jobs?repo=reference-browser Treeherder view] || On each push
|}
|}


Tests are defined differently from what exists in mozilla-central. Taskcluster payloads are expressed in Python function in:
Tests are now defined in a similar fashion compared to what exists in mozilla-central. Task definitions are expressed in Yaml:
* https://github.com/mozilla-mobile/reference-browser/blob/f2ae31e23e36a749b937ff9728c28d53760242eb/automation/taskcluster/lib/tasks.py#L478-L616
* https://github.com/mozilla-mobile/fenix/blob/1c9c5317eb33d92dde3293dfe6a857c279a7ab12/taskcluster/ci/raptor/kind.yml
* https://github.com/mozilla-mobile/fenix/blob/8928822e99ff09ab45bce8ebab63aead10b7ebde/automation/taskcluster/lib/tasks.py#L455-L561
* https://github.com/mozilla-mobile/reference-browser/blob/4560a83cb559d3d4d06383205a8bb76a44336704/taskcluster/ci/raptor/kind.yml


Once defined, you must call these functions:
If you want to test your changes on a PR, before they land, you need to apply a patch like this one: https://github.com/mozilla-mobile/fenix/pull/5565/files. Don't forget to revert it before merging the patch.  
* https://github.com/mozilla-mobile/reference-browser/blob/f2ae31e23e36a749b937ff9728c28d53760242eb/automation/taskcluster/decision_task.py#L83-L96
* https://github.com/mozilla-mobile/fenix/blob/8928822e99ff09ab45bce8ebab63aead10b7ebde/automation/taskcluster/decision_task.py#L82-L91
 
If you want to test your changes on a PR, before they land, you need to apply a patch like this one: https://github.com/mozilla-mobile/fenix/commit/4cc16d4268240393f57b3711ab423c2407aeffb7. Don't forget to revert it before merging the patch.  


On Fenix and Reference-Browser, the raptor revision is tied to the latest nightly of mozilla-central  
On Fenix and Reference-Browser, the raptor revision is tied to the latest nightly of mozilla-central  


For more information, please reach out to :jlorenzo or :mhentges in #cia
For more information, please reach out to :jlorenzo or :mhentges in #cia
Confirmed users
198

edits