-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Improve output during backup/flash process #281
Conversation
Important Review skippedReview was skipped due to path filters Files ignored due to path filters (2)
You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
After Jose comment, I thought about the same. Great work! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, simple and effective.
When coding the output with the progress on the various operations, I tried to get to a point where there wasn't too much noise and details and not enough information. This particular operation was one of my concerns. Now that it can potentially take a bit more time, I agree that it makes sense to show a detailed progress in normal diagnostics. After all, we code for humans not machines.
Having said that: the CLI still has to be usable on automated processes on which the absolute minimum output is preferred so it can be easily parsed.
@CoryCharlton bring back those open/close statements, just change the verbosity condition to less than normal and OK to have the new one about the backup operation.
Not quite sure if it should be different than nomal. Normal user uses command in "normal mode" and should be aware that "something" is going on. |
@torbacz you've lost me there... 🤪 My point is that I'm OK with showing the progress with normal verbosity (default). Not showing it when verbose is silent. |
Hi @josesimoes , I'm not clear on what "open/close statements" you are referring to. |
Probably not the best word choice in English... 😅 I'm referring to the output statements that "open" and "close" the operations, like
I was asking to have those back, just changing the condition to output them to verbosity less than normal, so the feedback of the operation still shows on those conditions. |
99fa437
to
dd7153a
Compare
Understood. That being said these weren't changed. The "Flashing firmware..." was moved from here to here so the "Backup configuration..." message could occur first. The existing |
@CoryCharlton I've just made some tweaks on this. Hope you're OK. I've also adjusted the flashing output to be more consistent with the usual flow and have the full message there after the output of esptool. This will prevent breaking changes with any tools parsing the output. If you're OK with all this, let's have this PR merged! |
@josesimoes I further checked and refined the output. This is ready to be merged. Here's the output of the tests I ran: nanoff.exe --platform esp32 --serialport COM11 --update
nanoff.exe --platform esp32 --serialport COM11 --update --masserase
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks perfect now! Thanks for the final touch. 👍🏻
Description
Improve output during backup/flash process.
Motivation and Context
How Has This Been Tested?
Manually
Screenshots
Types of changes
Checklist: