forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backed out changeset 3c0a7527608a (bug 1335873)
- Loading branch information
1 parent
4fd8a15
commit 47191b4
Showing
16 changed files
with
284 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# 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/. | ||
|
||
# NOTE: please write a description of this kind in taskcluster/docs/kinds.rst | ||
|
||
implementation: taskgraph.task.transform:TransformTask | ||
|
||
transforms: | ||
- taskgraph.transforms.marionette_harness:transforms | ||
- taskgraph.transforms.task:transforms | ||
|
||
# NOTE: this task should be refactored so that it is invoked as a job either | ||
# with a run.using of "mozharness", and combined with the source-check kind. | ||
|
||
jobs: | ||
marionette-harness/opt: | ||
description: "Marionette harness unit test" | ||
attributes: | ||
build_platform: marionette-harness | ||
build_type: opt | ||
treeherder: | ||
platform: linux64/opt | ||
kind: test | ||
tier: 2 | ||
symbol: tc(Mn-h) | ||
worker-type: aws-provisioner-v1/gecko-t-linux-xlarge | ||
worker: | ||
implementation: docker-worker | ||
docker-image: {in-tree: desktop-build} # NOTE: better to use the lint image | ||
env: | ||
JOB_SCRIPT: "taskcluster/scripts/tester/harness-test-linux.sh" | ||
MOZHARNESS_SCRIPT: "testing/mozharness/scripts/marionette_harness_tests.py" | ||
TOOLS_DISABLE: "true" | ||
artifacts: | ||
- name: public/logs/ | ||
path: /home/worker/workspace/mozharness_workspace/upload/logs/ | ||
type: directory | ||
command: | ||
- "bash" | ||
- "/home/worker/bin/build.sh" | ||
- "--tests=testing/marionette/harness/marionette_harness/tests/harness_unit" | ||
- "--work-dir=mozharness_workspace" | ||
max-run-time: 1800 | ||
when: | ||
files-changed: | ||
- "testing/marionette/harness/**" | ||
- "testing/mozbase/mozlog/mozlog/pytest_mozlog/**" | ||
- "testing/mozharness/scripts/marionette_harness_tests.py" | ||
- "testing/config/marionette_harness_test_requirements.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#! /bin/bash -vex | ||
|
||
set -x -e | ||
|
||
echo "running as" $(id) | ||
|
||
#### | ||
# Taskcluster friendly wrapper for running a script in | ||
# testing/mozharness/scripts in a source checkout (no build). | ||
# Example use: Python-only harness unit tests | ||
#### | ||
|
||
: WORKSPACE ${WORKSPACE:=/home/worker/workspace} | ||
: SRC_ROOT ${SRC_ROOT:=$WORKSPACE/build/src} | ||
# These paths should be relative to $SRC_ROOT | ||
: MOZHARNESS_SCRIPT ${MOZHARNESS_SCRIPT} | ||
: MOZHARNESS_CONFIG ${MOZHARNESS_CONFIG} | ||
: mozharness args "${@}" | ||
|
||
set -v | ||
cd $WORKSPACE | ||
|
||
fail() { | ||
echo # make sure error message is on a new line | ||
echo "[harness-test-linux.sh:error]" "${@}" | ||
exit 1 | ||
} | ||
|
||
if [[ -z ${MOZHARNESS_SCRIPT} ]]; then fail "MOZHARNESS_SCRIPT is not set"; fi | ||
|
||
# support multiple, space delimited, config files | ||
config_cmds="" | ||
for cfg in $MOZHARNESS_CONFIG; do | ||
config_cmds="${config_cmds} --config-file ${SRC_ROOT}/${cfg}" | ||
done | ||
|
||
python2.7 $SRC_ROOT/${MOZHARNESS_SCRIPT} ${config_cmds} "${@}" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ | |
JOB_KINDS = set([ | ||
'source-test', | ||
'toolchain', | ||
'marionette-harness', | ||
'android-stuff', | ||
]) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-r mozbase_requirements.txt | ||
|
||
# TODO - if we structure common.tests.zip to match the in-tree structure of the | ||
# testing directory, we could use ./marionette_requirements.txt instead | ||
../web-platform/tests/tools/wptserve | ||
../marionette/client | ||
../marionette/harness/marionette_harness/runner/mixins/browsermob-proxy-py | ||
../marionette/harness | ||
|
||
# pytest | ||
../../python/py | ||
../../python/pytest | ||
../../python/mock-1.0.0 |
9 changes: 0 additions & 9 deletions
9
testing/marionette/harness/marionette_harness/tests/harness_unit/python.ini
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.