Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream Tart stdout/stderr output to Packer UI #124

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

torarnv
Copy link
Contributor

@torarnv torarnv commented Mar 7, 2024

Creating a Tart VM may involve long running operations such as downloading an IPSW, or installing the OS. Tart gives us progress during these operations, so let's forward it to the Packer UI, the same way the shell-local provisioner does.

If a packer.Ui is not provided, we keep the previous code path that returns the output to the caller, for example used by the TartMachineIP helper.

Creating a Tart VM may involve long running operations such as
downloading an IPSW, or installing the OS. Tart gives us progress
during these operations, so let's forward it to the Packer UI,
the same way the shell-local provisioner does.

If a packer.Ui is not provided, we keep the previous code path
that returns the output to the caller, for example used by the
TartMachineIP helper.
@torarnv
Copy link
Contributor Author

torarnv commented Mar 7, 2024

image

@fkorotkov fkorotkov requested review from fkorotkov and edigaryev March 8, 2024 12:54
Copy link
Contributor

@fkorotkov fkorotkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvement! Thank you!

Copy link
Contributor

@fkorotkov fkorotkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvement! Thank you!

@torarnv
Copy link
Contributor Author

torarnv commented Mar 10, 2024

Cheers @fkorotkov ! Do I need to do something to merge this? Should we wait for @edigaryev ?

@fkorotkov
Copy link
Contributor

fkorotkov commented Mar 10, 2024

@edigaryev is coming back from PTO tomorrow so I guess let's wait for him if you don't mind.

@torarnv
Copy link
Contributor Author

torarnv commented Mar 10, 2024

No problem from my side. I have some more changes lined up, so the only thing is that it's a bit of a pain to juggle the changes into individual PRs on the GitHub side, but I can manage :D

@edigaryev edigaryev merged commit 2a23549 into cirruslabs:main Mar 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants