Bug 1245398 - Use in-tree script for all mulet tests; r=ahal

MozReview-Commit-ID: AntB37HzGXa

--HG--
extra : rebase_source : 7641dd1e69dd027a96a15645cc0f4df92ac7ea44
This commit is contained in:
Edgar Chen 2016-02-10 18:12:02 +08:00
Родитель 51f2881f05
Коммит c463c026b9
10 изменённых файлов: 109 добавлений и 103 удалений

Просмотреть файл

@ -15,6 +15,7 @@ echo "running as" $(id)
: MOZHARNESS_CONFIG ${MOZHARNESS_CONFIG} : MOZHARNESS_CONFIG ${MOZHARNESS_CONFIG}
: NEED_XVFB ${NEED_XVFB:=true} : NEED_XVFB ${NEED_XVFB:=true}
: NEED_PULSEAUDIO ${NEED_PULSEAUDIO:=false} : NEED_PULSEAUDIO ${NEED_PULSEAUDIO:=false}
: NEED_PULL_GAIA ${NEED_PULL_GAIA:=false}
: SKIP_MOZHARNESS_RUN ${SKIP_MOZHARNESS_RUN:=false} : SKIP_MOZHARNESS_RUN ${SKIP_MOZHARNESS_RUN:=false}
: WORKSPACE ${WORKSPACE:=/home/worker/workspace} : WORKSPACE ${WORKSPACE:=/home/worker/workspace}
: mozharness args "${@}" : mozharness args "${@}"
@ -79,6 +80,24 @@ if $NEED_XVFB; then
if [ $xvfb_test == 255 ]; then exit 255; fi if [ $xvfb_test == 255 ]; then exit 255; fi
fi fi
gaia_cmds=""
if $NEED_PULL_GAIA; then
# test required parameters are supplied
if [[ -z ${GAIA_BASE_REPOSITORY} ]]; then exit 1; fi
if [[ -z ${GAIA_HEAD_REPOSITORY} ]]; then exit 1; fi
if [[ -z ${GAIA_REV} ]]; then exit 1; fi
if [[ -z ${GAIA_REF} ]]; then exit 1; fi
tc-vcs checkout \
${WORKSPACE}/gaia \
${GAIA_BASE_REPOSITORY} \
${GAIA_HEAD_REPOSITORY} \
${GAIA_REV} \
${GAIA_REF}
gaia_cmds="--gaia-dir=${WORKSPACE}"
fi
# support multiple, space delimited, config files # support multiple, space delimited, config files
config_cmds="" config_cmds=""
for cfg in $MOZHARNESS_CONFIG; do for cfg in $MOZHARNESS_CONFIG; do
@ -95,5 +114,5 @@ if [ ${SKIP_MOZHARNESS_RUN} == true ]; then
else else
# run the given mozharness script and configs, but pass the rest of the # run the given mozharness script and configs, but pass the rest of the
# arguments in from our own invocation # arguments in from our own invocation
python2.7 $WORKSPACE/${MOZHARNESS_SCRIPT} ${config_cmds} "${@}" python2.7 $WORKSPACE/${MOZHARNESS_SCRIPT} ${config_cmds} ${gaia_cmds} "${@}"
fi fi

Просмотреть файл

@ -17,6 +17,8 @@ task:
loopbackVideo: true loopbackVideo: true
loopbackAudio: true loopbackAudio: true
env: env:
GECKO_HEAD_REPOSITORY: '{{{head_repository}}}'
GECKO_HEAD_REV: '{{{head_rev}}}'
GAIA_HEAD_REPOSITORY: '{{{gaia_head_repository}}}' GAIA_HEAD_REPOSITORY: '{{{gaia_head_repository}}}'
GAIA_BASE_REPOSITORY: '{{{gaia_base_repository}}}' GAIA_BASE_REPOSITORY: '{{{gaia_base_repository}}}'
GAIA_REF: '{{{gaia_ref}}}' GAIA_REF: '{{{gaia_ref}}}'

Просмотреть файл

@ -7,18 +7,18 @@ task:
description: Gaia Build Test test run description: Gaia Build Test test run
payload: payload:
env:
NEED_XVFB: true
NEED_PULL_GAIA: true
MOZHARNESS_SCRIPT: 'mozharness/scripts/gaia_build_integration.py'
MOZHARNESS_CONFIG: 'mozharness/configs/b2g/taskcluster_gaia_integration.py'
command: command:
- entrypoint # entrypoint ensures we are running in xvfb - bash
- ./bin/pull_gaia.sh && - /home/worker/bin/test.sh
- > - --application=firefox
python ./mozharness/scripts/gaia_build_integration.py - --installer-url={{build_url}}
--application firefox - --test-packages-url={{test_packages_url}}
--config-file ./mozharness/configs/b2g/taskcluster_gaia_integration.py - --xre-url=https://api.pub.build.mozilla.org/tooltool/sha512/cefa8c00db04969d3a50e2a5509bd4ea1dc17d256a651a9518cb28dad72e87a1dbbcd3c88ef770be0edf0ab73d2d73925140df93618ffb7fab81b789d312f547
--installer-url {{build_url}}
--test-packages-url {{test_packages_url}}
--gaia-repo https://hg.mozilla.org/integration/gaia-central
--gaia-dir /home/worker
--xre-url https://api.pub.build.mozilla.org/tooltool/sha512/cefa8c00db04969d3a50e2a5509bd4ea1dc17d256a651a9518cb28dad72e87a1dbbcd3c88ef770be0edf0ab73d2d73925140df93618ffb7fab81b789d312f547
artifacts: artifacts:
'public/build': 'public/build':
type: directory type: directory

Просмотреть файл

@ -7,17 +7,17 @@ task:
description: Gaia Build Unit Test description: Gaia Build Unit Test
payload: payload:
env:
NEED_XVFB: true
NEED_PULL_GAIA: true
MOZHARNESS_SCRIPT: 'mozharness/scripts/gaia_build_unit.py'
MOZHARNESS_CONFIG: 'mozharness/configs/b2g/taskcluster_gaia_integration.py'
command: command:
- entrypoint - bash
- ./bin/pull_gaia.sh && - /home/worker/bin/test.sh
- > - --application=firefox
python ./mozharness/scripts/gaia_build_unit.py - --installer-url={{build_url}}
--application firefox - --test-packages-url={{test_packages_url}}
--config-file ./mozharness/configs/b2g/taskcluster_gaia_integration.py
--installer-url {{build_url}}
--test-packages-url {{test_packages_url}}
--gaia-repo https://hg.mozilla.org/integration/gaia-central
--gaia-dir /home/worker
artifacts: artifacts:
'public/build': 'public/build':
type: directory type: directory

Просмотреть файл

@ -8,19 +8,19 @@ task:
description: Mulet Gaia JS Integration Test run {{chunk}} description: Mulet Gaia JS Integration Test run {{chunk}}
payload: payload:
env:
NEED_XVFB: true
NEED_PULL_GAIA: true
MOZHARNESS_SCRIPT: 'mozharness/scripts/gaia_integration.py'
MOZHARNESS_CONFIG: 'mozharness/configs/b2g/taskcluster_gaia_integration.py'
command: command:
- entrypoint # entrypoint ensures we are running in xvfb - bash
- ./bin/pull_gaia.sh && - /home/worker/bin/test.sh
- > - --application=firefox
python ./mozharness/scripts/gaia_integration.py - --installer-url={{build_url}}
--application firefox - --test-packages-url={{test_packages_url}}
--config-file b2g/taskcluster_gaia_integration.py - --total-chunk={{total_chunks}}
--installer-url {{build_url}} - --this-chunk={{chunk}}
--test-packages-url {{test_packages_url}}
--total-chunk {{total_chunks}}
--this-chunk {{chunk}}
--gaia-repo {{gaia_head_repository}}
--gaia-dir /home/worker
artifacts: artifacts:
'public/build': 'public/build':
type: directory type: directory

Просмотреть файл

@ -7,20 +7,20 @@ task:
description: Mulet Gaia Unit Test description: Mulet Gaia Unit Test
payload: payload:
env:
NEED_XVFB: true
NEED_PULL_GAIA: true
MOZHARNESS_SCRIPT: 'mozharness/scripts/gaia_unit.py'
MOZHARNESS_CONFIG: 'mozharness/configs/b2g/taskcluster_gaia_unit_production.py'
command: command:
- entrypoint - bash
- ./bin/pull_gaia.sh && - /home/worker/bin/test.sh
- > - --application=firefox
python ./mozharness/scripts/gaia_unit.py - --installer-url={{build_url}}
--application firefox - --test-packages-url={{test_packages_url}}
--config-file b2g/taskcluster_gaia_unit_production.py - --xre-url=https://api.pub.build.mozilla.org/tooltool/sha512/cefa8c00db04969d3a50e2a5509bd4ea1dc17d256a651a9518cb28dad72e87a1dbbcd3c88ef770be0edf0ab73d2d73925140df93618ffb7fab81b789d312f547
--installer-url {{build_url}} - --total-chunk={{total_chunks}}
--test-packages-url {{test_packages_url}} - --this-chunk={{chunk}}
--gaia-repo {{gaia_head_repository}}
--gaia-dir /home/worker
--xre-url https://api.pub.build.mozilla.org/tooltool/sha512/cefa8c00db04969d3a50e2a5509bd4ea1dc17d256a651a9518cb28dad72e87a1dbbcd3c88ef770be0edf0ab73d2d73925140df93618ffb7fab81b789d312f547
--total-chunk={{total_chunks}}
--this-chunk={{chunk}}
artifacts: artifacts:
'public/build': 'public/build':
type: directory type: directory

Просмотреть файл

@ -7,21 +7,21 @@ task:
description: Mulet Gaia Unit Test OOP description: Mulet Gaia Unit Test OOP
payload: payload:
env:
NEED_XVFB: true
NEED_PULL_GAIA: true
MOZHARNESS_SCRIPT: 'mozharness/scripts/gaia_unit.py'
MOZHARNESS_CONFIG: 'mozharness/configs/b2g/taskcluster_gaia_unit_production.py'
command: command:
- entrypoint - bash
- ./bin/pull_gaia.sh && - /home/worker/bin/test.sh
- > - --application=firefox
python ./mozharness/scripts/gaia_unit.py - --browser-arg=-oop
--application firefox - --installer-url={{build_url}}
--config-file b2g/taskcluster_gaia_unit_production.py - --test-packages-url={{test_packages_url}}
--browser-arg -oop - --xre-url=https://api.pub.build.mozilla.org/tooltool/sha512/cefa8c00db04969d3a50e2a5509bd4ea1dc17d256a651a9518cb28dad72e87a1dbbcd3c88ef770be0edf0ab73d2d73925140df93618ffb7fab81b789d312f547
--installer-url {{build_url}} - --total-chunk={{total_chunks}}
--test-packages-url {{test_packages_url}} - --this-chunk={{chunk}}
--gaia-repo {{gaia_head_repository}}
--gaia-dir /home/worker
--xre-url https://api.pub.build.mozilla.org/tooltool/sha512/cefa8c00db04969d3a50e2a5509bd4ea1dc17d256a651a9518cb28dad72e87a1dbbcd3c88ef770be0edf0ab73d2d73925140df93618ffb7fab81b789d312f547
--total-chunk={{total_chunks}}
--this-chunk={{chunk}}
artifacts: artifacts:
'public/build': 'public/build':
type: directory type: directory

Просмотреть файл

@ -7,17 +7,17 @@ task:
description: Linter Test description: Linter Test
payload: payload:
env:
NEED_XVFB: true
NEED_PULL_GAIA: true
MOZHARNESS_SCRIPT: 'mozharness/scripts/gaia_linter.py'
MOZHARNESS_CONFIG: 'mozharness/configs/b2g/taskcluster_gaia_integration.py'
command: command:
- entrypoint - bash
- ./bin/pull_gaia.sh && - /home/worker/bin/test.sh
- > - --application=firefox
python ./mozharness/scripts/gaia_linter.py - --installer-url={{build_url}}
--application firefox - --test-packages-url={{test_packages_url}}
--config-file ./mozharness/configs/b2g/taskcluster_gaia_integration.py
--installer-url {{build_url}}
--test-packages-url {{test_packages_url}}
--gaia-repo https://hg.mozilla.org/integration/gaia-central
--gaia-dir /home/worker
artifacts: artifacts:
'public/build': 'public/build':
type: directory type: directory

Просмотреть файл

@ -1,28 +1,13 @@
--- ---
$inherits: $inherits:
from: 'tasks/test.yml' from: 'tasks/tests/b2g_unittest_base.yml'
task: task:
metadata: metadata:
name: '[TC] Mulet Mochitests ( {{chunk}} )' name: '[TC] Mulet Mochitests ( {{chunk}} )'
description: Mulet Mochitest run {{chunk}} description: Mulet Mochitest run {{chunk}}
scopes:
- 'docker-worker:cache:level-{{level}}-{{project}}-tc-vcs'
- 'docker-worker:cache:level-{{level}}-{{project}}-dotcache'
- 'docker-worker:capability:device:loopbackVideo'
- 'docker-worker:capability:device:loopbackAudio'
payload: payload:
image: '{{#docker_image}}tester{{/docker_image}}'
cache:
# So pip installs are cached...
level-{{level}}-{{project}}-dotcache: /home/worker/.cache
level-{{level}}-{{project}}-tc-vcs: '/home/worker/.tc-vcs'
capabilities:
devices:
loopbackVideo: true
loopbackAudio: true
env: env:
GECKO_HEAD_REPOSITORY: '{{{head_repository}}}'
GECKO_HEAD_REV: '{{{head_rev}}}'
NEED_XVFB: true NEED_XVFB: true
NEED_PULSEAUDIO: true NEED_PULSEAUDIO: true
MOZHARNESS_SCRIPT: 'mozharness/scripts/desktop_unittest.py' MOZHARNESS_SCRIPT: 'mozharness/scripts/desktop_unittest.py'

Просмотреть файл

@ -3,26 +3,25 @@ $inherits:
from: 'tasks/tests/b2g_unittest_base.yml' from: 'tasks/tests/b2g_unittest_base.yml'
task: task:
metadata: metadata:
name: '[TC] Reftest' name: '[TC] Mulet Reftest ( {{chunk}} )'
description: Reftest test run {{chunk}} description: Mulet Reftest run {{chunk}}
payload: payload:
env: env:
MOZ_DISABLE_NONLOCAL_CONNECTIONS: 0 MOZ_DISABLE_NONLOCAL_CONNECTIONS: 0
NEED_XVFB: true
NEED_PULL_GAIA: true
MOZHARNESS_SCRIPT: 'mozharness/scripts/mulet_unittest.py'
MOZHARNESS_CONFIG: 'mozharness/configs/b2g/taskcluster_mulet_automation.py'
command: command:
- entrypoint - bash
- ./bin/pull_gaia.sh && - /home/worker/bin/test.sh
- > - --installer-url={{build_url}}
python ./mozharness/scripts/mulet_unittest.py - --test-packages-url={{test_packages_url}}
--config-file ./mozharness/configs/b2g/taskcluster_mulet_automation.py - --test-suite=reftest
--installer-url {{build_url}} - --test-manifest=tests/layout/reftests/reftest.list
--test-packages-url {{test_packages_url}} - --this-chunk={{chunk}}
--test-suite reftest - --total-chunk={{total_chunks}}
--test-manifest tests/layout/reftests/reftest.list
--this-chunk {{chunk}}
--total-chunk {{total_chunks}}
--gaia-repo https://hg.mozilla.org/integration/gaia-central
--gaia-dir /home/worker/gaia
artifacts: artifacts:
'public/build': 'public/build':
type: directory type: directory
@ -40,3 +39,4 @@ task:
groupName: Mulet Reftest groupName: Mulet Reftest
symbol: 'R{{chunk}}' symbol: 'R{{chunk}}'
productName: b2g productName: b2g
tier: 3