Skip to content

Commit

Permalink
fix: improve lifecycle messages
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sergiusens committed Dec 1, 2023
1 parent 21f6ad7 commit f92422c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snapcraft/parts/parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f92422c

Please sign in to comment.