-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Refactor caching #1779
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
dgageot
merged 7 commits into
GoogleContainerTools:master
from
priyawadhwa:refactor-caching
Mar 12, 2019
Merged
Refactor caching #1779
dgageot
merged 7 commits into
GoogleContainerTools:master
from
priyawadhwa:refactor-caching
Mar 12, 2019
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This should organize the cache code while moving it into pkg/skaffold/build/cache for better organization as well.
functions also update unit tests to match this change, and move local cluster into cache struct since it's commonly needed for all artifacts.
@priyawadhwa Looks like there's still a few Gofmt errors |
That's weird... |
@priyawadhwa Could you rebase? |
…o refactor-caching
dgageot
approved these changes
Mar 12, 2019
Codecov Report
@@ Coverage Diff @@
## master #1779 +/- ##
=========================================
+ Coverage 46.4% 46.71% +0.3%
=========================================
Files 132 135 +3
Lines 6322 6347 +25
=========================================
+ Hits 2934 2965 +31
+ Misses 3087 3083 -4
+ Partials 301 299 -2
Continue to review full report at Codecov.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I refactored caching and moved it into
pkg/skaffold/build/cache
, as described in #1765I split up the giant
cache.go
file into four smaller ones:cache.go
which initializes theCache
typehash.go
which contains all functions related to getting workspace hashes for artifactsretrieve.go
which is responsible for retrieving an artifact from the cache and deciding if it needs to be rebuilt/retagged/repushed and executing those actionssave.go
which saves artifacts to the cache