From f92422c5a35f6b2b39b5b4791cbbe5039210bfed Mon Sep 17 00:00:00 2001 From: Sergio Schvezov Date: Fri, 1 Dec 2023 09:10:23 -0300 Subject: [PATCH] fix: improve lifecycle messages Wipe "Initializing lifecycle" when parts steps start making progress by moving the action message from the emit.open_stream call to an explicit emit.progress. Signed-off-by: Sergio Schvezov --- snapcraft/parts/parts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snapcraft/parts/parts.py b/snapcraft/parts/parts.py index 9e66f377cd..d39f6c9f53 100644 --- a/snapcraft/parts/parts.py +++ b/snapcraft/parts/parts.py @@ -185,7 +185,8 @@ def run( properties=action.properties, ) message = _get_parts_action_message(action) - with emit.open_stream(message) as stream: + emit.progress(message) + with emit.open_stream() as stream: aex.execute(action, stdout=stream, stderr=stream) if shell_after: