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

no edit summary
No edit summary
No edit summary
Line 14: Line 14:


* If you use the above commands, you don't need a buildprops.json.  Otherwise you need to create a buildprops.json (I think this goes in cwd); this is output in the log of the test you're trying to replicate.
* If you use the above commands, you don't need a buildprops.json.  Otherwise you need to create a buildprops.json (I think this goes in cwd); this is output in the log of the test you're trying to replicate.
== Running Mozharness with a local version of Talos and Firefox on Linux ==
These instructions can be more general, but this should be a useful starting point for any similar configuration.
<pre>
python scripts/talos_script.py --cfg configs/talos/linux_config_local.py
</pre>
configs/talos/linux_config_local.py
<pre>
PYTHON = '/home/v/work/talos2/bin/python'                                         
VENV_PATH = '/home/v/work/talos2'
FIREFOX = "/home/v/work/gecko-dev/obj-linux-optimized/dist/bin/firefox"
   
config = { 
    "talos_json": "talos.json",
    "use_talos_json": True,
    "suite": "custom",
    "python_webserver": True,
    "binary_path": FIREFOX,
    "log_name": "talos",
    "buildbot_json_path": "buildprops.json", #optional
    "virtualenv_path": VENV_PATH,
    "default_actions": [
        "clobber",
        "run-tests",
    ],     
}
</pre>
talos.json
<pre>
{                                                                                 
    "global": {
        "talos_repo": "/home/v/work/talos2",
        "talos_revision": "tip"
    },
    "suites": {
        "custom": {
            "tests": ["ts"]
        }
    },
    "mobile-suites": {
    }
}
</pre>
Use this (and enable it in the config) if you want to simulate a try syntax commit message. We accept mozharness parameters through either the command line or this commit message.
buildprops.json
<pre>
{                                                                                 
  "sourcestamp": {
    "changes": [ {
          "comments": "mozharness: --spsProfile --spsProfileInterval 10 try: simulated try parameters go here",
          "files": [ {"name":""} ]
        }
      ]
  }
}
</pre>
12

edits