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

[Merged by Bors] - Add progress bar to cluster local setup #1574

Closed
wants to merge 6 commits into from

Conversation

morenol
Copy link
Contributor

@morenol morenol commented Sep 6, 2021

Update to progress indicator for this command:

fluvio cluster start --local --setup

@morenol morenol force-pushed the lmm/local-setup-progress branch 3 times, most recently from 6d47e03 to 0907769 Compare September 8, 2021 18:42
@morenol morenol marked this pull request as ready for review September 8, 2021 18:44
Trait for rendered text

Stop loop in case of failure

Add spinner to progress bar

Update changelog
@nicholastmosher
Copy link
Contributor

Still reviewing, but right off the bat I'm seeing warnings for unused Results.

Comment on lines +426 to +432
let mut progress = cluster_checker
.run_and_fix_with_progress()
.map(|check| Ok(LocalSetupProgressMessage::Check(check)));
sender
.send_all(&mut progress)
.await
.map_err(LocalInstallError::ChannelSendError)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

The key difference is here. progress is a stream and sender is a sink, so we can plug them together with send_all instead of needing to loop to push events through

Copy link
Contributor

@nicholastmosher nicholastmosher left a comment

Choose a reason for hiding this comment

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

This should be good for cluster start --setup, let's merge and then work on cluster start

@morenol
Copy link
Contributor Author

morenol commented Sep 10, 2021

bors r +

@nicholastmosher
Copy link
Contributor

bors ping

@bors
Copy link

bors bot commented Sep 10, 2021

pong

@nicholastmosher
Copy link
Contributor

bors r+

bors bot pushed a commit that referenced this pull request Sep 10, 2021
Update to progress indicator for this command:

`fluvio cluster start --local --setup`

Co-authored-by: Nick Mosher <nicholastmosher@gmail.com>
@bors
Copy link

bors bot commented Sep 10, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title Add progress bar to cluster local setup [Merged by Bors] - Add progress bar to cluster local setup Sep 10, 2021
@bors bors bot closed this Sep 10, 2021
@morenol morenol deleted the lmm/local-setup-progress branch November 5, 2021 21:03
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.

None yet

2 participants