-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Make hook status printing configurable with delay #9641
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9641 +/- ##
==========================================
- Coverage 42.17% 42.14% -0.04%
==========================================
Files 583 583
Lines 77160 77220 +60
==========================================
Hits 32541 32541
- Misses 40616 40676 +60
Partials 4003 4003
Continue to review full report at Codecov.
|
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.
I've written a bunch of comments and suggestions, but I'm not sure this is the right approach. I realize you want to be faithful to the previous state, where a dot was printed for each commit that has been checked. But maybe it would be much easier if we'd just print a dot for each second that has passed after the initial delay (with no goroutines or string builders).
I've moved to a wrapped writer implementation with a configurable delay. |
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.
Nice!
I stopped and restarted the build which seems blocked. |
@sapk yup that was my fault. The documentation and example for New timer is particularly bad. I even knew about this problem but forgot about it. |
Make lg-tm work |
* Delay printing hook statuses until after 1 second * Move to a 5s delay, wrapped writer structure and add config * Update cmd/hook.go * Apply suggestions from code review * Update cmd/hook.go Co-authored-by: Antoine GIRARD <[email protected]>
* Delay printing hook statuses until after 1 second * Move to a 5s delay, wrapped writer structure and add config * Update cmd/hook.go * Apply suggestions from code review * Update cmd/hook.go Co-authored-by: Antoine GIRARD <[email protected]> Co-authored-by: Antoine GIRARD <[email protected]>
Add 2 configuration options to control printing of push hook status with a configurable delay.
Fix #9610