gecko-dev/taskcluster
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
..
actions Bug 1353520 - Better default for environment envs for retriggerable jobs r=gbrown 2017-04-04 16:17:17 -04:00
ci Bug 1361436 - Emit build stats immediately after build; r=ted 2017-05-02 14:32:52 -07:00
docker Bug 1346361: remove unused docker images r=garndt,gps 2017-04-28 10:12:28 -04:00
docs Bug 1359997: update docs to point users to the parameters artifact; r=bdahl 2017-04-26 21:16:16 +00:00
scripts Bug 1346361: remove unused script r=garndt,gps 2017-04-28 10:44:07 -04:00
taskgraph Bug 1361187: enforce ordering of tests; r=Callek 2017-04-28 10:57:38 -04:00
mach_commands.py Bug 1333255: introduce graph morphs, use them to make index tasks; r=jonasfj 2017-03-07 20:39:27 +00:00
moz.build Bug 1344871 - add BUG_COMPONENT to taskcluster/* files. r=garndt 2017-03-07 13:06:50 -05:00