-
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
Simplify doDev() #2815
Simplify doDev() #2815
Conversation
d7b7121
to
b22f2e2
Compare
Codecov Report
|
Signed-off-by: David Gageot <[email protected]>
b22f2e2
to
efe903b
Compare
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.
yeah this actually looks really good, just one comment around the case where skaffold.yaml has changed
@@ -34,30 +34,30 @@ import ( | |||
var ErrorConfigurationChanged = errors.New("configuration changed") | |||
|
|||
func (r *SkaffoldRunner) doDev(ctx context.Context, out io.Writer) error { | |||
actionPerformed := false | |||
if r.changeSet.needsReload { | |||
return ErrorConfigurationChanged |
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 think we want the logs muted during this time right? otherwise we'll have deployment logs interleaved with the build/deploy logs from the new skaffold runner.
also, r.changeSet.resetReload()
?
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.
In fact, the logs will be stopped when this function returns: here.
Also, a new runner, with a new changeset will be created.
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.
We should write tests expressing these expectations.
It seems that there was no log muting in the current version - but I think I agree that interleaving might happen - are you suggesting adding log muting?
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.
ahh very nice, thanks for clarifying. this is much cleaner! 👍
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.
good stuff!
Signed-off-by: David Gageot [email protected]