Skip to content

Set artifact caching on by default #2621

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
merged 12 commits into from
Aug 12, 2019

Conversation

priyawadhwa
Copy link
Contributor

Fixes #2511

@codecov
Copy link

codecov bot commented Aug 8, 2019

Codecov Report

Merging #2621 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
cmd/skaffold/app/cmd/flags.go 100% <ø> (ø) ⬆️
pkg/skaffold/build/cache/retrieve.go 67.56% <100%> (+0.44%) ⬆️
pkg/skaffold/build/cache/lookup.go 95.55% <100%> (+0.1%) ⬆️

deployments: []string{"jib"},
pods: []string{"nodejs", "npm", "python3"},
},
{
description: "kustomize",
args: []string{"--profile", "kustomize"},
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a reason why we turn off caching for these two tests?

Copy link
Contributor

Choose a reason for hiding this comment

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

never mind. just saw your commit message "Add --cache-artifacts=false for integrationt tests where we check builds"

Copy link
Contributor

Choose a reason for hiding this comment

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

but these are debug test? do we still need to disable caching?

Priya Wadhwa added 5 commits August 12, 2019 12:44
This integration test for caching makes sure a build event is sent even
if all artifacts are cached. This is necessry for the IDEs, which use
the initial build event to determine a new dev loop has started.
@priyawadhwa
Copy link
Contributor Author

cc @nkubala could you PTAL at the event additions and integration test?

@nkubala
Copy link
Contributor

nkubala commented Aug 12, 2019

eventing and integration test look fine. in the future it might be cool to add some information in the build event itself about whether or not it was built from cache, something like FromCache or even CacheHit/CacheMiss". not sure how useful that would be right now though, just a thought.

Copy link
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.

merge when CI is green!

@priyawadhwa priyawadhwa merged commit 587176d into GoogleContainerTools:master Aug 12, 2019
@priyawadhwa priyawadhwa deleted the cache-default branch August 12, 2019 22:37
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.

Activate caching by default
4 participants