ReleaseEngineering/Mozharness/How to run tests as a developer: Difference between revisions

Improve the documentation
(Adding known issues section)
(Improve the documentation)
Line 12: Line 12:
* {{bug|1086672}} - Android test jobs cannot download the files needed to run locally
* {{bug|1086672}} - Android test jobs cannot download the files needed to run locally


= Steps =
= Run mozharness ... =
== ...on your local machine ==
Follow all the steps mentioned in "Common steps".
 
== ...on a loaner machine ==
* Don't use --cfg developer_config.py
* Use --no-read-buildbot-config
* If the job is...
** A build job: nothing to append
** A test job: append --installer-url and --test-url
** A talos job: append --installer-url
 
Also add these variables:
* export '''DISPLAY=:0''' # I think it applied for Linux hosts
* export '''MOZ_UPLOAD_DIR=/builds/slave/test/build/blobber_upload_dir'''
** This will allow your job to upload files to blobber
 
== ...with binaries from your objdir ==
TODO: I believe --installer-path instead of --installer-url can be used with --cfg dev_config.py, however, we have to verify this and document it properly.
 
If you figure it out please add it here and we will review it.
 
== Common steps ==
== Common steps ==
=== Step 1 - Clone Mozharness ===
=== Step 1 - Clone Mozharness ===
Line 19: Line 40:


=== Step 2 - Find the command in the log ===
=== Step 2 - Find the command in the log ===
In the job in tbpl you can search for '''"Run as scripts/scripts"''' and you should see how exactly the command was run in production and you can add the options mentioned above.
In the job in treeherder you can search for '''"Run as scripts/scripts"''' and you should see how exactly the command was run in production and you can add the options mentioned above.
Prepend ''python'' before this command.
 
NOTE: Don't forget to prepend ''python'' before the command.


=== Step 3 - Append --cfg developer_config.py ===
=== Step 3 - Append --cfg developer_config.py ===
Line 59: Line 81:
  --installer-url http://pvtbuilds.pvt.build.mozilla.org/pub/mozilla.org/b2g/tinderbox-builds/mozilla-central-emulator/20140910173159/emulator.tar.gz \
  --installer-url http://pvtbuilds.pvt.build.mozilla.org/pub/mozilla.org/b2g/tinderbox-builds/mozilla-central-emulator/20140910173159/emulator.tar.gz \
  --test-url http://pvtbuilds.pvt.build.mozilla.org/pub/mozilla.org/b2g/tinderbox-builds/mozilla-central-emulator/20140910173159/b2g-35.0a1.en-US.android-arm.tests.zip
  --test-url http://pvtbuilds.pvt.build.mozilla.org/pub/mozilla.org/b2g/tinderbox-builds/mozilla-central-emulator/20140910173159/b2g-35.0a1.en-US.android-arm.tests.zip
= Run mozharness ... =
== ...on your local machine ==
Follow all the steps mentioned above.
== ...with your local build ==
TODO: I believe --installer-path instead of --installer-url can be used with --cfg dev_config.py, however, we have to verify this and document it properly.
If you figure it out please add it here and I will review it.
== ...on a loaner machine ==
Follow all the steps mentioned above plus add these variables:
* export '''DISPLAY=:0'''
* export '''MOZ_UPLOAD_DIR=/builds/slave/test/build/blobber_upload_dir'''
** This will allow your job to upload files to blobber


= Other examples =
= Other examples =
Confirmed users
3,990

edits