-
Notifications
You must be signed in to change notification settings - Fork 1.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
Don't unmute logs if an error happened #928
Conversation
Codecov Report
@@ Coverage Diff @@
## master #928 +/- ##
=========================================
- Coverage 43.55% 43.4% -0.16%
=========================================
Files 63 63
Lines 2645 2652 +7
=========================================
- Hits 1152 1151 -1
- Misses 1373 1379 +6
- Partials 120 122 +2
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 would love to see a test case or two around this + see the nit comment.
pkg/skaffold/runner/runner.go
Outdated
@@ -207,23 +207,41 @@ func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*v1 | |||
changed := changes{} | |||
onChange := func() error { | |||
logger.Mute() | |||
unmute := true |
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 would rename this to hasError
, I think that would be more readable, what do you think?
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.
ping @dgageot ?
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, hasError
is much better! I though I pushed this fix but I must have lost it.
73bfeb7
to
3033e69
Compare
Fix GoogleContainerTools#923 Signed-off-by: David Gageot <david@gageot.net>
When the skaffold configuration is changed, we Forgot to stop the logger before starting a new one. Signed-off-by: David Gageot <david@gageot.net>
Rebasing and making sure the kokoro tests pass |
I'm not fully happy with the code because it introduces some duplication
But that could be dealt with in another PR
Fix #923
Signed-off-by: David Gageot david@gageot.net