Skip to content

Improve runner#2828

Merged
dgageot merged 5 commits intoGoogleContainerTools:masterfrom
dgageot:improve-runner
Sep 9, 2019
Merged

Improve runner#2828
dgageot merged 5 commits intoGoogleContainerTools:masterfrom
dgageot:improve-runner

Conversation

@dgageot
Copy link
Copy Markdown
Contributor

@dgageot dgageot commented Sep 6, 2019

No description provided.

Maybe the intents will prevent that redeploy but,
still, it’s required at some point to see the
results of the rebuild.

Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 6, 2019

Codecov Report

Merging #2828 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
pkg/skaffold/runner/dev.go 67.32% <100%> (+0.66%) ⬆️
pkg/skaffold/runner/changeset.go 78.94% <100%> (-5.06%) ⬇️

Signed-off-by: David Gageot <david@gageot.net>
}()

if _, err := r.BuildAndTest(ctx, out, r.changeSet.needsRebuild); err != nil {
r.changeSet.reset()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you explain why we don't need this anymore? don't we want to reset the dirty artifacts so they don't get built again?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r.changeSet.resetBuild() is called by defer.
There's no reason to reset the rest.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nkubala wdyt?

Copy link
Copy Markdown
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this is coming along nicely

@dgageot dgageot merged commit 16e1b32 into GoogleContainerTools:master Sep 9, 2019
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