gecko-dev/testing/mozharness/scripts
Gregory Szorc abd52a84b9 Bug 1361436 - Emit build stats immediately after build; r=ted
The "generate-build-stats" mozharness action collects a bunch of build
system metrics, including build_resources.json, ctors count, and
installer size and reports them by writing special messages that
log parsers read.

Before this commit, this mozharness action occurred sometime after
"build." But relative ordering to other actions was not consistent
and appears to be significantly cargo culted.

4e61e69a383c (bug 1304508) changed the "check" mozharness action to
invoke `mach build check` instead of `make` directly. An unintended
consequence of this is that `mach build` replaced the
build_resources.json file from the build itself with one measuring
`make check`. This made the "build time summary" metric take a nose
dive.

This commit works around the issue introduced by 4e61e69a383c by
reordering the mozharness actions so "generate-build-stats" follows
immediately after the "build" action. Not only does it now occur
before the "check" action, but it also occurs before uploading and
other actions.

I'm not sure why "generate-build-stats" is its own action and not
part of "build" itself. As the diff shows, numerous instances of
"generate-build-stats" are commented out, which means we aren't
collecting metrics. "generate-build-stats" is also missing from a
handful of mozharness configs, including Windows Clang builds. I'm
not sure what the history is (it is likely varied and almost certainly
involves a fair amount of cargo culting), but I think it is a bug that
we aren't collecting build metrics for every build. I would like to
fix this. And moving "generate-build-stats" immediately after "build"
should make that transition easier.

MozReview-Commit-ID: 7jNTVWRvMnh

--HG--
extra : rebase_source : 0b5fd1f462caa5c283ba7e1b693fdc5b8b948add
2017-05-02 14:32:52 -07:00
..
firefox_ui_tests Bug 1274059 - Remove HgtoolVCS - Part 1, remove users of hgtool and fixups. r=nthomas 2016-08-19 09:06:42 -04:00
merge_day Bug 1342959 - Update merge day scripts after esr52 meges r=jlund DONTBUILD 2017-02-27 16:07:06 -05:00
release bug 1347212: improve release automation publishing of releases - allow pushes to be scheduled instead of done directly. r=rail 2017-04-03 10:43:57 -04:00
spidermonkey Bug 1359988 - Remove spidermonkey b2g build script; r=mshal 2017-04-26 13:51:01 -07:00
android_emulator_unittest.py Bug 1336541 - Suppress DDMS prompt when starting android emulator; r=jmaher 2017-03-21 16:11:39 -06:00
awsy_script.py Bug 1344805 - Get AWSY running on Windows, r=jmaher,pyang,erahm. 2017-03-29 01:47:47 -07:00
bouncer_submitter.py
configtest.py
desktop_l10n.py Bug 1304508 - Remove final references to pymake in mozharness; r=ted 2017-04-26 13:41:00 -07:00
desktop_partner_repacks.py Bug 1265425 - Fix buildbot properties r=coop a=release DONTBUILD 2016-05-06 07:01:30 -04:00
desktop_unittest.py Bug 1318187 - turn on parallel Stylo traversal for e10s tests; r=dustin,chmanchester 2017-04-14 09:52:22 +08:00
firefox_media_tests_buildbot.py Bug 1343129 - Update the base media test class to set self.return_code based on the job result parser. r=maja_zf 2017-02-28 15:46:16 +13:00
firefox_media_tests_jenkins.py
firefox_media_tests_taskcluster.py Bug 1298715 - Add taskcluster specific scripts and config for external media tests. r=grenade 2016-11-01 00:16:00 +13:00
fx_desktop_build.py Bug 1361436 - Emit build stats immediately after build; r=ted 2017-05-02 14:32:52 -07:00
l10n_bumper.py bug 1354289 - m-c l10n_bumper fixes. r=rail a=release DONTBUILD 2017-04-06 13:42:12 -07:00
marionette.py Bug 1339458 - Set RUST_BACKTRACE=1 when running automated tests. r=jmaher 2017-02-14 11:32:45 -05:00
mobile_l10n.py Bug 1330668 - Generate balrog_props.json for l10n repacks. r=aki 2017-01-12 17:14:25 -05:00
mobile_partner_repack.py
multil10n.py
openh264_build.py
repackage.py Bug 1347579 - run configure before doing repack. r=aki 2017-03-28 16:26:56 -04:00
spidermonkey_build.py Bug 1274059 - Remove HgtoolVCS - Part 1, remove users of hgtool and fixups. r=nthomas 2016-08-19 09:06:42 -04:00
talos_script.py
web_platform_tests.py Bug 1352351 - Enable --run-by-dir for web-platform-tests, r=ato 2017-04-10 13:44:17 +01:00