Bug 1850647 - make py_action emit BUILDSTATUS START and END lines for every action, r=glandium.

Differential Revision: https://phabricator.services.mozilla.com/D190514
This commit is contained in:
Florian Quèze 2023-10-11 05:54:13 +00:00
Родитель e22c227b41
Коммит 5e606c6e94
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -27,4 +27,7 @@ core_winabspath = $(error core_winabspath is unsupported)
#
# libs::
# $(call py_action,purge_manifests,_build_manifests/purge/foo.manifest)
py_action = $(PYTHON3) -m mozbuild.action.$(1) $(2)
py_action = \
echo BUILDSTATUS START_$(1) $(2) ; \
$(PYTHON3) -m mozbuild.action.$(1) $(2) ; \
echo BUILDSTATUS END_$(1) $(2)

Просмотреть файл

@ -274,10 +274,10 @@ class BuildMonitor(MozbuildObject):
self.resources.begin_marker("Object", args[0])
update_needed = False
elif action.startswith("START_"):
self.resources.begin_marker(action[len("START_") :], args[0])
self.resources.begin_marker(action[len("START_") :], " ".join(args))
update_needed = False
elif action.startswith("END_"):
self.resources.end_marker(action[len("END_") :], args[0])
self.resources.end_marker(action[len("END_") :], " ".join(args))
update_needed = False
elif action == "BUILD_VERBOSE":
build_dir = args[0]