Skip to content

Add resync/rebuild directly in monitor callback #2438

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

Merged

Conversation

nkubala
Copy link
Contributor

@nkubala nkubala commented Jul 9, 2019

small refactor to clean the code up a bit, this code doesn't make much sense in the dev loop IMO.

the small functional effect of this change is that instead of erroring out the dev loop if we encounter an error when creating the sync item (note: this is not the same as if an actual sync error occurred), this will now log a warn to the user when skaffold tries to add the artifact to the changeSet, but the dev loop will continue. we could also log this as an error if that seems more appropriate.

@codecov
Copy link

codecov bot commented Jul 9, 2019

Codecov Report

Merging #2438 into master will increase coverage by 0.09%.
The diff coverage is 77.77%.

Impacted Files Coverage Δ
pkg/skaffold/runner/changeset.go 100% <ø> (ø) ⬆️
pkg/skaffold/runner/dev.go 64.86% <77.77%> (+0.76%) ⬆️
pkg/skaffold/schema/versions.go 74.35% <0%> (ø) ⬆️
pkg/skaffold/schema/v1beta12/upgrade.go 100% <0%> (ø)
pkg/skaffold/schema/v1beta12/config.go 100% <0%> (ø)
pkg/skaffold/build/cluster/sources/sources.go 92.15% <0%> (+1.24%) ⬆️

@dgageot dgageot merged commit cbd2a20 into GoogleContainerTools:master Jul 10, 2019
@nkubala nkubala deleted the resync-and-rebuild-in-callback branch October 17, 2019 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants