Skip to content

Conversation

@ryanslade
Copy link
Contributor

@ryanslade ryanslade commented May 28, 2020

progress

Closes: #190

@ryanslade ryanslade marked this pull request as ready for review May 28, 2020 10:23
@ryanslade ryanslade requested review from eseliger and mrnugget May 28, 2020 10:23
Copy link
Contributor

@mrnugget mrnugget left a comment

Choose a reason for hiding this comment

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

Left some comments regarding the code, but the most important bit is that I think we should include the number of patches and errors in the progress bar (as opposed to "jobs") — if they can be colorized, that would be even cooler :)

ryanslade added 2 commits May 28, 2020 16:53
Display patches and failed steps instead of jobs
Be more explicit about when we log to the repo loggers
Move more display logic into the logger
Don't hardcode number of spaces when clearing progress
progress now keeps track of progress state. progressWriter is a writer
that uses current progress to append a progress bar.
@ryanslade
Copy link
Contributor Author

@mrnugget PTAL

@ryanslade
Copy link
Contributor Author

New look:

Screenshot 2020-05-29 at 10 46 10

Copy link
Contributor

@mrnugget mrnugget left a comment

Choose a reason for hiding this comment

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

👍 I like this version much more.

I left some comments with some ideas and suggestions:

  • I don't think we need to have a "triangle dependency" between progress/progressWriter and actionLogger. actionLogger doesn't need to know about both, I think. Maybe we can use io.Writer to make that clearer. See comment.
  • I don't like the parentheses in the formatting of the progress. Suggested some other formatting for the message.

@ryanslade ryanslade merged commit 23aa038 into master Jun 2, 2020
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* Display a progress bar when running in verbose mode

* Cleanups after code review

Display patches and failed steps instead of jobs
Be more explicit about when we log to the repo loggers
Move more display logic into the logger
Don't hardcode number of spaces when clearing progress

* Split progress and writer

progress now keeps track of progress state. progressWriter is a writer
that uses current progress to append a progress bar.

* Update cmd/src/actions_exec_logger.go

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>

* Update cmd/src/actions_exec_logger.go

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>

* Move progress methods

* Tweak progress bar labels

* Remove dependency between actionLogger and progressWriter

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
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.

Include progress bar in verbose mode

3 participants