Bug 1175895 - separate tier start message for mach; r=ted
authorMike Shal <mshal@mozilla.com>
Wed, 17 Jun 2015 16:59:20 -0400
changeset 250951 c28f6bfc72c166d23c42ead79a468a41ad001875
parent 250950 77d5a7ca90c5b41830bcf60157a15c3154cd21e2
child 250952 57bbe09f18f25f09dd24534ead42831796f59b35
push id13813
push userryanvm@gmail.com
push dateWed, 01 Jul 2015 20:40:07 +0000
treeherderfx-team@14d26a6ef7a4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1175895
milestone42.0a1
Bug 1175895 - separate tier start message for mach; r=ted
build/moz-automation.mk
--- a/build/moz-automation.mk
+++ b/build/moz-automation.mk
@@ -114,15 +114,19 @@ AUTOMATION_EXTRA_CMDLINE-package-tests =
 AUTOMATION_EXTRA_CMDLINE-pretty-package-tests = -j1
 
 # The commands only run if the corresponding MOZ_AUTOMATION_* variable is
 # enabled. This means, for example, if we enable MOZ_AUTOMATION_UPLOAD, then
 # 'buildsymbols' will only run if MOZ_AUTOMATION_BUILD_SYMBOLS is also set.
 # However, the target automation/buildsymbols will still be executed in this
 # case because it is a prerequisite of automation/upload.
 define automation_commands
-$(call BUILDSTATUS,TIER_START $1)
 @$(MAKE) $1 $(AUTOMATION_EXTRA_CMDLINE-$1)
 $(call BUILDSTATUS,TIER_FINISH $1)
 endef
 
-automation/%:
+# The tier start message is in a separate target so make doesn't buffer it
+# until the step completes with output syncing enabled.
+automation-start/%:
+	$(if $(filter $*,$(MOZ_AUTOMATION_TIERS)),$(call BUILDSTATUS,TIER_START $*))
+
+automation/%: automation-start/%
 	$(if $(filter $*,$(MOZ_AUTOMATION_TIERS)),$(call automation_commands,$*))