gecko-dev/testing/mozharness
Gregory Szorc ed7bf22170 Bug 1271077 - Print system resource utilization so it appears in Treeherder; r=jlund
The system resource utilization during job execution is important: it
gives us an idea of the efficiency (or lack thereof) of activities.

As bug 1271035 showed us, there can be some really wonky things going
on during job execution. To help us notice these things, this commit
prints some overall resource utilization data with the special
"TinderboxPrint" syntax so it appears in Treeherder. This should
hopefully draw the attention of more eye balls and cause people to
ask questions about what jobs are doing.

This supplements the existing printing of total resource usage in the
logs. Unfortunately nobody was really looking at that data because it
wasn't exposed that well. This commit should change that.

MozReview-Commit-ID: AXNRDS9lrOd

--HG--
extra : rebase_source : c5e6b440092853649456d89a1f7dc370ca4ec29a
2016-05-09 23:12:19 -07:00
..
configs Backed out changeset 214b6958340a (bug 1270317) 2016-05-09 12:34:06 +02:00
docs Bug 1154796 - make a copy of mozharness and put it in gecko tree, based on 4d855a6835ed, r=mshal 2015-07-03 09:04:58 -07:00
examples Bug 1154796 - make a copy of mozharness and put it in gecko tree, based on 4d855a6835ed, r=mshal 2015-07-03 09:04:58 -07:00
external_tools Backed out changeset b01744f2d97d (bug 1270317) 2016-05-09 12:34:10 +02:00
mozfile Bug 1154796 - make a copy of mozharness and put it in gecko tree, based on 4d855a6835ed, r=mshal 2015-07-03 09:04:58 -07:00
mozharness Bug 1271077 - Print system resource utilization so it appears in Treeherder; r=jlund 2016-05-09 23:12:19 -07:00
mozinfo Bug 1154796 - make a copy of mozharness and put it in gecko tree, based on 4d855a6835ed, r=mshal 2015-07-03 09:04:58 -07:00
mozprocess Bug 1154796 - make a copy of mozharness and put it in gecko tree, based on 4d855a6835ed, r=mshal 2015-07-03 09:04:58 -07:00
scripts Merge mozilla-central to mozilla-inbound 2016-05-09 13:07:48 +02:00
test Backed out changeset 86fccb7da8ac (bug 1270317) 2016-05-09 12:34:04 +02:00
LICENSE Bug 1154796 - make a copy of mozharness and put it in gecko tree, based on 4d855a6835ed, r=mshal 2015-07-03 09:04:58 -07:00
mach_commands.py Bug 1238079 - remove the desktop web runtime; r=fabrice,mossop,gps,jryans,jmaher,marco 2016-03-07 13:33:12 -08:00
README.txt Bug 1240733 - Improve tox configuration for optional arguments. r=jlund DONTBUILD 2016-01-20 11:01:19 +01:00
requirements.txt Backed out changeset b893641e2d9f (bug 1270317) to hopefully unbreak builds 2016-05-09 12:34:26 +02:00
setup.cfg Bug 1154796 - make a copy of mozharness and put it in gecko tree, based on 4d855a6835ed, r=mshal 2015-07-03 09:04:58 -07:00
setup.py Bug 1154796 - make a copy of mozharness and put it in gecko tree, based on 4d855a6835ed, r=mshal 2015-07-03 09:04:58 -07:00
tox.ini Backed out changeset b893641e2d9f (bug 1270317) to hopefully unbreak builds 2016-05-09 12:34:26 +02:00
unit.sh Bug 1154796 - make a copy of mozharness and put it in gecko tree, based on 4d855a6835ed, r=mshal 2015-07-03 09:04:58 -07:00

# Mozharness

## Docs
* https://developer.mozilla.org/en-US/docs/Mozharness_FAQ
* https://wiki.mozilla.org/ReleaseEngineering/Mozharness
* http://moz-releng-mozharness.readthedocs.org/en/latest/mozharness.mozilla.html
* http://moz-releng-docs.readthedocs.org/en/latest/software.html#mozharness

## Submitting changes
Like any Gecko change, please create a patch or submit to Mozreview and
open a Bugzilla ticket under the Mozharness component:
https://bugzilla.mozilla.org/enter_bug.cgi?product=Release%20Engineering&component=Mozharness

This bug will get triaged by Release Engineering

## Run unit tests
To run the unit tests of mozharness the `tox` package needs to be installed:

```
pip install tox
```

There are various ways to run the unit tests. Just make sure you are within the `$gecko_repo/testing/mozharness` directory before running one of the commands below:

```
tox                            # run all unit tests
tox -- -x                      # run all unit tests but stop after first failure
tox -- test/test_base_log.py   # only run the base log unit test
```

Happy contributing! =)